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, long id)
          Creates a new turn.
 
Method Summary
 boolean equals(Object obj)
           
 long getId()
          Gets the unique id of the SplitNode that is represented by this node.
 SplitDockPathProperty.Location getLocation()
          Gets the direction into which the path goes
 double getSize()
          Gets the amount of space the path gets in this turn
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SplitDockPathProperty.Node

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

Parameters:
location - the direction into which the path goes
size - the amount of space the path gets in this turn
id - the unique id of this node or -1
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

getId

public long getId()
Gets the unique id of the SplitNode that is represented by this node.

Returns:
the unique id, might be -1

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object