Class Decorable

java.lang.Object
org.graphstream.ui.javafx.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
    ConnectorSkeleton skel
    We will use it often, better store it.
    String text
    The string of text of the contents.
    ShapeDecor theDecor
    The text and icon.
  • Constructor Summary

    Constructors 
    Constructor Description
    Decorable()  
  • 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, Form 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, Form shape)  

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • decorArea

      public void decorArea​(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, org.graphstream.ui.graphicGraph.GraphicElement element, Form 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, Form 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.