public class ShadowHighlighter extends 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.
|
FigureDecorator |
newInstance(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
decorate, pick, pick, undecorate
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isVisible, paint, setVisible
getParent, getTransformContext
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 Figure
getBounds
in class BasicHighlighter
public FigureDecorator newInstance(Figure figure)
newInstance
in class BasicHighlighter
figure
- The figure, ignored in this method.public void paint(java.awt.Graphics2D g)
paint
in interface VisibleComponent
paint
in class BasicHighlighter
g
- The Graphics2D context.public void repaint()
repaint
in interface CanvasComponent
repaint
in class BasicHighlighter