|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tigris.toolbar.layouts.DockLayout
Class providing layout management to control positions of docked toolbars.
Field Summary | |
---|---|
static java.lang.String |
center
|
static int |
CENTER
|
static int |
CHAINING_STYLE
|
static java.lang.String |
east
|
static int |
EAST
|
static int |
HORIZONTAL
|
static int |
MAX
|
static java.lang.String |
north
|
static int |
NORTH
|
static java.lang.String |
south
|
static int |
SOUTH
|
static int |
STACKING_STYLE
|
static int |
VERTICAL
|
static java.lang.String |
west
|
static int |
WEST
|
static int |
WRAPPING_STYLE
|
Constructor Summary | |
---|---|
DockLayout(java.awt.Container target)
Creates a DockLayout for the specified container with a default wrapping style layout. |
|
DockLayout(java.awt.Container target,
int style)
Creates a DockLayout for the specified container with the specified layout style (wrapping, stacking, or chaining). |
Method Summary | |
---|---|
void |
addLayoutComponent(java.awt.Component component,
java.lang.Object constraints)
Adds the specified component to the layout. |
void |
addLayoutComponent(java.lang.String constraints,
java.awt.Component component)
Adds the specified component to the layout. |
int |
getHorizontalSpacing()
Returns the horizontal spacing between the content and the west and east docks. |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment of this layout along the X-axis. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment of this layout along the Y-axis. |
int |
getToolBarSpacing()
Returns the spacing between the toolbars at each dock. |
int |
getVerticalSpacing()
Returns the vertical spacing between the content and the north and south docks. |
void |
installDockBoundary(org.tigris.toolbar.layouts.DockBoundary boundary)
Provided for those who wish to create their own DockBoundary implementation for functionality not available in the provided docking styles. |
void |
invalidateLayout(java.awt.Container target)
Invalidates the layout. |
void |
layoutContainer(java.awt.Container target)
Sets the sizes and locations of the specified container's subcomponents (docked toolbars and content). |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Determines the maximum dimensions of the specified container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Determines the minimum dimensions of the specified container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Determines the preferred dimensions of the specified container. |
void |
removeLayoutComponent(java.awt.Component component)
Removes the specified component from the layout. |
void |
setHorizontalSpacing(int spacing)
Sets the horizontal spacing between the content and the east and west docks. |
void |
setToolBarSpacing(int spacing)
Sets the spacing between the toolbars at each dock. |
void |
setVerticalSpacing(int spacing)
Sets the vertical spacing between the content and the north and south docks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CHAINING_STYLE
public static final int WRAPPING_STYLE
public static final int STACKING_STYLE
public static final int MAX
public static final int NORTH
public static final int SOUTH
public static final int EAST
public static final int WEST
public static final int CENTER
public static final int HORIZONTAL
public static final int VERTICAL
public static final java.lang.String north
public static final java.lang.String south
public static final java.lang.String east
public static final java.lang.String west
public static final java.lang.String center
Constructor Detail |
public DockLayout(java.awt.Container target)
public DockLayout(java.awt.Container target, int style)
Method Detail |
public void setHorizontalSpacing(int spacing)
public void setVerticalSpacing(int spacing)
public void setToolBarSpacing(int spacing)
public int getHorizontalSpacing()
public int getVerticalSpacing()
public int getToolBarSpacing()
public void installDockBoundary(org.tigris.toolbar.layouts.DockBoundary boundary)
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 addLayoutComponent(java.awt.Component component, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public void addLayoutComponent(java.lang.String constraints, java.awt.Component component)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component component)
removeLayoutComponent
in interface java.awt.LayoutManager
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public void layoutContainer(java.awt.Container target)
layoutContainer
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |