public abstract class AbstractPaintedGraphic extends Object implements PaintedGraphic
| Modifier and Type | Field and Description |
|---|---|
Shape |
shape
The shape being painted.
|
Stroke |
stroke
The stroke.
|
Paint |
strokePaint
The stroke paint.
|
| Constructor and Description |
|---|
AbstractPaintedGraphic() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the bounding box of the shape when stroked.
|
abstract float |
getLineWidth()
Get the line width.
|
Stroke |
getStroke()
Get the stroke.
|
static BasicStroke |
getStroke(float floatwidth)
Get a new stroke of the given width and with no dashing.
|
static BasicStroke |
getStroke(int width)
Get a new stroke of the given width and with no dashing.
|
abstract boolean |
hit(Rectangle2D r)
Test if this shape intersects the given rectangle.
|
abstract void |
setLineWidth(float lineWidth)
Set the line width.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitintersectspaintpublic Stroke stroke
public Shape shape
public Paint strokePaint
public abstract float getLineWidth()
getLineWidth in interface PaintedGraphicpublic Rectangle2D getBounds()
getBounds in interface PaintedObjectpublic Stroke getStroke()
getStroke in interface PaintedGraphicpublic static BasicStroke getStroke(int width)
public static BasicStroke getStroke(float floatwidth)
public abstract boolean hit(Rectangle2D r)
hit in interface PaintedGraphicpublic abstract void setLineWidth(float lineWidth)
setLineWidth in interface PaintedGraphicCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.