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, waitboundingBoxOfPoints, getDoubles, getPointspublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String kindString()
kindString in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic boolean isPoly()
isPoly in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic boolean isCurve()
isCurve in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic int multi()
multi in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic boolean isLoop()
isLoop in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic void setPoly(java.lang.Object aSetOfPoints)
setPoly in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic void setPoly(org.graphstream.ui.geom.Point3[] aSetOfPoints)
setPoly in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic 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.ConnectorSkeletonpublic void setLine(double x0,
double y0,
double z0,
double x1,
double y1,
double z1)
setLine in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic void setMulti(int aMulti)
setMulti in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic boolean isMulti()
isMulti in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic 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.ConnectorSkeletonpublic int size()
size in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 apply(int i)
apply in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic void update(int i,
org.graphstream.ui.geom.Point3 p)
update in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 to()
to in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 from()
from in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic double length()
length in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic double[] segmentsLengths()
segmentsLengths in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic double segmentLength(int i)
segmentLength in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 pointOnShape(double percent)
pointOnShape in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 pointOnShape(double percent,
org.graphstream.ui.geom.Point3 target)
pointOnShape in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 pointOnShapeAndPerpendicular(double percent,
double perpendicular)
pointOnShapeAndPerpendicular in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic org.graphstream.ui.geom.Point3 pointOnShapeAndPerpendicular(double percent,
double perpendicular,
org.graphstream.ui.geom.Point3 target)
pointOnShapeAndPerpendicular in interface org.graphstream.ui.view.camera.ConnectorSkeletonpublic Skeleton.Triplet<java.lang.Integer,java.lang.Double,java.lang.Double> wichSegment(double at)