bibliothek.gui.dock.station.split
Class VisibleSplitNode

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitNode
      extended by 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

Field Summary
 
Fields inherited from class bibliothek.gui.dock.station.split.SplitNode
height, width, x, y
 
Constructor Summary
protected VisibleSplitNode(SplitDockAccess access, long id)
          Creates a new node.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisibleSplitNode

protected VisibleSplitNode(SplitDockAccess access,
                           long id)
Creates a new node.

Parameters:
access - access to the SplitDockStation
id - the unique identifier of this node
Method Detail

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-coordinate
y - the relative y-coordinate
width - the relative width of the node
height - the relative height of the node
factorW - a factor to be multiplied with x and width to get the size of the node in pixel
factorH - a factor to be multiplied with y and height to get the size of the node in pixel
updateComponentBounds - whether to update the bounds of Components 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