public abstract class VisibleSplitNode extends SplitNode
SplitNode
that is visible to the user.Modifier | Constructor and Description |
---|---|
protected |
VisibleSplitNode(SplitDockAccess access,
long id)
Creates a new node.
|
Modifier and Type | Method and Description |
---|---|
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.
|
above, addPlaceholder, aside, aside, create, create, createLeaf, createNode, createPlaceholder, delete, ensureIdUnique, ensureIdUniqueAsync, evolve, getAccess, getBounds, getChild, getChildLocation, getDividerNode, getHeight, getId, getLeaf, getMaxChildrenCount, getMinimumSize, getParent, getPlaceholderMap, getPlaceholderNode, getPlaceholders, getPreferredSize, getPut, getRoot, getSize, getStation, getTotalChildrenCount, getVisible, getWidth, getX, getY, hasPlaceholder, hasPlaceholders, insert, insert, intersection, isInOverrideZone, isOfUse, isVisible, movePlaceholderMap, relativeSidePut, removePlaceholder, removePlaceholders, replace, setBounds, setChild, setParent, setPlaceholderMap, setPlaceholders, split, split, submit, toString, toString, treeChanged, visit
protected VisibleSplitNode(SplitDockAccess access, long id)
access
- access to the SplitDockStation
id
- the unique identifier of this nodepublic void updateBounds(double x, double y, double width, double height, double factorW, double factorH, boolean updateComponentBounds)
SplitNode
Component
, then
the bounds of the component have to be updated as well.updateBounds
on
the children of this node.updateBounds
in class SplitNode
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
.SplitNode.setBounds(double, double, double, double, double, double, boolean)
public Rectangle getCurrentBounds()
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.