|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.ShadowNodePainter
public class ShadowNodePainter
A decorating Painter that adds a drop shadow decoration to a delegate Painter instance.
Field Summary | |
---|---|
static java.lang.String |
SHADOW_PAINTING_STYLE_ID
Style property key to selectively turn off shadow painting. |
Constructor Summary | |
---|---|
ShadowNodePainter(GenericNodeRealizer.Painter painterDelegate)
Create a shadow painter that decorates the painterDelegate
with a drop shadow effect. |
Method Summary | |
---|---|
GenericNodeRealizer.Painter |
getPainterDelegate()
Returns the delegate painter that paints the node itself. |
java.awt.Color |
getShadowColor()
Returns the color that is used for drawing the drop shadow. |
int |
getShadowDistanceX()
Returns the horizontal distance of the drop shadow. |
int |
getShadowDistanceY()
Returns the vertical distance of the drop shadow The default vertical offset is 2 pixels. |
void |
paint(NodeRealizer context,
java.awt.Graphics2D graphics)
Paints a drop shadow effect below the visual representation created by the delegate painter. |
void |
paintSloppy(NodeRealizer context,
java.awt.Graphics2D graphics)
Invokes the delegate painter's paintSloppy
method. |
void |
setShadowColor(java.awt.Color shadowColor)
Sets the color that is used for drawing the drop shadow. |
void |
setShadowDistance(int distanceX,
int distanceY)
Sets the horizontal and vertical distance of the drop shadow effect |
void |
setShadowDistanceX(int shadowDistanceX)
Sets the horizontal distance of the drop shadow The default horizontal offset is 2 pixels. |
void |
setShadowDistanceY(int shadowDistanceY)
Sets the vertical distance of the drop shadow The default vertical offset is 2 pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SHADOW_PAINTING_STYLE_ID
Boolean.FALSE
will turn off shadow painting.
YRenderingHints.isShadowPaintingEnabled(java.awt.Graphics2D)
,
Constant Field ValuesConstructor Detail |
---|
public ShadowNodePainter(GenericNodeRealizer.Painter painterDelegate)
painterDelegate
with a drop shadow effect.
Method Detail |
---|
public GenericNodeRealizer.Painter getPainterDelegate()
ShadowNodePainter(y.view.GenericNodeRealizer.Painter)
public java.awt.Color getShadowColor()
public void setShadowColor(java.awt.Color shadowColor)
shadowColor
- the Color to use for the drop shadowpublic int getShadowDistanceX()
public void setShadowDistanceX(int shadowDistanceX)
shadowDistanceX
- the horizontal distance of the shadowpublic int getShadowDistanceY()
public void setShadowDistanceY(int shadowDistanceY)
shadowDistanceY
- the vertical distance of the shadowpublic void setShadowDistance(int distanceX, int distanceY)
distanceX
- the horizontal distance of the shadowdistanceY
- the vertical distance of the shadowpublic void paint(NodeRealizer context, java.awt.Graphics2D graphics)
Invokes the delegate painter's
paint
method.
paint
in interface GenericNodeRealizer.Painter
public void paintSloppy(NodeRealizer context, java.awt.Graphics2D graphics)
paintSloppy
method.
paintSloppy
in interface GenericNodeRealizer.Painter
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |