public class ShadowHighlighter extends diva.canvas.toolbox.BasicHighlighter
| Constructor and Description |
|---|
ShadowHighlighter()
Create a new shadow with a default paint and size.
|
ShadowHighlighter(java.awt.Paint paint,
float halo)
Create a new shadow with the given paint and halo.
|
ShadowHighlighter(java.awt.Paint paint,
float halo,
java.awt.Composite composite)
Create a new shadow with the given paint, size.
|
ShadowHighlighter(java.awt.Paint paint,
float halo,
java.awt.Composite composite,
java.awt.Stroke stroke)
Create a new shadow with the given paint, size,
compositing operation, and stroke.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounds.
|
diva.canvas.FigureDecorator |
newInstance(diva.canvas.Figure figure)
Create a new instance of this shadower.
|
void |
paint(java.awt.Graphics2D g)
Paint the figure.
|
void |
repaint()
Request a repaint of the figure and shadow.
|
getComposite, getHalo, getPaint, getStroke, hit, repaintadd, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, remove, replaceChild, setChild, transform, translatecontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisiblepublic ShadowHighlighter()
public ShadowHighlighter(java.awt.Paint paint, float halo)
paint - The paint.halo - The halo, which is the size of the shadow.public ShadowHighlighter(java.awt.Paint paint, float halo, java.awt.Composite composite)
paint - The paint.halo - The halo, which is the size of the shadow.composite - The compositing operation.public ShadowHighlighter(java.awt.Paint paint, float halo, java.awt.Composite composite, java.awt.Stroke stroke)
paint - The paint.halo - The halo, which is the size of the shadow.composite - The compositing operation.stroke - The strokepublic java.awt.geom.Rectangle2D getBounds()
getBounds in interface diva.canvas.FiguregetBounds in class diva.canvas.toolbox.BasicHighlighterpublic diva.canvas.FigureDecorator newInstance(diva.canvas.Figure figure)
newInstance in class diva.canvas.toolbox.BasicHighlighterfigure - The figure, ignored in this method.public void paint(java.awt.Graphics2D g)
paint in interface diva.canvas.VisibleComponentpaint in class diva.canvas.toolbox.BasicHighlighterg - The Graphics2D context.public void repaint()
repaint in interface diva.canvas.CanvasComponentrepaint in class diva.canvas.toolbox.BasicHighlighter