public class RMFlowLayoutBasic extends RMShapeLayout implements java.beans.PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
RMFlowLayoutBasic.AlignX |
static class |
RMFlowLayoutBasic.AlignY |
class |
RMFlowLayoutBasic.FlowTab
A class to represent a tab area of children in a flow layout (a column o)f a line).
|
static class |
RMFlowLayoutBasic.LayoutInfo
A class to hold constraints for child.
|
RMShapeLayout.DirectLayout, RMShapeLayout.FrameLayout
Constructor and Description |
---|
RMFlowLayoutBasic() |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutChild(RMShape aChild)
Override to start listening to child property changes.
|
RMFlowLayout |
clone()
Standard clone implementation.
|
RMFlowLayoutBasic.AlignX |
getAlignX()
Returns the horizontal alignment.
|
RMFlowLayoutBasic.AlignY |
getAlignY()
Returns the vertical alignment.
|
RMShape |
getChild(int anIndex)
Returns the individual child in this line.
|
int |
getChildCount()
Returns the number of children in this line.
|
double |
getHeight() |
RMFlowLayoutBasic.LayoutInfo |
getLayoutInfoX(RMShape aChild)
Returns the constraints in a given child.
|
double |
getMaxX() |
double |
getMaxY() |
RMSize |
getPreferredSize(RMShape aParent,
float aMaxWidth,
float aMaxHeight)
Returns the preferred size.
|
int |
getSpacingX()
Returns the horizontal spacing between children.
|
int |
getSpacingY()
Returns the vertical spacing between children.
|
RMFlowLayoutBasic.FlowTab |
getTab(int anIndex)
Returns the individual tab at the given index.
|
int |
getTabCount()
Returns the number of tabs in layout.
|
double |
getWidth() |
boolean |
getWraps()
Returns whether to wrap children to bounds of parent.
|
double |
getX()
Returns line x, y, width, height.
|
double |
getY() |
boolean |
isLocked()
Returns whether line is locked.
|
void |
layoutParent(RMShape aParent)
Override to perform layout.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Catch child size changes (when not doing layout) to set minimum size.
|
void |
removeLayoutChild(RMShape aChild)
Override to remove constraints from children.
|
void |
setAlignX(RMFlowLayoutBasic.AlignX anAlign)
Sets the horizontal alignment.
|
void |
setAlignY(RMFlowLayoutBasic.AlignY anAlign)
Sets the vertical alignment.
|
void |
setLocked(boolean aFlag)
Sets whether line is locked.
|
void |
setSpacingX(int aSpacing)
Sets the horizontal spacing between children.
|
void |
setSpacingY(int aSpacing)
Sets the vertical spacing between children.
|
void |
setWraps(boolean aValue)
Sets whether to wrap children to bounds of parent.
|
doLayout, fromXML, getMaximumSize, getMinimumSize, getParent, isHittableChild, isValid, isValidating, isVisibleChild, paintLayout, reset, setBestHeight, setLayoutInfoX, setParent, setValid, toXML
public int getSpacingX()
public void setSpacingX(int aSpacing)
public int getSpacingY()
public void setSpacingY(int aSpacing)
public RMFlowLayoutBasic.AlignX getAlignX()
public void setAlignX(RMFlowLayoutBasic.AlignX anAlign)
public RMFlowLayoutBasic.AlignY getAlignY()
public void setAlignY(RMFlowLayoutBasic.AlignY anAlign)
public boolean getWraps()
public void setWraps(boolean aValue)
public int getChildCount()
public RMShape getChild(int anIndex)
public double getX()
public double getY()
public double getWidth()
public double getHeight()
public double getMaxX()
public double getMaxY()
public void addLayoutChild(RMShape aChild)
addLayoutChild
in class RMShapeLayout
public void removeLayoutChild(RMShape aChild)
removeLayoutChild
in class RMShapeLayout
public RMFlowLayoutBasic.LayoutInfo getLayoutInfoX(RMShape aChild)
getLayoutInfoX
in class RMShapeLayout
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public void layoutParent(RMShape aParent)
layoutParent
in class RMShapeLayout
public RMSize getPreferredSize(RMShape aParent, float aMaxWidth, float aMaxHeight)
getPreferredSize
in class RMShapeLayout
public int getTabCount()
public RMFlowLayoutBasic.FlowTab getTab(int anIndex)
public boolean isLocked()
public void setLocked(boolean aFlag)
public RMFlowLayout clone()
clone
in class RMShapeLayout