JGraph
v5.13.0.0


com.jgraph.layout.hierarchical.model
Class JGraphHierarchyEdge

java.lang.Object
  extended by com.jgraph.layout.hierarchical.model.JGraphAbstractHierarchyCell
      extended by com.jgraph.layout.hierarchical.model.JGraphHierarchyEdge

public class JGraphHierarchyEdge
extends JGraphAbstractHierarchyCell

An abstraction of a hierarchical edge for the hierarchy layout


Field Summary
 List edges
          The graph edge(s) this object represents.
protected  boolean isReversed
          Whether or not the direction of this edge has been reversed internally to create a DAG for the hierarchical layout
 JGraphHierarchyNode source
          The node this edge is sourced at
 JGraphHierarchyNode target
          The node this edge targets
 
Fields inherited from class com.jgraph.layout.hierarchical.model.JGraphAbstractHierarchyCell
height, maxRank, minRank, nextLayerConnectedCells, previousLayerConnectedCells, temp, width, x, y
 
Constructor Summary
JGraphHierarchyEdge(List edges)
          Constructs a hierarchy edge
 
Method Summary
 int getGeneralPurposeVariable(int layer)
          Gets the value of temp for the specified layer
 List getNextLayerConnectedCells(int layer)
          Returns the cells this cell connects to on the next layer up
 List getPreviousLayerConnectedCells(int layer)
          Returns the cells this cell connects to on the next layer down
 void invert()
          Inverts the direction of this internal edge(s)
 boolean isEdge()
           
 boolean isReversed()
           
 boolean isVertex()
           
 void setGeneralPurposeVariable(int layer, int value)
          Set the value of temp for the specified layer
 void setReversed(boolean isReversed)
           
 
Methods inherited from class com.jgraph.layout.hierarchical.model.JGraphAbstractHierarchyCell
getX, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edges

public List edges
The graph edge(s) this object represents. Parallels edge are all grouped together within one hierarchy edge.


source

public JGraphHierarchyNode source
The node this edge is sourced at


target

public JGraphHierarchyNode target
The node this edge targets


isReversed

protected boolean isReversed
Whether or not the direction of this edge has been reversed internally to create a DAG for the hierarchical layout

Constructor Detail

JGraphHierarchyEdge

public JGraphHierarchyEdge(List edges)
Constructs a hierarchy edge

Parameters:
edges - a list of real graph edges this abstraction represents
Method Detail

invert

public void invert()
Inverts the direction of this internal edge(s)


isReversed

public boolean isReversed()
Returns:
Returns the isReversed.

setReversed

public void setReversed(boolean isReversed)
Parameters:
isReversed - The isReversed to set.

getNextLayerConnectedCells

public List getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up

Specified by:
getNextLayerConnectedCells in class JGraphAbstractHierarchyCell
Parameters:
layer - the layer this cell is on
Returns:
the cells this cell connects to on the next layer up

getPreviousLayerConnectedCells

public List getPreviousLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer down

Specified by:
getPreviousLayerConnectedCells in class JGraphAbstractHierarchyCell
Parameters:
layer - the layer this cell is on
Returns:
the cells this cell connects to on the next layer down

isEdge

public boolean isEdge()
Specified by:
isEdge in class JGraphAbstractHierarchyCell
Returns:
whether or not this cell is an edge

isVertex

public boolean isVertex()
Specified by:
isVertex in class JGraphAbstractHierarchyCell
Returns:
whether or not this cell is a node

getGeneralPurposeVariable

public int getGeneralPurposeVariable(int layer)
Gets the value of temp for the specified layer

Specified by:
getGeneralPurposeVariable in class JGraphAbstractHierarchyCell
Parameters:
layer - the layer relating to a specific entry into temp
Returns:
the value for that layer

setGeneralPurposeVariable

public void setGeneralPurposeVariable(int layer,
                                      int value)
Set the value of temp for the specified layer

Specified by:
setGeneralPurposeVariable in class JGraphAbstractHierarchyCell
Parameters:
layer - the layer relating to a specific entry into temp
value - the value for that layer

JGraph
v5.13.0.0


Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.