public abstract class AbstractPaintedGraphic extends java.lang.Object implements PaintedGraphic
| Modifier and Type | Field and Description |
|---|---|
java.awt.Shape |
shape
The shape being painted.
|
java.awt.Stroke |
stroke
The stroke.
|
java.awt.Paint |
strokePaint
The stroke paint.
|
| Constructor and Description |
|---|
AbstractPaintedGraphic() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box of the shape when stroked.
|
abstract float |
getLineWidth()
Get the line width.
|
java.awt.Stroke |
getStroke()
Get the stroke.
|
static java.awt.BasicStroke |
getStroke(float floatwidth)
Get a new stroke of the given width and with no dashing.
|
static java.awt.BasicStroke |
getStroke(int width)
Get a new stroke of the given width and with no dashing.
|
abstract boolean |
hit(java.awt.geom.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 java.awt.Stroke stroke
public java.awt.Shape shape
public java.awt.Paint strokePaint
public abstract float getLineWidth()
getLineWidth in interface PaintedGraphicpublic java.awt.geom.Rectangle2D getBounds()
getBounds in interface PaintedObjectpublic java.awt.Stroke getStroke()
getStroke in interface PaintedGraphicpublic static java.awt.BasicStroke getStroke(int width)
public static java.awt.BasicStroke getStroke(float floatwidth)
public abstract boolean hit(java.awt.geom.Rectangle2D r)
hit in interface PaintedGraphicpublic abstract void setLineWidth(float lineWidth)
setLineWidth in interface PaintedGraphic