Class Decorable
java.lang.Object
org.graphstream.ui.swing.renderer.shape.Decorable
- Direct Known Subclasses:
AreaShape
Trait for shapes that can be decorated by an icon and/or a text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWe will use it often, better store it.The string of text of the contents.The text and icon. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureDecorableForElement(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, Shape 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, Shape shape)
-
Field Details
-
text
The string of text of the contents. -
theDecor
The text and icon. -
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.
-