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, repaintadd, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, remove, replaceChild, setChild, transform, translatedecorate, pick, pick, undecoratecontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisVisible, paint, setVisiblegetParent, getTransformContextpublic 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 FiguregetBounds in class BasicHighlighterpublic FigureDecorator newInstance(Figure figure)
newInstance in class BasicHighlighterfigure - The figure, ignored in this method.public void paint(java.awt.Graphics2D g)
paint in interface VisibleComponentpaint in class BasicHighlighterg - The Graphics2D context.public void repaint()
repaint in interface CanvasComponentrepaint in class BasicHighlighter