public abstract static class MultiSplitLayout.Node extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.awt.Rectangle |
bounds |
private MultiSplitLayout.Split |
parent |
private double |
weight |
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getBounds()
Returns the bounding Rectangle for this Node.
|
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.Split |
parent_get()
Returns the Split parent of this Node, or null.
|
void |
parent_set(MultiSplitLayout.Split parent)
Set the value of this Node's parent property.
|
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 |
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.
|
private MultiSplitLayout.Node |
siblingAtOffset(int offset) |
private MultiSplitLayout.Split parent
private java.awt.Rectangle bounds
private double weight
public Node()
public MultiSplitLayout.Split parent_get()
parent_set(org.openstreetmap.josm.gui.widgets.MultiSplitLayout.Split)public void parent_set(MultiSplitLayout.Split parent)
parent - a Split or nullparent_get()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)private MultiSplitLayout.Node siblingAtOffset(int offset)
public MultiSplitLayout.Node nextSibling()
previousSibling(),
parent_get()public MultiSplitLayout.Node previousSibling()
nextSibling(),
parent_get()