|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.layout.ScaleLayout
public class ScaleLayout
A scaling layout manager. Scales the components in proportion to their original layout size relative to the original container size
Copyright (c) Xoetrope Ltd., 2002-2007
License: see License.txt
$Revision: 1.2 $
| Constructor Summary | |
|---|---|
ScaleLayout()
|
|
ScaleLayout(int designWidth,
int designHeight)
Creates a new ScaleLayout |
|
ScaleLayout(int designWidth,
int designHeight,
boolean scales)
Creates a new ScaleLayout |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name. |
boolean |
getScaleAll()
Sets the state of the scale all flag. |
boolean |
getScaleFonts()
Sets the state of the scale fonts flag. |
protected void |
iterateComps(java.awt.Component comp)
Modify this component and its children, if any |
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
void |
scaleComponent(java.awt.Component comp)
Scale the component |
void |
setScaleAll(boolean scales)
Sets the state of the scale all flag. |
void |
setScaleFonts(boolean scales)
Sets the state of the scale fonts flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScaleLayout()
public ScaleLayout(int designWidth,
int designHeight)
designWidth - the original design width for the containerdesignHeight - the original design height for the container
public ScaleLayout(int designWidth,
int designHeight,
boolean scales)
designWidth - the original design width for the containerdesignHeight - the original design height for the containerscales - true to scale all the children including containers and the container's children.| Method Detail |
|---|
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
comp to the layout,
associating it
with the string specified by name.
addLayoutComponent in interface java.awt.LayoutManagername - the string to be associated with the componentcomp - the component to be addedpublic void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - the container to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outpreferredLayoutSize(java.awt.Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - the container to be laid outminimumLayoutSize(java.awt.Container)public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to be removedprotected void iterateComps(java.awt.Component comp)
comp - the component to be modifiedpublic void scaleComponent(java.awt.Component comp)
comp - the component to be modifiedpublic void setScaleAll(boolean scales)
scales - true to scale all the children including containers and the container's children.public boolean getScaleAll()
public void setScaleFonts(boolean scales)
scales - true to scale all the fonts of a rescaled containerpublic boolean getScaleFonts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||