| java.lang.Object org.underworldlabs.swing.toolbar.ToolBarLayout
ToolBarLayout | public class ToolBarLayout implements LayoutManager2(Code) | | author: Takis Diakoumis version: $Revision: 1.5 $ |
Inner Class :class ToolsPositionComparator implements Comparator | |
Constructor Summary | |
public | ToolBarLayout(int toolBarRows) Constructs a new layout instance initialised
to the specified number of rows. |
BORDER_OFFSET | final public static int BORDER_OFFSET(Code) | | The bottom border offset
|
ToolBarLayout | public ToolBarLayout(int toolBarRows)(Code) | | Constructs a new layout instance initialised
to the specified number of rows.
Parameters: the - initial number of rows |
addLayoutComponent | public void addLayoutComponent(Component comp, Object cons)(Code) | | Adds the specified component to the layout, using the specified
constraint object.
Parameters: the - component to be added where/how the component is added to the layout. |
addLayoutComponent | public void addLayoutComponent(String name, Component comp)(Code) | | Adds the specified component with the specified name to
the layout. This does nothing in ToolBarLayout - constraints
are required.
|
componentMoved | public void componentMoved(Component comp, int locX, int locY)(Code) | | |
componentResized | public void componentResized(Component comp, int locX)(Code) | | |
getConstraint | public ToolBarConstraints getConstraint(Component comp)(Code) | | Retrieves the specified components constraints.
Parameters: the - component the component's constraints |
getLayoutAlignmentX | public float getLayoutAlignmentX(Container target)(Code) | | Returns the alignment along the x axis. This specifies how
the component would like to be aligned relative to other
components. The value should be a number between 0 and 1
where 0 represents alignment along the origin, 1 is aligned
the furthest away from the origin, 0.5 is centered, etc.
Parameters: the - target container |
getLayoutAlignmentY | public float getLayoutAlignmentY(Container target)(Code) | | Returns the alignment along the y axis. This specifies how
the component would like to be aligned relative to other
components. The value should be a number between 0 and 1
where 0 represents alignment along the origin, 1 is aligned
the furthest away from the origin, 0.5 is centered, etc.
Parameters: the - target container |
getRowCount | public int getRowCount()(Code) | | Returns the currently displayed tool bar row count.
the current row count |
getRowHeight | public int getRowHeight()(Code) | | |
invalidateLayout | public void invalidateLayout(Container target)(Code) | | Invalidates the layout, indicating that if the layout manager
has cached information it should be discarded.
Parameters: the - target container |
layoutContainer | public void layoutContainer(Container parent)(Code) | | Lays out the container in the specified container.
Parameters: the - component which needs to be laid out |
maximumLayoutSize | public Dimension maximumLayoutSize(Container target)(Code) | | Returns the maximum size of this component.
Parameters: the - target container |
minimumLayoutSize | public Dimension minimumLayoutSize(Container parent)(Code) | | Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
Parameters: parent - the component to be laid out See Also: ToolBarLayout.preferredLayoutSize |
preferredLayoutSize | public Dimension preferredLayoutSize(Container parent)(Code) | | Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
Parameters: parent - the component to be laid out See Also: ToolBarLayout.minimumLayoutSize |
removeComponents | public void removeComponents()(Code) | | Removes all components from this layout.
|
removeLayoutComponent | public void removeLayoutComponent(Component comp)(Code) | | Removes the specified component from the layout.
Parameters: the - component to be removed |
setRows | public void setRows(int rows)(Code) | | |
|
|