public class ShadowableLine
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ShapeStroke |
shadowStroke
The shadow paint.
|
java.awt.Color |
theShadowColor |
org.graphstream.ui.geom.Point2 |
theShadowOff
Offset of the shadow according to the shape center.
|
double |
theShadowWidth
Additional width of a shadow (added to the shape size).
|
| Constructor and Description |
|---|
ShadowableLine() |
| Modifier and Type | Method and Description |
|---|---|
void |
cast(java.awt.Graphics2D g,
java.awt.Shape shape)
Render the shadow.
|
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.
|
void |
shadowOffset(double xoff,
double yoff)
Set the shadow offset according to the shape.
|
void |
shadowWidth(double width)
Sety the shadow width added to the shape width.
|
public ShapeStroke shadowStroke
public double theShadowWidth
public org.graphstream.ui.geom.Point2 theShadowOff
public java.awt.Color theShadowColor
public void shadowWidth(double width)
public void shadowOffset(double xoff,
double yoff)
public void cast(java.awt.Graphics2D g,
java.awt.Shape shape)
g - The Java2D graphics.public void configureShadowableLineForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.camera.DefaultCamera2D camera)