|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.awt.JvAbstractLayoutManager
org.jurvis.awt.JvAbstractLayoutManager2
public abstract class JvAbstractLayoutManager2
This class provides a skeletal implementation of the
LayoutManager2 interface, to minimize the effort required to
implement this interface.
| Field Summary | |
|---|---|
protected HashMap |
constraintsMap
The constraints for each component. |
| Fields inherited from class org.jurvis.awt.JvAbstractLayoutManager |
|---|
gap |
| Constructor Summary | |
|---|---|
JvAbstractLayoutManager2()
Construct a new JvAbstractLayoutManager2. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
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. |
Dimension |
maximumLayoutSize(Container target)
Returns the maximum size of this component. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
setConstraints(Component comp,
Object constraints)
Sets the constraints for the specified component in this layout. |
| Methods inherited from class org.jurvis.awt.JvAbstractLayoutManager |
|---|
addLayoutComponent, minimumLayoutSize, preferredLayoutSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.LayoutManager |
|---|
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize |
| Field Detail |
|---|
protected HashMap constraintsMap
| Constructor Detail |
|---|
public JvAbstractLayoutManager2()
JvAbstractLayoutManager2.
| Method Detail |
|---|
public void addLayoutComponent(Component comp,
Object constraints)
addLayoutComponent in interface LayoutManager2comp - the component to be addedconstraints - where/how the component is added to the layout.public void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to be removed
public void setConstraints(Component comp,
Object constraints)
comp - the component to be modifiedconstraints - the constraints to be appliedpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||