org.graphstream.ui.util

GraphMetrics

class GraphMetrics extends AnyRef

Various geometric informations on the graphic graph.

This class provides metrics on the graphic graph and on the rendering canvas, and allow to convert from graph metrics to canvas metrics and the reverse.

Here we call the canvas "view port" since this class allows to place a view port inside the graph in order to zoom and pan the view.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GraphMetrics
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GraphMetrics ()

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. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. var diagonal : Double

    The graph diagonal.

  9. def eq (arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  13. def graphDepthGU : Double

  14. def graphHeightGU : Double

  15. def graphWidthGU : Double

  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. val hi : Point3

    Graph higher position (top,right,back).

  18. val hiVisible : Point3

    The highest visible point.

  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def lengthToGu (values: Values, index: Int): Double

    Convert one of the given values in a given units to graph units.

    Convert one of the given values in a given units to graph units.

    values

    The values set containing the value to convert (it contains its own units).

    index

    Index of the value to convert.

  21. def lengthToGu (value: Value): Double

    Convert a value in a given units to graph units.

    Convert a value in a given units to graph units.

    value

    The value to convert (it contains its own units).

  22. def lengthToGu (value: Double, units: Units): Double

    Convert a value in given units to graph units.

    Convert a value in given units to graph units.

    value

    The value to convert.

    units

    The units the value to convert is expressed in.

    returns

    The value converted to GU.

  23. def lengthToPx (values: Values, index: Int): Double

    Convert one of the given values in a given units pixels.

    Convert one of the given values in a given units pixels.

    values

    The values set containing the value to convert (it contains its own units).

    index

    Index of the value to convert.

  24. def lengthToPx (value: Value): Double

    Convert a value in a given units to pixels.

    Convert a value in a given units to pixels.

    value

    The value to convert (it contains its own units).

  25. def lengthToPx (value: Double, units: Units): Double

    Convert a value in a given units to pixels.

    Convert a value in a given units to pixels.

    value

    The value to convert.

    units

    The units the value to convert is expressed in.

    returns

    The value converted in pixels.

  26. val lo : Point3

    Graph lower position (bottom,left,front).

  27. val loVisible : Point3

    The lowest visible point.

  28. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  31. def px1 : Double

    The length for one pixel, according to the current transformation.

  32. def ratioPx2Gu : Double

    The scaling factor to pass from graph units to pixels.

  33. def ratioPx2Gu_= (ratio: Double): Unit

    The ratio to pass by multiplication from pixels to graph units.

    The ratio to pass by multiplication from pixels to graph units. This ratio must be larger than zero, else nothing is changed.

    ratio

    The ratio.

  34. def setBounds (minx: Double, miny: Double, minz: Double, maxx: Double, maxy: Double, maxz: Double): Unit

    Set the graphic graph bounds (the lowest and highest points).

    Set the graphic graph bounds (the lowest and highest points).

    minx

    Lowest abscissa.

    miny

    Lowest ordinate.

    minz

    Lowest depth.

    maxx

    Highest abscissa.

    maxy

    Highest ordinate.

    maxz

    Highest depth.

  35. def setDefaults (): Unit

    Set defaults value in the lo, hi and size fields to (-1) and (1) respectively.

    Set defaults value in the lo, hi and size fields to (-1) and (1) respectively.

    Attributes
    protected
  36. def setViewport (viewportWidth: Double, viewportHeight: Double): Unit

    Set the output view port size in pixels.

    Set the output view port size in pixels.

    viewportWidth

    The width in pixels of the view port.

    viewportHeight

    The width in pixels of the view port.

  37. def size (i: Int): Double

    Components of the size.

  38. val size : Vector3

    Graph dimension.

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

    Attributes
    final
    Definition Classes
    AnyRef
  40. def toString (): String

    Definition Classes
    GraphMetrics → AnyRef → Any
  41. def viewport (i: Int): Double

    Components of the view-port.

  42. val viewport : Vector3

    The view port size.

  43. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any