|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.layout.hierarchical.model.JGraphAbstractHierarchyCell
com.jgraph.layout.hierarchical.model.JGraphHierarchyNode
public class JGraphHierarchyNode
An abstraction of an internal node in the hierarchy layout
Field Summary | |
---|---|
Object |
cell
The graph cell this object represents. |
static int |
CELL_TYPE_BRANCH
|
static int |
CELL_TYPE_END
|
static int |
CELL_TYPE_JOIN
|
static int |
CELL_TYPE_NONE
|
static int |
CELL_TYPE_START
|
int |
cellType
For future use |
Collection |
connectsAsSource
Collection of hierarchy edges that have this node as a source |
Collection |
connectsAsTarget
Collection of hierarchy edges that have this node as a target |
static Collection |
emptyConnectionMap
Shared empty connection map to return instead of null in applyMap. |
int[] |
hashCode
Assigns a unique hashcode for each node. |
Fields inherited from class com.jgraph.layout.hierarchical.model.JGraphAbstractHierarchyCell |
---|
height, maxRank, minRank, nextLayerConnectedCells, previousLayerConnectedCells, temp, width, x, y |
Constructor Summary | |
---|---|
JGraphHierarchyNode(Object cell)
Constructs an internal node to represent the specified real graph cell |
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 |
int |
getRankValue()
Returns the integer value of the layer that this node resides in |
boolean |
isAncestor(JGraphHierarchyNode otherNode)
|
boolean |
isEdge()
|
boolean |
isVertex()
|
void |
setGeneralPurposeVariable(int layer,
int value)
Set the value of temp for the specified layer |
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 |
---|
public static transient Collection emptyConnectionMap
public static final int CELL_TYPE_NONE
public static final int CELL_TYPE_START
public static final int CELL_TYPE_END
public static final int CELL_TYPE_BRANCH
public static final int CELL_TYPE_JOIN
public Object cell
public int cellType
public Collection connectsAsTarget
public Collection connectsAsSource
public int[] hashCode
Constructor Detail |
---|
public JGraphHierarchyNode(Object cell)
cell
- the real graph cell this node representsMethod Detail |
---|
public int getRankValue()
public List getNextLayerConnectedCells(int layer)
getNextLayerConnectedCells
in class JGraphAbstractHierarchyCell
layer
- the layer this cell is on
public List getPreviousLayerConnectedCells(int layer)
getPreviousLayerConnectedCells
in class JGraphAbstractHierarchyCell
layer
- the layer this cell is on
public boolean isEdge()
isEdge
in class JGraphAbstractHierarchyCell
public boolean isVertex()
isVertex
in class JGraphAbstractHierarchyCell
public int getGeneralPurposeVariable(int layer)
getGeneralPurposeVariable
in class JGraphAbstractHierarchyCell
layer
- the layer relating to a specific entry into temp
public void setGeneralPurposeVariable(int layer, int value)
setGeneralPurposeVariable
in class JGraphAbstractHierarchyCell
layer
- the layer relating to a specific entry into tempvalue
- the value for that layerpublic boolean isAncestor(JGraphHierarchyNode otherNode)
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |