Class Decorable

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

public class Decorable
extends java.lang.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.
    java.lang.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, java.awt.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, java.awt.Shape 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, java.awt.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, java.awt.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.