|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.OverlayLayout
jpl.mipl.jade.jadis.StereoLayout
public class StereoLayout
A layout manager that manages two children as "left" and "right" views.
It extends Swing's OverlayLayout which allows
multiple children to be displayed simultaneously. Users don't directly instantiate
this class.
Used by StereoJPanel.
OverlayLayout,
StereoJPanel,
Serialized Form| Field Summary | |
|---|---|
static String |
BOTH
Constant to specify components location to be the only view or both of Stereo Layout. |
static String |
LEFT
Constant to specify components location to be the left view of Stereo Layout. |
static String |
RIGHT
Constant to specify components location to be the right view of Stereo Layout. |
| Constructor Summary | |
|---|---|
StereoLayout(Container target)
Default constructor, just calls superclass. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
Object |
getConstraints(Component comp)
Gets the constraints for the specified component |
Component |
getLayoutComponent(Container target,
Object constraints)
Gets the component that corresponds to the given constraint location based on the target Container's component orientation |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
String |
toString()
Returns a string representation of the state of this stack layout. |
| Methods inherited from class javax.swing.OverlayLayout |
|---|
getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LEFT
public static final String RIGHT
public static final String BOTH
| Constructor Detail |
|---|
public StereoLayout(Container target)
target - Container| Method Detail |
|---|
public void addLayoutComponent(Component comp,
Object constraints)
LEFT,
RIGHT, BOTH
This method
This method is called when a component is added to a container
using the Container.add method with the same
argument types.
addLayoutComponent in interface LayoutManager2addLayoutComponent in class OverlayLayoutcomp - the component to be added.constraints - an object that specifies how and where
the component is added to the layout.
IllegalArgumentException - if the constraint object is not
a string, or if it not one of the five specified
constants.Container.add(java.awt.Component, java.lang.Object)
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent(Component, Object).
addLayoutComponent in interface LayoutManageraddLayoutComponent in class OverlayLayoutpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerremoveLayoutComponent in class OverlayLayoutcomp - the component to be removed.Container.remove(java.awt.Component),
Container.removeAll()
public Component getLayoutComponent(Container target,
Object constraints)
constraints - the desired absolute position, one of MONO,
one of LEFT, RIGHT,target - the Container using this BorderLayout
IllegalArgumentException - if the constraint object is
not one of the five specified constants
NullPointerException - if the target parameter is nulladdLayoutComponent(java.awt.Component, java.lang.Object)public Object getConstraints(Component comp)
comp - the component to be queried
addLayoutComponent(java.awt.Component, java.lang.Object)public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||