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 ConnectorSkeletonskelWe will use it often, better store it.StringtextThe string of text of the contents.ShapeDecortheDecorThe text and icon. -
Constructor Summary
Constructors Constructor Description Decorable() -
Method Summary
Modifier and Type Method Description voidconfigureDecorableForElement(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.voidconfigureDecorableForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)Configure all the static parts needed to decor the shape.voiddecorArea(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).voiddecorConnector(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, org.graphstream.ui.graphicGraph.GraphicElement element, Form shape)
-
Field Details
-
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, 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.
-