use of org.graphstream.ui.javafx.util.EdgePoints in project gs-ui-javafx by graphstream.
the class ConnectorSkeleton method setPoly.
public void setPoly(Object aSetOfPoints) {
if (!kind.equals(EdgeShapeKind.POLYLINE)) {
kind = EdgeShapeKind.POLYLINE;
Point3[] thePoints = getPoints(aSetOfPoints);
points = new EdgePoints(thePoints.length);
points.copy(thePoints);
lengths = null;
}
}
use of org.graphstream.ui.javafx.util.EdgePoints in project gs-ui-javafx by graphstream.
the class ConnectorSkeleton method setLoop.
public void setLoop(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2) {
kind = EdgeShapeKind.CURVE;
if (points.size() != 4)
points = new EdgePoints(4);
isALoop = true;
points.update(0, new Point3(x0, y0, z0));
points.update(1, new Point3(x1, y1, z1));
points.update(2, new Point3(x2, y2, z2));
points.update(3, new Point3(x0, y0, z0));
}
use of org.graphstream.ui.javafx.util.EdgePoints in project gs-ui-javafx by graphstream.
the class ConnectorSkeleton method setCurve.
public void setCurve(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3) {
kind = EdgeShapeKind.CURVE;
if (points.size() != 4)
points = new EdgePoints(4);
points.update(0, new Point3(x0, y0, z0));
points.update(1, new Point3(x1, y1, z1));
points.update(2, new Point3(x2, y2, z2));
points.update(3, new Point3(x3, y3, z3));
}
use of org.graphstream.ui.javafx.util.EdgePoints in project gs-ui-javafx by graphstream.
the class ConnectorSkeleton method setLine.
public void setLine(double x0, double y0, double z0, double x1, double y1, double z1) {
kind = EdgeShapeKind.LINE;
if (points.size() != 2)
points = new EdgePoints(2);
points.update(0, new Point3(x0, y0, z0));
points.update(1, new Point3(x1, y1, z1));
}
Aggregations