public abstract class ShapeDecor
extends java.lang.Object
| Constructor and Description |
|---|
ShapeDecor() |
| Modifier and Type | Method and Description |
|---|---|
static ShapeDecor |
apply(org.graphstream.ui.graphicGraph.stylesheet.Style style) |
IconAndText |
iconAndText(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
org.graphstream.ui.graphicGraph.GraphicElement element)
Generate a new icon and text specific to the given `element`, according to the given
`style` and `camera`.
|
abstract void |
renderAlong(Backend backend,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
IconAndText iconAndText,
ConnectorSkeleton skel) |
abstract void |
renderAlong(Backend backend,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
IconAndText iconAndText,
double x0,
double y0,
double x1,
double y1)
Render along the given line coordinates.
|
abstract void |
renderInside(Backend backend,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
IconAndText iconAndText,
double x0,
double y0,
double x1,
double y1)
Render the decoration inside the given box coordinates.
|
abstract org.graphstream.ui.swing.renderer.shape.swing.Tuple<java.lang.Double,java.lang.Double> |
size(Backend backend,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
IconAndText iconAndText)
Overall size (getWidth() and getHeight()) of the decoration, taking into account the `iconAndText` as
well as the various metrics specified by the style.
|
public IconAndText iconAndText(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
public static ShapeDecor apply(org.graphstream.ui.graphicGraph.stylesheet.Style style)
public abstract void renderInside(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, double x0, double y0, double x1, double y1)
public abstract void renderAlong(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, double x0, double y0, double x1, double y1)
public abstract void renderAlong(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, ConnectorSkeleton skel)
public abstract org.graphstream.ui.swing.renderer.shape.swing.Tuple<java.lang.Double,java.lang.Double> size(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText)