bibliothek.gui.dock.station.split
Class SplitDockPathProperty.Node

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitDockPathProperty.Node
Enclosing class:
SplitDockPathProperty

public static class SplitDockPathProperty.Node
extends Object

Describes one turn of the path.

Author:
Benjamin Sigg

Constructor Summary
SplitDockPathProperty.Node(SplitDockPathProperty.Location location, double size)
          Creates a new turn.
 
Method Summary
 SplitDockPathProperty.Location getLocation()
          Gets the direction into which the path goes
 double getSize()
          Gets the amount of space the path gets in this turn
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SplitDockPathProperty.Node

public SplitDockPathProperty.Node(SplitDockPathProperty.Location location,
                                  double size)
Creates a new turn.

Parameters:
location - the direction into which the path goes
size - the amount of space the path gets in this turn
Method Detail

getSize

public double getSize()
Gets the amount of space the path gets in this turn

Returns:
the amount of space, a value in the range 0.0 to 1.0.

getLocation

public SplitDockPathProperty.Location getLocation()
Gets the direction into which the path goes

Returns:
the direction

toString

public String toString()
Overrides:
toString in class Object