|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xulux.guilayer.swing.layouts.SwingLayoutAbstract
org.xulux.guilayer.swing.layouts.XYLayout
public class XYLayout
A layout manager that positions it's controls using the size and the position of the control
| Field Summary | |
|---|---|
protected java.util.HashMap |
map
the map with widgets |
| Fields inherited from class org.xulux.guilayer.swing.layouts.SwingLayoutAbstract |
|---|
parentWidget |
| Constructor Summary | |
|---|---|
XYLayout()
|
|
XYLayout(org.xulux.api.gui.IWidget parent)
Use this contructor if used inside nyx. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
The contraints is the widget itself. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
addWidget(org.xulux.api.gui.IWidget widget)
|
void |
destroy()
|
float |
getLayoutAlignmentX(java.awt.Container target)
|
float |
getLayoutAlignmentY(java.awt.Container target)
|
protected java.awt.Dimension |
getLayoutSize(java.awt.Container parent)
is almost the same as layoutContainer, except using setBounds. |
java.awt.Rectangle |
getRectangle(java.awt.Component component,
java.awt.Insets insets)
This is mainly used for swing components that are layed "invisibly" on top of nyx. |
java.awt.Rectangle |
getRectangle(org.xulux.api.gui.IWidget widget,
java.awt.Component component)
The preferred size of the component is used, when the widget size isn't really useable... |
void |
invalidateLayout(java.awt.Container target)
|
protected boolean |
isFirstLayout()
|
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
removeWidget(org.xulux.api.gui.IWidget widget)
|
protected void |
setFirstLayout(boolean firstLayout)
Set if this is the first time that we layout or not |
| Methods inherited from class org.xulux.guilayer.swing.layouts.SwingLayoutAbstract |
|---|
getParent, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap map
| Constructor Detail |
|---|
public XYLayout()
public XYLayout(org.xulux.api.gui.IWidget parent)
parent - the creator of the XYLayout| Method Detail |
|---|
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2LayoutManager2.addLayoutComponent(Component, Object)public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2LayoutManager2.getLayoutAlignmentX(Container)public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2LayoutManager2.getLayoutAlignmentY(Container)public void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2LayoutManager2.invalidateLayout(Container)public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2LayoutManager2.maximumLayoutSize(Container)
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerLayoutManager.addLayoutComponent(String, Component)public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerLayoutManager.layoutContainer(Container)
public java.awt.Rectangle getRectangle(org.xulux.api.gui.IWidget widget,
java.awt.Component component)
widget - the widget to get the size fromcomponent - the component to get the size from
public java.awt.Rectangle getRectangle(java.awt.Component component,
java.awt.Insets insets)
component - the componentinsets - the insets
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerLayoutManager.minimumLayoutSize(Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerLayoutManager.preferredLayoutSize(Container)protected java.awt.Dimension getLayoutSize(java.awt.Container parent)
parent - the parent container
protected void setFirstLayout(boolean firstLayout)
firstLayout - true or falseprotected boolean isFirstLayout()
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerLayoutManager.removeLayoutComponent(Component)public void destroy()
destroy in interface org.xulux.api.gui.IXuluxLayoutdestroy in class SwingLayoutAbstractorg.xulux.gui.IXuluxLayout#destroy()public void addWidget(org.xulux.api.gui.IWidget widget)
addWidget in interface org.xulux.api.gui.IXuluxLayoutIXuluxLayout.addWidget(org.xulux.api.gui.IWidget)public void removeWidget(org.xulux.api.gui.IWidget widget)
removeWidget in interface org.xulux.api.gui.IXuluxLayoutIXuluxLayout.removeWidget(org.xulux.api.gui.IWidget)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||