| |
|
| java.lang.Object javax.swing.LayoutParameters
LayoutParameters | final class LayoutParameters (Code) | | This class helps BoxLayout and OverlayLayout to layout their components
and calculate all target's necessary parameters. It incapsulates all necessary
for calculations data.
|
Constructor Summary | |
public | LayoutParameters(Container target, int alignment) Parameters: target - - container being laid out with this parameters Parameters: alignment - - alignment of the target. |
HORIZONTAL_ALIGNMENT | final public static int HORIZONTAL_ALIGNMENT(Code) | | |
MIXED_ALIGNMENT | final public static int MIXED_ALIGNMENT(Code) | | |
VERTICAL_ALIGNMENT | final public static int VERTICAL_ALIGNMENT(Code) | | |
alignmentX | public float alignmentX(Code) | | |
alignmentY | public float alignmentY(Code) | | |
LayoutParameters | public LayoutParameters(Container target, int alignment)(Code) | | Parameters: target - - container being laid out with this parameters Parameters: alignment - - alignment of the target. It can be one of the following values:MIXED_ALIGNMENT - value for OverlayLayoutHORIZONTAL_ALIGNMENT - value for BoxLayout with horizontal alignmentVERTICAL_ALIGNMENT - value for BoxLayout with vertical alignment |
calculateLayoutParameters | public synchronized void calculateLayoutParameters()(Code) | | Calculates layout parameters:
maximum, preferred and minimum sizes for container
|
getAlignment | public int getAlignment()(Code) | | |
invalidate | public void invalidate()(Code) | | This method is to be invoked to notify LayoutParameters object, that target was changed somehow
and all cached data became unreliable
|
layoutTarget | public void layoutTarget()(Code) | | This method layouts target:
calculates sizes an positions for all subcomponents
|
setAlignment | public void setAlignment(int alignment)(Code) | | |
|
|
|