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

IconAndText

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

Attributes
abstract
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. IconAndText
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Abstract Value Members

  1. def height : Double

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

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

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

    Render the icon and text at the specified position.

    Render the icon and text at the specified position.

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

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

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

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

    Set the text string to paint.

    Set the text string to paint.

    Attributes
    abstract
  5. def width : Double

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

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

    Attributes
    abstract

Concrete 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 ascent : Double

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

  8. def clone (): AnyRef

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

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

  10. def eq (arg0: AnyRef): Boolean

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  14. def hashCode (): Int

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. val offx : Double

  20. val offy : Double

  21. val padx : Double

  22. val pady : Double

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

    Attributes
    final
    Definition Classes
    AnyRef
  24. val text : TextBox

  25. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any