Eclipse Draw2d
3.0.1

org.eclipse.draw2d.graph
Class VirtualNode

java.lang.Object
  extended byorg.eclipse.draw2d.graph.Node
      extended byorg.eclipse.draw2d.graph.VirtualNode

public class VirtualNode
extends Node

Since:
2.1

Field Summary
 Node next
          The next node.
 Node prev
          The previous node.
 
Fields inherited from class org.eclipse.draw2d.graph.Node
data, flag, height, incoming, incomingOffset, index, nestingIndex, outgoing, outgoingOffset, rank, sortValue, width, workingData, workingInts, x, y
 
Constructor Summary
VirtualNode(Edge e, int i)
          Constructs a virtual node.
 
Method Summary
 double medianIncoming()
          Returns the index of prev.
 double medianOutgoing()
          Returns the index of next.
 int omega()
          For internal use only.
 String toString()
           
 
Methods inherited from class org.eclipse.draw2d.graph.Node
getOffsetIncoming, getOffsetOutgoing, getPadding, getParent, isNested, setPadding, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

prev

public Node prev
The previous node.


next

public Node next
The next node.

Constructor Detail

VirtualNode

public VirtualNode(Edge e,
                   int i)
Constructs a virtual node.

Parameters:
e - the edge
i - the row
Method Detail

medianOutgoing

public double medianOutgoing()
Returns the index of next.


medianIncoming

public double medianIncoming()
Returns the index of prev.


omega

public int omega()
For internal use only. Returns the original edge weight multiplied by the omega value for the this node and the node on the previous rank.

Returns:
the weighted weight, or omega

toString

public String toString()
Overrides:
toString in class Node
See Also:
Object.toString()

Eclipse Draw2d
3.0.1

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.