public class CommandButtonLayout
extends java.lang.Object
implements java.awt.LayoutManager2
Modifier and Type | Field and Description |
---|---|
protected float |
alignmentX |
protected float |
alignmentY |
static float |
BOTTOM |
static float |
CENTER |
static float |
FILL |
protected int |
gap |
static float |
LEFT |
protected static java.awt.Dimension |
MAXIMUM_SIZE |
static float |
RIGHT |
static float |
TOP |
Constructor and Description |
---|
CommandButtonLayout()
Creates a command button layout with right/top alignment and a gap of 5.
|
CommandButtonLayout(float alignmentX)
Creates a command button layout with top alignment and a gap of 5.
|
CommandButtonLayout(float alignmentX,
float alignmentY,
int gap)
Create a command button layout.
|
CommandButtonLayout(float alignmentX,
int gap)
Create a command button layout with top alignment.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.awt.Component component,
java.lang.Object constraints) |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component component) |
float |
getAlignmentX()
Gets the x alignment for this layout manager.
|
float |
getAlignmentY()
Gets the y alignment for this layout manager.
|
int |
getGap()
Gets the gap for this layout manager.
|
float |
getLayoutAlignmentX(java.awt.Container target) |
float |
getLayoutAlignmentY(java.awt.Container target) |
void |
invalidateLayout(java.awt.Container target) |
void |
layoutContainer(java.awt.Container container) |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container container) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container container) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container container) |
void |
removeLayoutComponent(java.awt.Component component) |
void |
setAlignmentX(float newValue)
Sets the x alignment for this layout manager.
|
void |
setAlignmentY(float newValue)
Sets the y alignment for this layout manager.
|
void |
setGap(int newValue)
Sets the gap for this layout manager.
|
public static final float TOP
public static final float LEFT
public static final float CENTER
public static final float BOTTOM
public static final float RIGHT
public static final float FILL
protected float alignmentX
protected float alignmentY
protected int gap
protected static final java.awt.Dimension MAXIMUM_SIZE
public CommandButtonLayout()
public CommandButtonLayout(float alignmentX)
public CommandButtonLayout(float alignmentX, int gap)
public CommandButtonLayout(float alignmentX, float alignmentY, int gap)
public void setAlignmentX(float newValue)
public float getAlignmentX()
public void setAlignmentY(float newValue)
public float getAlignmentY()
public void setGap(int newValue)
public int getGap()
public void addLayoutComponent(java.lang.String name, java.awt.Component component)
addLayoutComponent
in interface java.awt.LayoutManager
public void addLayoutComponent(java.awt.Component component, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public void layoutContainer(java.awt.Container container)
layoutContainer
in interface java.awt.LayoutManager
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public void removeLayoutComponent(java.awt.Component component)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension maximumLayoutSize(java.awt.Container container)
maximumLayoutSize
in interface java.awt.LayoutManager2
public java.awt.Dimension minimumLayoutSize(java.awt.Container container)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container container)
preferredLayoutSize
in interface java.awt.LayoutManager
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2