java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.ShapeDecor

public abstract class ShapeDecor extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ShapeDecor
    apply(org.graphstream.ui.graphicGraph.stylesheet.Style style)
     
    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, double x0, double y0, double x1, double y1)
    Render along the given line coordinates.
    abstract void
    renderAlong(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, ConnectorSkeleton skel)
     
    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<Double,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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShapeDecor

      public ShapeDecor()
  • Method Details

    • iconAndText

      public 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`.
    • apply

      public static ShapeDecor apply(org.graphstream.ui.graphicGraph.stylesheet.Style style)
    • renderInside

      public 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. The shape decoration contains all the metrics to render the `iconAndText` icon and text. The coordinates (`x0`, `y0`) and (`x1`, `y1`) indicates the lower-left and upper-right coordinates of the area where the decoration should be drawn.
    • renderAlong

      public 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. The shape decoration contains all the metrics to render the `iconAndText` icon and text. The coordinates (`x0`, `y0`) and (`x1`, `y1`) indicates the start and end points of the line to draw the text on.
    • renderAlong

      public abstract void renderAlong(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, IconAndText iconAndText, ConnectorSkeleton skel)
    • size

      public abstract org.graphstream.ui.swing.renderer.shape.swing.Tuple<Double,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.