public class ButtonsLayoutManager
extends java.lang.Object
implements java.awt.LayoutManager2, javax.swing.SwingConstants
Modifier and Type | Field and Description |
---|---|
static boolean |
DIRECTION_LTR |
static boolean |
DIRECTION_RTL |
Constructor and Description |
---|
ButtonsLayoutManager()
Constructor
|
ButtonsLayoutManager(int nGap) |
Modifier and Type | Method and Description |
---|---|
protected void |
addButton(java.awt.Component c,
int nConstraint) |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints) |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
java.awt.Component |
getButton(int i) |
int |
getButtonCount() |
boolean |
getDirection() |
int |
getGap() |
float |
getLayoutAlignmentX(java.awt.Container target) |
float |
getLayoutAlignmentY(java.awt.Container target) |
int |
getOrientation() |
java.awt.Rectangle |
getSpaceLeft() |
void |
invalidateLayout(java.awt.Container target) |
void |
layoutContainer(java.awt.Container parent) |
protected int |
layoutContainer(java.awt.Container parent,
java.awt.Dimension dParent) |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
protected void |
removeButton(int nConstraint) |
void |
removeLayoutComponent(java.awt.Component comp) |
void |
setDirection(boolean rtl) |
void |
setGap(int nGap) |
void |
setOrientation(int nOrient) |
public static final boolean DIRECTION_RTL
public static final boolean DIRECTION_LTR
public ButtonsLayoutManager()
public ButtonsLayoutManager(int nGap)
public void setGap(int nGap)
public int getGap()
public void setDirection(boolean rtl)
public boolean getDirection()
public java.awt.Rectangle getSpaceLeft()
public void setOrientation(int nOrient)
public int getOrientation()
public final int getButtonCount()
public final java.awt.Component getButton(int i)
protected final void addButton(java.awt.Component c, int nConstraint)
protected final void removeButton(int nConstraint)
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
protected int layoutContainer(java.awt.Container parent, java.awt.Dimension dParent)
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
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
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2