org.graphstream.ui.j2dviewer.renderer.shape.swing

IconAndText

abstract class IconAndText extends AnyRef

A wrapper for a text and an icon.

The text is dynamic and therefore specified at each rendering. The icon is fixed by the style and specified only at construction, excepted if the icon name is "dynamic" in which case it is taken from the "ui.icon" attribute of the element.

The constructor parameters offx, offy, padx and pady are expressed in pixels. The represent the offset of the text according to its origin and the padding around the text. The text parameter is a TextBox that allows to wrap the text.

XXX TODO This should really be called "ElementContents".

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IconAndText
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IconAndText(text: TextBox, offx: Double, offy: Double, padx: Double, pady: Double)

Abstract Value Members

  1. abstract def height: Double

    Overall height of the icon and text with all space and padding included.

  2. abstract def render(backend: Backend, camera: Camera, xLeft: Double, yBottom: Double): Unit

    Render the icon and text at the specified position.

  3. abstract def setIcon(backend: Backend, url: String): Unit

    Set the icon image to draw, or null to remove the icon.

  4. abstract def setText(backend: Backend, text: String): Unit

    Set the text string to paint.

  5. abstract def width: Double

    Overall width of the icon and text with all space and padding included.

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

    Definition Classes
    Any
  7. def ascent: Double

    Overall ascent of the icon and text with all space and padding included.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def descent: Double

    Overall descent of the icon and text with all space and padding included.

  10. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. val offx: Double

  20. val offy: Double

  21. val padx: Double

  22. val pady: Double

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

    Definition Classes
    AnyRef
  24. val text: TextBox

  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped