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

public class Shadowable extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The shadow paint.
    org.graphstream.ui.geom.Point2
    Offset of the shadow according to the shape center.
    org.graphstream.ui.geom.Point2
    Additional width of a shadow (added to the shape size).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cast(Graphics2D g, Shape shape)
    Render the shadow.
    void
    configureShadowableForGroup(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.
    void
    shadowOffset(double xoff, double yoff)
    Set the shadow offset according to the shape.
    void
    shadowWidth(double width, double height)
    Set the shadow width added to the shape width.

    Methods inherited from class java.lang.Object

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

    • shadowPaint

      public ShapePaint shadowPaint
      The shadow paint.
    • theShadowWidth

      public org.graphstream.ui.geom.Point2 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.
  • Constructor Details

    • Shadowable

      public Shadowable()
  • Method Details

    • shadowWidth

      public void shadowWidth(double width, double height)
      Set 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.
    • configureShadowableForGroup

      public void configureShadowableForGroup(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.