org.htmlparser.parserapplications.filterbuilder.layouts
Class NullLayoutManager
java.lang.Object
org.htmlparser.parserapplications.filterbuilder.layouts.NullLayoutManager
- LayoutManager2, Serializable
public class NullLayoutManager
implements LayoutManager2, Serializable
A layout manager that doesn't move things around.
Attempts to set the bounds of components to accomodate them
but doesn't move them.
void | addLayoutComponent(Component comp, Object constraints) - Adds the specified component to the layout, using the specified
constraint object.
|
void | addLayoutComponent(String name, Component comp) - Adds the specified component with the specified name to
the layout.
|
float | getLayoutAlignmentX(Container target) - Returns the alignment along the x axis.
|
float | getLayoutAlignmentY(Container target) - Returns the alignment along the y axis.
|
void | invalidateLayout(Container target) - Invalidates the layout, indicating that if the layout manager
has cached information it should be discarded.
|
void | layoutContainer(Container target) - Lays out the container.
|
Dimension | maximumLayoutSize(Container target) - Returns the maximum size of this component.
|
Dimension | minimumLayoutSize(Container target) - Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
|
Dimension | preferredLayoutSize(Container target) - Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
|
void | removeLayoutComponent(Component comp) - Removes the specified component from the layout.
|
NullLayoutManager
public NullLayoutManager()
Constructs a NullLayoutManager object.
addLayoutComponent
public void addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified
constraint object.
comp
- the component to be addedconstraints
- where/how the component is added to the layout.
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to
the layout.
name
- the component namecomp
- the component to be added
getLayoutAlignmentX
public float getLayoutAlignmentX(Container target)
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.
target
- The target container.
getLayoutAlignmentY
public float getLayoutAlignmentY(Container target)
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.
target
- The target container.
invalidateLayout
public void invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager
has cached information it should be discarded.
target
- The target container.
layoutContainer
public void layoutContainer(Container target)
Lays out the container.
target
- The container which needs to be laid out.
maximumLayoutSize
public Dimension maximumLayoutSize(Container target)
Returns the maximum size of this component.
target
- The component to be laid out.
- The maximum size for the container.
minimumLayoutSize
public Dimension minimumLayoutSize(Container target)
Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
target
- The component to be laid out.
preferredLayoutSize
public Dimension preferredLayoutSize(Container target)
Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
target
- The component to be laid out.
- A size deemed suitable for laying out the container.
removeLayoutComponent
public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.
comp
- the component ot be removed
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |