Class Shadowable
java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.shapePart.Shadowable
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe shadow paint.org.graphstream.ui.geom.Point2Offset of the shadow according to the shape center.org.graphstream.ui.geom.Point2Additional width of a shadow (added to the shape size). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcast(Graphics2D g, Shape shape) Render the shadow.voidconfigureShadowableForGroup(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.voidshadowOffset(double xoff, double yoff) Set the shadow offset according to the shape.voidshadowWidth(double width, double height) Set the shadow width added to the shape width.
-
Field Details
-
shadowPaint
The shadow paint. -
theShadowWidth
public org.graphstream.ui.geom.Point2 theShadowWidthAdditional width of a shadow (added to the shape size). -
theShadowOff
public org.graphstream.ui.geom.Point2 theShadowOffOffset 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
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.
-