|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ShadowNodePainter
public class ShadowNodePainter
A decorating Painter that adds a drop shadow decoration to a delegate Painter instance.
| Field Summary | |
|---|---|
static 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. |
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,
Graphics2D graphics)
Used as a callback for the GenericNodeRealizer.paint(Graphics2D) method. |
void |
paintSloppy(NodeRealizer context,
Graphics2D graphics)
Used as a callback for the GenericNodeRealizer.paintSloppy(Graphics2D) method. |
void |
setShadowColor(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 String SHADOW_PAINTING_STYLE_ID
Boolean.FALSE will turn off shadow painting.
YRenderingHints.isShadowPaintingEnabled(java.awt.Graphics2D),
Constant Field Values| Constructor Detail |
|---|
public ShadowNodePainter(GenericNodeRealizer.Painter painterDelegate)
painterDelegate
with a drop shadow effect.
| Method Detail |
|---|
public GenericNodeRealizer.Painter getPainterDelegate()
ShadowNodePainter(y.view.GenericNodeRealizer.Painter)public Color getShadowColor()
public void setShadowColor(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 shadow
public void setShadowDistance(int distanceX,
int distanceY)
distanceX - the horizontal distance of the shadowdistanceY - the vertical distance of the shadow
public void paint(NodeRealizer context,
Graphics2D graphics)
GenericNodeRealizer.PainterGenericNodeRealizer.paint(Graphics2D) method.
paint in interface GenericNodeRealizer.Painter
public void paintSloppy(NodeRealizer context,
Graphics2D graphics)
GenericNodeRealizer.PainterGenericNodeRealizer.paintSloppy(Graphics2D) method.
paintSloppy in interface GenericNodeRealizer.Painter
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||