bibliothek.gui.dock.station.screen.magnet
Class StickMagnetGraph.DefaultEdge

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.magnet.StickMagnetGraph.DefaultEdge
All Implemented Interfaces:
StickMagnetGraph.Edge
Enclosing class:
StickMagnetGraph

protected class StickMagnetGraph.DefaultEdge
extends Object
implements StickMagnetGraph.Edge

Default implementation of StickMagnetGraph.Edge.

Author:
Benjamin Sigg

Constructor Summary
StickMagnetGraph.DefaultEdge(StickMagnetGraph.DefaultNode source, StickMagnetGraph.DefaultNode target, MagnetRequest.Side side)
           
 
Method Summary
 MagnetRequest.Side getSide()
          Tells at which side of the starting node this edge leaves the node.
 StickMagnetGraph.DefaultNode getSource()
          Gets the starting node of this edge.
 StickMagnetGraph.DefaultNode getTarget()
          Gets the ending node of this edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StickMagnetGraph.DefaultEdge

public StickMagnetGraph.DefaultEdge(StickMagnetGraph.DefaultNode source,
                                    StickMagnetGraph.DefaultNode target,
                                    MagnetRequest.Side side)
Method Detail

getSource

public StickMagnetGraph.DefaultNode getSource()
Description copied from interface: StickMagnetGraph.Edge
Gets the starting node of this edge.

Specified by:
getSource in interface StickMagnetGraph.Edge
Returns:
the start

getTarget

public StickMagnetGraph.DefaultNode getTarget()
Description copied from interface: StickMagnetGraph.Edge
Gets the ending node of this edge.

Specified by:
getTarget in interface StickMagnetGraph.Edge
Returns:
the end

getSide

public MagnetRequest.Side getSide()
Description copied from interface: StickMagnetGraph.Edge
Tells at which side of the starting node this edge leaves the node.

Specified by:
getSide in interface StickMagnetGraph.Edge
Returns:
the side