Class MultiSplitLayout.Split
- java.lang.Object
-
- org.openstreetmap.josm.gui.widgets.MultiSplitLayout.Node
-
- org.openstreetmap.josm.gui.widgets.MultiSplitLayout.Split
-
- Enclosing class:
- MultiSplitLayout
public static class MultiSplitLayout.Split extends MultiSplitLayout.Node
Defines a vertical or horizontal subdivision into two or more tiles.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<MultiSplitLayout.Node>
children
private boolean
rowLayout
-
Constructor Summary
Constructors Constructor Description Split()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MultiSplitLayout.Node>
getChildren()
Returns this Split node's children.boolean
isRowLayout()
Returns true if the this Split's children are to be laid out in a row: all the same height, left edge equal to the previous Node's right edge.MultiSplitLayout.Node
lastWeightedChild()
Convenience method that returns the last child whose weight is > 0.0.void
setChildren(java.util.List<MultiSplitLayout.Node> children)
Set's the children property of this Split node.void
setRowLayout(boolean rowLayout)
Set the rowLayout property.java.lang.String
toString()
-
Methods inherited from class org.openstreetmap.josm.gui.widgets.MultiSplitLayout.Node
getBounds, getParent, getWeight, nextSibling, previousSibling, setBounds, setParent, setWeight
-
-
-
-
Field Detail
-
children
private java.util.List<MultiSplitLayout.Node> children
-
rowLayout
private boolean rowLayout
-
-
Constructor Detail
-
Split
public Split()
-
-
Method Detail
-
isRowLayout
public boolean isRowLayout()
Returns true if the this Split's children are to be laid out in a row: all the same height, left edge equal to the previous Node's right edge. If false, children are laid on in a column.- Returns:
- the value of the rowLayout property.
- See Also:
setRowLayout(boolean)
-
setRowLayout
public void setRowLayout(boolean rowLayout)
Set the rowLayout property. If true, all of this Split's children are to be laid out in a row: all the same height, each node's left edge equal to the previous Node's right edge. If false, children are laid on in a column. Default value is true.- Parameters:
rowLayout
- true for horizontal row layout, false for column- See Also:
isRowLayout()
-
getChildren
public java.util.List<MultiSplitLayout.Node> getChildren()
Returns this Split node's children. The returned value is not a reference to the Split's internal list of children- Returns:
- the value of the children property.
- See Also:
setChildren(java.util.List<org.openstreetmap.josm.gui.widgets.MultiSplitLayout.Node>)
-
setChildren
public void setChildren(java.util.List<MultiSplitLayout.Node> children)
Set's the children property of this Split node. The parent of each new child is set to this Split node, and the parent of each old child (if any) is set to null. This method defensively copies the incoming List. Default value is an empty List.- Parameters:
children
- List of children- Throws:
java.lang.IllegalArgumentException
- if children is null- See Also:
getChildren()
-
lastWeightedChild
public final MultiSplitLayout.Node lastWeightedChild()
Convenience method that returns the last child whose weight is > 0.0.- Returns:
- the last child whose weight is > 0.0.
- See Also:
getChildren()
,MultiSplitLayout.Node.getWeight()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-