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, transform
decorate, pick, pick, translate, 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 BasicHighlighter()
public BasicHighlighter(Paint paint, float halo)
public Composite getComposite()
public Rectangle2D getBounds()
getBounds
in interface Figure
getBounds
in class FigureDecorator
public float getHalo()
public Paint getPaint()
public boolean hit(Rectangle2D region)
hit
in interface Figure
hit
in class FigureDecorator
public FigureDecorator newInstance(Figure f)
newInstance
in class FigureDecorator
public void paint(Graphics2D g)
paint
in interface VisibleComponent
paint
in class FigureDecorator
public void repaint(DamageRegion d)
repaint
in interface CanvasComponent
repaint
in class AbstractFigureContainer
public void repaint()
repaint
in interface CanvasComponent
repaint
in class AbstractFigure
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.