public abstract static class MultiSplitLayout.Node extends Object
Constructor and Description |
---|
Node() |
Modifier and Type | Method and Description |
---|---|
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.
|
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(Rectangle bounds)
Set the bounding Rectangle for this node.
|
void |
setParent(MultiSplitLayout.Split parent)
Set the value of this Node's parent property.
|
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 MultiSplitLayout.Split getParent()
setParent(org.jdesktop.swingx.MultiSplitLayout.Split)
public void setParent(MultiSplitLayout.Split parent)
parent
- a Split or nullgetParent()
public Rectangle getBounds()
setBounds(java.awt.Rectangle)
public void setBounds(Rectangle bounds)
new Rectangle(0,0,0,0)
.bounds
- the new value of the bounds propertyIllegalArgumentException
- if bounds is nullgetBounds()
public double getWeight()
setWeight(double)
public void setWeight(double weight)
weight
- a double between 0.0 and 1.0IllegalArgumentException
- 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()
Copyright © 2023. All rights reserved.