| java.lang.Object org.underworldlabs.swing.StatusBarLayout
StatusBarLayout | public class StatusBarLayout implements LayoutManager2,Serializable(Code) | | Simple horizontal layout where components are effectively set
to a specified size and resized optionally to fill the width
of a status bar within a frame, panel etc.
Effective when some labels within a status bar are a fixed width
and where others should fill the remaining space.
author: Takis Diakoumis version: $Revision: 1.4 $ |
Inner Class :class ConstraintsComparator implements Comparator | |
DEFAULT_HEIGHT | final public static int DEFAULT_HEIGHT(Code) | | default layout height of 20px
|
StatusBarLayout | public StatusBarLayout()(Code) | | Creates a new instance of StatusBarLayout
|
StatusBarLayout | public StatusBarLayout(int height)(Code) | | Creates a new instance of StatusBarLayout with
the specified height.
Parameters: the - height of the status bar |
addLayoutComponent | public void addLayoutComponent(String name, Component comp)(Code) | | Not used by this class.
Parameters: name - the name of the component Parameters: comp - the component |
addLayoutComponent | public void addLayoutComponent(Component comp, Object constraints)(Code) | | Adds the specified component with the specified constraints
to the layout. Constraints must be an instance of
StatusBarLayoutConstraints .
Parameters: comp - the component Parameters: constraints - constraints |
getLayoutAlignmentX | public synchronized float getLayoutAlignmentX(Container target)(Code) | | Returns the alignment along the X axis for the container.
If the box is horizontal, the default
alignment will be returned. Otherwise, the alignment needed
to place the children along the X axis will be returned.
Parameters: target - the container the alignment >= 0.0f && <= 1.0f |
getLayoutAlignmentY | public synchronized float getLayoutAlignmentY(Container target)(Code) | | Returns the alignment along the Y axis for the container.
If the box is vertical, the default
alignment will be returned. Otherwise, the alignment needed
to place the children along the Y axis will be returned.
Parameters: target - the container the alignment >= 0.0f && <= 1.0f |
invalidateLayout | public synchronized void invalidateLayout(Container target)(Code) | | Indicates that a child has changed its layout related information,
and thus any cached calculations should be flushed.
This method is called by AWT when the invalidate method is called
on the Container. Since the invalidate method may be called
asynchronously to the event thread, this method may be called
asynchronously.
Parameters: target - the affected container |
layoutContainer | public void layoutContainer(Container target)(Code) | | Called by the AWT when the specified container
needs to be laid out.
Parameters: target - the container to lay out exception: AWTError - if the target isn't the container specified to theBoxLayout constructor |
maximumLayoutSize | public Dimension maximumLayoutSize(Container target)(Code) | | Returns the maximum dimensions the target container can use
to lay out the components it contains.
Parameters: target - the container that needs to be laid out the dimenion |
minimumLayoutSize | public Dimension minimumLayoutSize(Container target)(Code) | | Returns the minimum dimensions needed to lay out the components
contained in the specified target container.
Parameters: target - the container that needs to be laid out the dimension |
preferredLayoutSize | public Dimension preferredLayoutSize(Container target)(Code) | | Returns the preferred dimensions for this layout, given the components
in the specified target container.
Parameters: target - the container that needs to be laid out the dimension |
removeLayoutComponent | public void removeLayoutComponent(Component comp)(Code) | | Not used by this class.
Parameters: comp - the component |
|
|