public class GraphNode implements AutoLayoutable
AutoLayoutable.DefaultImpls| Constructor and Description |
|---|
GraphNode(ru.fix.completable.reactor.model.Figure figure) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getAutoLayoutX() |
java.lang.Integer |
getAutoLayoutY() |
ru.fix.completable.reactor.model.Figure |
getFigure() |
java.util.ArrayList<ru.fix.completable.reactor.graph.viewer.gl.GraphNode> |
getGraphChildren() |
int |
getNodeHeight() |
int |
getNodeWidth() |
int |
getNodeX()
x position of the node.
|
int |
getNodeY()
y position of the node.
|
boolean |
isUserDefinedCoordinates()
User could specify graph vertices coordinate in graph configuration source class.
This coordinates is stored in GraphModel.
This Coordinates are logical. They being translated to JavaFx position (layoutX and layoutY property of
javaFx Nodes) during graph visualization.
If user coordinates is defined for particular node, AutoLayout should skip this node and not change
it's coordinates
Otherwise if user coordinate is not defined in graph source, AutoLayout could take place and initialize
coordinates.
|
void |
setAutoLayoutX(java.lang.Integer p) |
void |
setAutoLayoutY(java.lang.Integer p) |
void |
setNodeX(int value)
x position of the node.
|
void |
setNodeY(int value)
y position of the node.
|
getFigure, getGraphChildren, getNodeHeight, getNodeWidth, getNodeX, getNodeY, isUserDefinedCoordinates, nodeCenterX, nodeCenterY, setNodeX, setNodeYpublic java.util.ArrayList<ru.fix.completable.reactor.graph.viewer.gl.GraphNode> getGraphChildren()
public java.lang.Integer getAutoLayoutX()
public void setAutoLayoutX(java.lang.Integer p)
public java.lang.Integer getAutoLayoutY()
public void setAutoLayoutY(java.lang.Integer p)
public int getNodeX()
x position of the node.
public void setNodeX(int value)
x position of the node.
public int getNodeY()
y position of the node.
public void setNodeY(int value)
y position of the node.
public boolean isUserDefinedCoordinates()
User could specify graph vertices coordinate in graph configuration source class. This coordinates is stored in GraphModel. This Coordinates are logical. They being translated to JavaFx position (layoutX and layoutY property of javaFx Nodes) during graph visualization. If user coordinates is defined for particular node, AutoLayout should skip this node and not change it's coordinates Otherwise if user coordinate is not defined in graph source, AutoLayout could take place and initialize coordinates.
public int getNodeHeight()
public int getNodeWidth()
public ru.fix.completable.reactor.model.Figure getFigure()