org.graphstream.ui.j2dviewer.renderer

EdgeInfo

class EdgeInfo extends ElementInfo with AttributeUtils

Element information specific to the edges. Data stored on the edge to retrieve the edge shape points and various shared data between parts of the renderer.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. EdgeInfo
  2. AttributeUtils
  3. ElementInfo
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EdgeInfo ()

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. object EdgeShapeKind extends Enumeration

  7. def apply (i: Int): Point3

    The i-th point of the edge shape.

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def eq (arg0: AnyRef): Boolean

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

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

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

    The first point of the edge shape.

  15. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  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

    Definition Classes
    ElementInfo
  20. def isCurve : Boolean

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

  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    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 length : Double

    Total length of the polyline defined by the points.

  26. def multi : Int

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

  27. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  29. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  30. 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.

  31. 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.

  32. 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.

  33. 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.

  34. 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.

  35. 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.

  36. 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

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

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

  39. def setMulti (i: Int): Unit

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

  41. def setPoly (aSetOfPoints: AnyRef): Unit

  42. def size : Int

    The number of points in the edge shape.

  43. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  44. def to : Point3

    The last point of the edge shape.

  45. def toString (): String

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

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

  47. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. 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 ElementInfo

Inherited from AnyRef

Inherited from Any