|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.AbstractFigureContainer
diva.canvas.FigureDecorator
diva.canvas.toolbox.BasicHighlighter
public class BasicHighlighter
A decorator figure that displays a highlight behind the figure. The highlighter has several options to control the color, transparency, and "halo." Currently, this just displays a rectangle on the figure's bounding box, but this may be changed to take notice of the figure's shape in the future.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class diva.canvas.FigureDecorator |
---|
add, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, remove, replaceChild, setChild, transform |
Methods inherited from class diva.canvas.AbstractFigureContainer |
---|
decorate, pick, pick, translate, undecorate |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, paint, setVisible |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getParent, getTransformContext |
Constructor Detail |
---|
public BasicHighlighter()
public BasicHighlighter(Paint paint, float halo)
public BasicHighlighter(Paint paint, float halo, Composite composite)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |