java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.shapePart.ShadowableLine

public class ShadowableLine extends Object
  • Field Details

    • shadowStroke

      public ShapeStroke shadowStroke
      The shadow paint.
    • theShadowWidth

      public double theShadowWidth
      Additional width of a shadow (added to the shape size).
    • theShadowOff

      public org.graphstream.ui.geom.Point2 theShadowOff
      Offset of the shadow according to the shape center.
    • theShadowColor

      public Color theShadowColor
  • Constructor Details

    • ShadowableLine

      public ShadowableLine()
  • Method Details

    • shadowWidth

      public void shadowWidth(double width)
      Sety the shadow width added to the shape width.
    • shadowOffset

      public void shadowOffset(double xoff, double yoff)
      Set the shadow offset according to the shape.
    • cast

      public void cast(Graphics2D g, Shape shape)
      Render the shadow.
      Parameters:
      g - The Java2D graphics.
    • configureShadowableLineForGroup

      public void configureShadowableLineForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)
      Configure all the static parts needed to cast the shadow of the shape.