org.graphstream.ui.j2dviewer.renderer

ConnectorSkeleton

class ConnectorSkeleton extends Skeleton with AttributeUtils

Skeleton for edges. Data stored on the edge to retrieve the edge basic geometry and various shared data between parts of the renderer.

XXX TODO This part needs much work. The skeleton geometry of an edge can be various things:

Linear Supertypes
AttributeUtils, Skeleton, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConnectorSkeleton
  2. AttributeUtils
  3. Skeleton
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConnectorSkeleton()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object EdgeShapeKind extends Enumeration

  7. def apply(i: Int): Point3

    The i-th point of the edge shape.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def boundingBoxOfPoints(points: Array[Point3]): (Point3, Point3)

    Compute the bounding box of the given set of points.

    Compute the bounding box of the given set of points.

    returns

    A 2-tuple with the minimum and maximum 3D points.

    Attributes
    protected
    Definition Classes
    AttributeUtils
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def from: Point3

    The first point of the edge shape.

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getDoubles(values: AnyRef): Array[Double]

    Try to extract an array of double values from various sources.

    Try to extract an array of double values from various sources.

    Attributes
    protected
    Definition Classes
    AttributeUtils
  17. def getPoints(values: AnyRef): Array[Point3]

    Try to extract an array of 3D points from various sources.

    Try to extract an array of 3D points from various sources. It actually works only for arrays of Point3, or arrays of floats, doubles and integers.

    returns

    An array of 3D points.

    Attributes
    protected
    Definition Classes
    AttributeUtils
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. var iconAndText: IconAndText

    The contents of the element.

    The contents of the element. Allows to extract metrics of the contents.

    Definition Classes
    Skeleton
  20. def isCurve: Boolean

    If true the edge shape is a loop defined by four points.

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isLoop: Boolean

    This is only set when the edge is a curve, if true the starting and ending nodes of the edge are the same node.

  23. def isMulti: Boolean

  24. def isPoly: Boolean

    If true the edge shape is a polyline made of size points.

  25. def kindString(): String

  26. def length: Double

    Total length of the polyline defined by the points.

  27. def multi: Int

    If larger than one there are several edges between the two nodes of this edge.

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def pointOnShape(percent: Double, target: Point3): Point3

    Compute a point at a given percent on the shape and store it in the target, also returning it.

    Compute a point at a given percent on the shape and store it in the target, also returning it. The percent must be a number between 0 and 1.

  32. def pointOnShape(percent: Double): Point3

    Compute a point at the given percent on the shape and return it.

    Compute a point at the given percent on the shape and return it. The percent must be a number between 0 and 1.

  33. def pointOnShapeAndPerpendicular(percent: Double, perpendicular: Double, target: Point3): Point3

    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.

    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. The percent must be a number between 0 and 1. The result is stored in target and also returned.

  34. def pointOnShapeAndPerpendicular(percent: Double, perpendicular: Double): Point3

    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.

    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. The percent must be a number between 0 and 1. The resulting points is returned.

  35. def segmentLength(i: Int): Double

    Length of the i-th segment.

    Length of the i-th segment. There are size-1 segments if there are size points. The segment 0 is between points 0 and 1.

  36. def segmentsLengths(): Array[Double]

    Compute the length of each segment between the points making up this edge.

    Compute the length of each segment between the points making up this edge. This is mostly only useful for polylines. The results of this method is cached. It is only recomputed when a points changes in the shape. There are size-1 segments if the are size points. The segment 0 is between points 0 and 1.

  37. def setCurve(x0: Double, y0: Double, z0: Double, x1: Double, y1: Double, z1: Double, x2: Double, y2: Double, z2: Double, x3: Double, y3: Double, z3: Double): Unit

  38. def setLine(x0: Double, y0: Double, z0: Double, x1: Double, y1: Double, z1: Double): Unit

  39. def setLoop(x0: Double, y0: Double, z0: Double, x1: Double, y1: Double, z1: Double, x2: Double, y2: Double, z2: Double): Unit

  40. def setMulti(i: Int): Unit

  41. def setPoly(aSetOfPoints: Point3*): Unit

  42. def setPoly(aSetOfPoints: AnyRef): Unit

  43. def size: Int

    The number of points in the edge shape.

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def to: Point3

    The last point of the edge shape.

  46. def toString(): String

    Definition Classes
    ConnectorSkeleton → AnyRef → Any
  47. def update(i: Int, p: Point3): Unit

    Change the i-th point in the set of points making up the shape of this edge.

  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  51. def wichSegment(at: Double): (Int, Double, Double)

    On which segment of the line shape is the value at.

    On which segment of the line shape is the value at. The value at must be between 0 and 1 and expresses a percentage on the shape. There are size-1 segments if size is the number of points of the shape. The segment 0 is between points 0 and 1. This method both compute the index of the segment, but also the sum of the previous segments lengths (not including the i-th segment), as well as the percent on the segment (a number in 0..1).

Inherited from AttributeUtils

Inherited from Skeleton

Inherited from AnyRef

Inherited from Any

Ungrouped