java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.IconAndText

public abstract class IconAndText extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected double
    Overall ascent of the icon and text with all space and padding included.
    protected double
    Overall descent of the icon and text with all space and padding included.
    protected double
     
    protected double
     
    protected double
     
    protected double
     
    protected org.graphstream.ui.swing.renderer.shape.swing.TextBox
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IconAndText(org.graphstream.ui.swing.renderer.shape.swing.TextBox text, double offx, double offy, double padx, double pady)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
     
    abstract double
     
    abstract String
    getText(Backend backend)
     
    abstract double
     
    abstract void
    render(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, double xLeft, double yBottom)
     
    abstract void
    setIcon(Backend backend, String url)
     
    abstract void
    setText(Backend backend, String text)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • descent

      protected double descent
      Overall descent of the icon and text with all space and padding included.
    • ascent

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

      protected org.graphstream.ui.swing.renderer.shape.swing.TextBox text
    • offx

      protected double offx
    • offy

      protected double offy
    • padx

      protected double padx
    • pady

      protected double pady
  • Constructor Details

    • IconAndText

      public IconAndText(org.graphstream.ui.swing.renderer.shape.swing.TextBox text, double offx, double offy, double padx, double pady)
  • Method Details

    • apply

      public static IconAndText apply(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
    • render

      public abstract void render(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, double xLeft, double yBottom)
    • setIcon

      public abstract void setIcon(Backend backend, String url)
    • setText

      public abstract void setText(Backend backend, String text)
    • getWidth

      public abstract double getWidth()
    • getHeight

      public abstract double getHeight()
    • getText

      public abstract String getText(Backend backend)