bibliothek.gui.dock.station.split
Class VisibleSplitNode
java.lang.Object
bibliothek.gui.dock.station.split.SplitNode
bibliothek.gui.dock.station.split.VisibleSplitNode
- Direct Known Subclasses:
- Leaf, Node, Root
public abstract class VisibleSplitNode
- extends SplitNode
Represents a SplitNode
that is visible to the user.
- Author:
- Benjamin Sigg
Method Summary |
Rectangle |
getCurrentBounds()
Gets the current bounds of this root. |
void |
updateBounds(double x,
double y,
double width,
double height,
double factorW,
double factorH,
boolean updateComponentBounds)
Updates the bounds of this node. |
Methods inherited from class bibliothek.gui.dock.station.split.SplitNode |
above, addPlaceholder, create, create, createLeaf, createNode, createPlaceholder, delete, evolve, getAccess, getBounds, getChildLocation, getDividerNode, getHeight, getId, getLeaf, getMinimumSize, getParent, getPlaceholderMap, getPlaceholders, getPut, getRoot, getSize, getStation, getVisible, getWidth, getX, getY, hasPlaceholder, hasPlaceholders, insert, insert, intersection, isInOverrideZone, isOfUse, isVisible, movePlaceholderMap, relativeSidePut, removePlaceholder, removePlaceholders, replace, setChild, setParent, setPlaceholderMap, setPlaceholders, submit, toString, toString, treeChanged, visit |
VisibleSplitNode
protected VisibleSplitNode(SplitDockAccess access,
long id)
- Creates a new node.
- Parameters:
access
- access to the SplitDockStation
id
- the unique identifier of this node
updateBounds
public void updateBounds(double x,
double y,
double width,
double height,
double factorW,
double factorH,
boolean updateComponentBounds)
- Description copied from class:
SplitNode
- Updates the bounds of this node. If the node represents a
Component
, then
the bounds of the component have to be updated as well.
- Overrides:
updateBounds
in class SplitNode
- Parameters:
x
- the relative x-coordinatey
- the relative y-coordinatewidth
- the relative width of the nodeheight
- the relative height of the nodefactorW
- a factor to be multiplied with x
and width
to get the size of the node in pixelfactorH
- a factor to be multiplied with y
and height
to get the size of the node in pixelupdateComponentBounds
- whether to update the bounds of Component
s
that are in the tree. If set to false
, then all updates stay within
the tree and the graphical user interface is not changed. That can be useful
if more than one round of updates is necessary. If in doubt, set this parameter
to true
.
getCurrentBounds
public Rectangle getCurrentBounds()
- Gets the current bounds of this root. The difference between the current
bounds and the value
SplitNode.getBounds()
is, that the current bounds are
cached. The current bounds are calculated every time when
updateBounds
is called, and then remain until the bounds are updated again.
- Returns:
- the current bounds