public class BasicHighlighter extends FigureDecorator
| Constructor and Description |
|---|
BasicHighlighter()
Create a new highlighter with a default paint and "halo"
|
BasicHighlighter(Paint paint,
float halo)
Create a new highlighter with the given paint and "halo"
|
BasicHighlighter(Paint paint,
float halo,
Composite composite)
Create a new highlighter with the given paint, "halo,"
and compositing operation.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the bounds.
|
Composite |
getComposite()
Get the composite.
|
float |
getHalo()
Get the halo.
|
Paint |
getPaint()
Get the paint.
|
boolean |
hit(Rectangle2D region)
Return false.
|
FigureDecorator |
newInstance(Figure f)
Create a new instance of this highlighter.
|
void |
paint(Graphics2D g)
Paint the figure.
|
void |
repaint()
Request a repaint of the figure and highlight.
|
void |
repaint(DamageRegion d)
Receive repaint notification.
|
add, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, remove, replaceChild, setChild, transformdecorate, pick, pick, translate, 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 BasicHighlighter()
public BasicHighlighter(Paint paint, float halo)
public Composite getComposite()
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class FigureDecoratorpublic float getHalo()
public Paint getPaint()
public boolean hit(Rectangle2D region)
hit in interface Figurehit in class FigureDecoratorpublic FigureDecorator newInstance(Figure f)
newInstance in class FigureDecoratorpublic void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class FigureDecoratorpublic void repaint(DamageRegion d)
repaint in interface CanvasComponentrepaint in class AbstractFigureContainerpublic void repaint()
repaint in interface CanvasComponentrepaint in class AbstractFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.