public class BasicEdgeHighlighter extends FigureDecorator
| Red (rowland) |
| Red (rowland) |
| Constructor and Description |
|---|
BasicEdgeHighlighter()
Create a new highlighter with a default paint, "halo", and stroke.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hit(java.awt.geom.Rectangle2D region)
Return false.
|
FigureDecorator |
newInstance(Figure f)
Create a new instance of this highlighter.
|
void |
paint(java.awt.Graphics2D g)
Paint the edge.
|
void |
repaint()
Request a repaint of the figure and highlight.
|
void |
repaint(DamageRegion d)
Receive repaint notification.
|
add, contains, figures, figuresFromBack, figuresFromFront, getBounds, 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 BasicEdgeHighlighter()
public boolean hit(java.awt.geom.Rectangle2D region)
hit in interface Figurehit in class FigureDecoratorregion - The rectangle to be checked.public FigureDecorator newInstance(Figure f)
newInstance in class FigureDecoratorpublic void paint(java.awt.Graphics2D g)
paint in interface VisibleComponentpaint in class FigureDecoratorg - The 2D graphics object that this object
it to be painted upon.public void repaint(DamageRegion d)
repaint in interface CanvasComponentrepaint in class AbstractFigureContainerd - The region where a repaint has occurred.public void repaint()
repaint in interface CanvasComponentrepaint in class AbstractFigure