public class ConnectorSkeleton extends Skeleton implements AttributeUtils, org.graphstream.ui.view.camera.ConnectorSkeleton
Skeleton.EdgeShapeKind, Skeleton.Triplet<X,Y,Z>
AttributeUtils.Tuple<X,Y>
iconAndText
Constructor and Description |
---|
ConnectorSkeleton() |
Modifier and Type | Method and Description |
---|---|
org.graphstream.ui.geom.Point3 |
apply(int i)
The i-th point of the edge shape.
|
org.graphstream.ui.geom.Point3 |
from()
The first point of the edge shape.
|
boolean |
isCurve()
If true the edge shape is a loop defined by four points.
|
boolean |
isLoop()
This is only set when the edge is a curve, if true the starting and
ending nodes of the edge are the same node.
|
boolean |
isMulti() |
boolean |
isPoly()
If true the edge shape is a polyline made of size points.
|
java.lang.String |
kindString() |
double |
length()
Total length of the polyline defined by the points.
|
int |
multi()
If larger than one there are several edges between the two nodes of this edge.
|
org.graphstream.ui.geom.Point3 |
pointOnShape(double percent)
Compute a point at the given percent on the shape and return it.
|
org.graphstream.ui.geom.Point3 |
pointOnShape(double percent,
org.graphstream.ui.geom.Point3 target)
Compute a point at a given percent on the shape and store it in the target,
also returning it.
|
org.graphstream.ui.geom.Point3 |
pointOnShapeAndPerpendicular(double percent,
double perpendicular)
Compute a point at a given percent on the shape and push it from the shape perpendicular
to it at a given distance in GU.
|
org.graphstream.ui.geom.Point3 |
pointOnShapeAndPerpendicular(double percent,
double perpendicular,
org.graphstream.ui.geom.Point3 target)
Compute a point at a given percent on the shape and push it from the shape perpendicular
to it at a given distance in GU.
|
double |
segmentLength(int i)
Length of the i-th segment.
|
double[] |
segmentsLengths()
Compute the length of each segment between the points making up this edge.
|
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) |
void |
setLine(double x0,
double y0,
double z0,
double x1,
double y1,
double z1) |
void |
setLoop(double x0,
double y0,
double z0,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
void |
setMulti(int aMulti) |
void |
setPoly(java.lang.Object aSetOfPoints) |
void |
setPoly(org.graphstream.ui.geom.Point3[] aSetOfPoints) |
int |
size()
The number of points in the edge shape.
|
org.graphstream.ui.geom.Point3 |
to()
The last point of the edge shape.
|
java.lang.String |
toString() |
void |
update(int i,
org.graphstream.ui.geom.Point3 p)
Change the i-th point in the set of points making up the shape of this edge.
|
Skeleton.Triplet<java.lang.Integer,java.lang.Double,java.lang.Double> |
wichSegment(double at)
On which segment of the line shape is the value at.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
boundingBoxOfPoints, getDoubles, getPoints
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String kindString()
kindString
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public boolean isPoly()
isPoly
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public boolean isCurve()
isCurve
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public int multi()
multi
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public boolean isLoop()
isLoop
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public void setPoly(java.lang.Object aSetOfPoints)
setPoly
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public void setPoly(org.graphstream.ui.geom.Point3[] aSetOfPoints)
setPoly
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
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)
setCurve
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public void setLine(double x0, double y0, double z0, double x1, double y1, double z1)
setLine
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public void setMulti(int aMulti)
setMulti
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public boolean isMulti()
isMulti
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public void setLoop(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2)
setLoop
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public int size()
size
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 apply(int i)
apply
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public void update(int i, org.graphstream.ui.geom.Point3 p)
update
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 to()
to
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 from()
from
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public double length()
length
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public double[] segmentsLengths()
segmentsLengths
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public double segmentLength(int i)
segmentLength
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 pointOnShape(double percent)
pointOnShape
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 pointOnShape(double percent, org.graphstream.ui.geom.Point3 target)
pointOnShape
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 pointOnShapeAndPerpendicular(double percent, double perpendicular)
pointOnShapeAndPerpendicular
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public org.graphstream.ui.geom.Point3 pointOnShapeAndPerpendicular(double percent, double perpendicular, org.graphstream.ui.geom.Point3 target)
pointOnShapeAndPerpendicular
in interface org.graphstream.ui.view.camera.ConnectorSkeleton
public Skeleton.Triplet<java.lang.Integer,java.lang.Double,java.lang.Double> wichSegment(double at)