Class Decorable

java.lang.Object
org.graphstream.ui.swing.renderer.shape.Decorable
Direct Known Subclasses:
AreaShape

public class Decorable extends Object
Trait for shapes that can be decorated by an icon and/or a text.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    We will use it often, better store it.
    The string of text of the contents.
    The text and icon.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureDecorableForElement(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
    Setup the parts of the decor specific to each element.
    void
    configureDecorableForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)
    Configure all the static parts needed to decor the shape.
    void
    decorArea(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, org.graphstream.ui.graphicGraph.GraphicElement element, Shape shape)
    Paint the decorations (text and icon).
    void
    decorConnector(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, org.graphstream.ui.graphicGraph.GraphicElement element, Shape shape)
     

    Methods inherited from class java.lang.Object

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

    • text

      public String text
      The string of text of the contents.
    • theDecor

      public ShapeDecor theDecor
      The text and icon.
    • skel

      public ConnectorSkeleton skel
      We will use it often, better store it.
  • Constructor Details

    • Decorable

      public Decorable()
  • Method Details

    • decorArea

      public void decorArea(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, org.graphstream.ui.graphicGraph.GraphicElement element, Shape shape)
      Paint the decorations (text and icon).
    • decorConnector

      public void decorConnector(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, org.graphstream.ui.graphicGraph.GraphicElement element, Shape shape)
    • configureDecorableForGroup

      public void configureDecorableForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)
      Configure all the static parts needed to decor the shape.
    • configureDecorableForElement

      public void configureDecorableForElement(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
      Setup the parts of the decor specific to each element.