|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.imagero.gui.flowin.ToolBarLayout
ToolBarLayout.
LayoutManager which can lay out multiple tool bars in one Container.
| Field Summary | |
static int |
FILL_ORDER_HORIZONTAL
|
static int |
FILL_ORDER_STDANDARD
|
static int |
X_AXIS
|
static int |
Y_AXIS
|
| Constructor Summary | |
ToolBarLayout(java.awt.Container target)
create new ToolBarLayout |
|
ToolBarLayout(int axis,
java.awt.Container target)
create new ToolBarLayout |
|
| Method Summary | |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
not used |
void |
debug(java.lang.String s)
|
void |
debugChildren()
prints some infos about target's children. |
int |
getAxis()
|
int |
getFillOrder()
|
float |
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. |
java.lang.String |
getName()
|
int |
getPreferredRowHeight()
get preferred row height of this LayoutManager |
protected void |
insert(int row,
com.imagero.gui.flowin.Entry newEntry)
insert Component into row |
void |
invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
boolean |
isAskParentForMaxWidth()
if true then: if target has horizontal orientation then preferred width of target is less or equal to width of target's parent if target has vertical orientation then preferred height of target is less or equal to height of target's parent |
boolean |
isHorizontal()
check if orientation is horizontal |
boolean |
isInsertBetweenRows()
check if Component can be inserted between rows (e.g. in new row) |
boolean |
isKeepTogether()
if true then Components placed without gap between them |
boolean |
isVertical()
check if orientation is vertical |
boolean |
isWrap()
|
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Calculates the maximum size dimensions for the specified container, given the components it contains. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
int |
p2row(java.awt.Point pt)
get row which contains given Point |
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 |
setAskParentForMaxWidth(boolean askParentForMaxWidth)
|
void |
setAxis(int axis)
|
void |
setFillOrder(int fillOrder)
|
void |
setInsertBetweenRows(boolean insertBetweenRows)
|
void |
setKeepTogether(boolean keepTogether)
|
void |
setName(java.lang.String name)
|
void |
setPreferredRowHeight(int preferredRowHeight)
set preferred row height for this LayoutManager |
void |
setWrap(boolean wrap)
|
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FILL_ORDER_HORIZONTAL
public static final int FILL_ORDER_STDANDARD
public static final int X_AXIS
public static final int Y_AXIS
| Constructor Detail |
public ToolBarLayout(java.awt.Container target)
target - Container to lay out
public ToolBarLayout(int axis,
java.awt.Container target)
axis - orientation of target Containertarget - Container to lay outY_AXIS,
X_AXIS| Method Detail |
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
java.awt.LayoutManager2
addLayoutComponent in interface java.awt.LayoutManager2comp - the component to be addedconstraints - where/how the component is added to the layout.
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - the string to be associated with the componentcomp - the component to be addedpublic void debug(java.lang.String s)
public void debugChildren()
#isDebugComponentpublic int getAxis()
public int getFillOrder()
public float getLayoutAlignmentX(java.awt.Container target)
java.awt.LayoutManager2
getLayoutAlignmentX in interface java.awt.LayoutManager2public float getLayoutAlignmentY(java.awt.Container target)
java.awt.LayoutManager2
getLayoutAlignmentY in interface java.awt.LayoutManager2public java.lang.String getName()
public int getPreferredRowHeight()
protected void insert(int row,
com.imagero.gui.flowin.Entry newEntry)
row - row numbernewEntry - Entry (contained Component)Entrypublic void invalidateLayout(java.awt.Container target)
java.awt.LayoutManager2
invalidateLayout in interface java.awt.LayoutManager2public boolean isAskParentForMaxWidth()
public boolean isHorizontal()
X_AXISpublic boolean isInsertBetweenRows()
public boolean isKeepTogether()
public boolean isVertical()
Y_AXISpublic boolean isWrap()
public void layoutContainer(java.awt.Container parent)
java.awt.LayoutManager
layoutContainer in interface java.awt.LayoutManagerparent - the container to be laid outpublic java.awt.Dimension maximumLayoutSize(java.awt.Container target)
java.awt.LayoutManager2
maximumLayoutSize in interface java.awt.LayoutManager2Component.getMaximumSize(),
LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
java.awt.LayoutManager
minimumLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)public int p2row(java.awt.Point pt)
pt - Point
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
java.awt.LayoutManager
preferredLayoutSize in interface java.awt.LayoutManagerparent - the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)public void removeLayoutComponent(java.awt.Component comp)
java.awt.LayoutManager
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to be removedpublic void setAskParentForMaxWidth(boolean askParentForMaxWidth)
askParentForMaxWidth - - if true then parent of target asked for width/heightisAskParentForMaxWidth()public void setAxis(int axis)
public void setFillOrder(int fillOrder)
public void setInsertBetweenRows(boolean insertBetweenRows)
insertBetweenRows - if true then Component can be inserted between rowspublic void setKeepTogether(boolean keepTogether)
keepTogether - if true then Components are keeped togetherpublic void setName(java.lang.String name)
public void setPreferredRowHeight(int preferredRowHeight)
preferredRowHeight - new preferred row heightpublic void setWrap(boolean wrap)
public java.lang.String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||