public abstract static class MultiSplitLayout.Node
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MultiSplitLayout.Node() |
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds()
Returns the bounding Rectangle for this Node.
|
MultiSplitLayout.Split |
getParent()
Returns the Split parent of this Node, or null.
|
double |
getWeight()
Value between 0.0 and 1.0 used to compute how much space to add to
this sibling when the layout grows or how much to reduce when the
layout shrinks.
|
boolean |
isVisible()
Determines whether this node should be visible when its parent is
visible.
|
MultiSplitLayout.Node |
nextSibling()
Return the Node that comes after this one in the parent's list of
children, or null.
|
MultiSplitLayout.Node |
previousSibling()
Return the Node that comes before this one in the parent's list of
children, or null.
|
void |
setBounds(java.awt.Rectangle bounds)
Set the bounding Rectangle for this node.
|
void |
setParent(MultiSplitLayout.Split parent)
Set the value of this Node's parent property.
|
void |
setVisible(boolean b) |
void |
setWeight(double weight)
The weight property is a between 0.0 and 1.0 used to compute how much
space to add to this sibling when the layout grows or how much to
reduce when the layout shrinks.
|
public void setVisible(boolean b)
public boolean isVisible()
true
if the node is visible, false
otherwisepublic MultiSplitLayout.Split getParent()
setParent(org.jdesktop.swingx.MultiSplitLayout.Split)
public void setParent(MultiSplitLayout.Split parent)
parent
- a Split or nullgetParent()
public java.awt.Rectangle getBounds()
setBounds(java.awt.Rectangle)
public void setBounds(java.awt.Rectangle bounds)
new Rectangle(0,0,0,0)
.bounds
- the new value of the bounds propertyjava.lang.IllegalArgumentException
- if bounds is nullgetBounds()
public double getWeight()
setWeight(double)
public void setWeight(double weight)
weight
- a double between 0.0 and 1.0java.lang.IllegalArgumentException
- if weight is not between 0.0 and 1.0getWeight()
,
MultiSplitLayout.layoutContainer(java.awt.Container)
public MultiSplitLayout.Node nextSibling()
previousSibling()
,
getParent()
public MultiSplitLayout.Node previousSibling()
nextSibling()
,
getParent()