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, repaint
add, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, remove, replaceChild, setChild, transform, translate
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
public 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.Figure
getBounds
in class diva.canvas.toolbox.BasicHighlighter
public diva.canvas.FigureDecorator newInstance(diva.canvas.Figure figure)
newInstance
in class diva.canvas.toolbox.BasicHighlighter
figure
- The figure, ignored in this method.public void paint(java.awt.Graphics2D g)
paint
in interface diva.canvas.VisibleComponent
paint
in class diva.canvas.toolbox.BasicHighlighter
g
- The Graphics2D context.public void repaint()
repaint
in interface diva.canvas.CanvasComponent
repaint
in class diva.canvas.toolbox.BasicHighlighter