public class mxOrganicLayout.CellWrapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
cell
The actual graph cell this wrapper represents
|
protected int[] |
connectedEdges
the index of all connected edges in the
e array
to this node. |
protected double |
heightSquared
The height of the node squared, only used if approxNodeDimensions
is set to true.
|
protected double |
radiusSquared
The approximate radius squared of this cell, nodes only.
|
protected int[] |
relevantEdges
All edge that repel this cell, only used for nodes.
|
protected int |
source
The index of the node attached to this edge as source, edges only
|
protected int |
target
The index of the node attached to this edge as target, edges only
|
protected double |
x
The x-coordinate position of this cell, nodes only
|
protected double |
y
The y-coordinate position of this cell, nodes only
|
Constructor and Description |
---|
CellWrapper(java.lang.Object cell)
Constructs a new CellWrapper
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCell() |
int[] |
getConnectedEdges() |
double |
getHeightSquared() |
double |
getRadiusSquared() |
int[] |
getRelevantEdges() |
int |
getSource() |
int |
getTarget() |
double |
getX() |
double |
getY() |
void |
setConnectedEdges(int[] connectedEdges) |
void |
setHeightSquared(double heightSquared) |
void |
setRadiusSquared(double radiusSquared) |
void |
setRelevantEdges(int[] relevantEdges) |
void |
setSource(int source) |
void |
setTarget(int target) |
void |
setX(double x) |
void |
setY(double y) |
protected java.lang.Object cell
protected int[] relevantEdges
protected int[] connectedEdges
e
array
to this node. This is only used for nodes.protected double x
protected double y
protected double radiusSquared
protected double heightSquared
protected int source
protected int target
public CellWrapper(java.lang.Object cell)
cell
- the graph cell this wrapper representspublic int[] getRelevantEdges()
public void setRelevantEdges(int[] relevantEdges)
relevantEdges
- the relevantEdges to setpublic int[] getConnectedEdges()
public void setConnectedEdges(int[] connectedEdges)
connectedEdges
- the connectedEdges to setpublic double getX()
public void setX(double x)
x
- the x to setpublic double getY()
public void setY(double y)
y
- the y to setpublic double getRadiusSquared()
public void setRadiusSquared(double radiusSquared)
radiusSquared
- the radiusSquared to setpublic double getHeightSquared()
public void setHeightSquared(double heightSquared)
heightSquared
- the heightSquared to setpublic int getSource()
public void setSource(int source)
source
- the source to setpublic int getTarget()
public void setTarget(int target)
target
- the target to setpublic java.lang.Object getCell()
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.