public class Highlight extends Object
Modifier and Type | Field and Description |
---|---|
protected Stroke |
stroke |
protected Paint |
strokePaint |
protected float |
strokeThickness |
Constructor and Description |
---|
Highlight() |
Modifier and Type | Method and Description |
---|---|
void |
paintAround(Rectangle bounds,
Graphics2D g)
Paint the highlight around the given rectangle.
|
void |
setStroke(Paint paint,
float thickness)
Set the stroke for border drawing.
|
protected Paint strokePaint
protected Stroke stroke
protected float strokeThickness
public void setStroke(Paint paint, float thickness)
paint
- colour, texture, etc.thickness
- floating-point number in pixels, e.g. 2.0fpublic void paintAround(Rectangle bounds, Graphics2D g)
bounds
- position and size for the region to be highlightedg
- graphics context