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, wait
intersects
paint
public java.awt.Stroke stroke
public java.awt.Shape shape
public java.awt.Paint strokePaint
public abstract float getLineWidth()
getLineWidth
in interface PaintedGraphic
public java.awt.geom.Rectangle2D getBounds()
getBounds
in interface PaintedObject
public java.awt.Stroke getStroke()
getStroke
in interface PaintedGraphic
public 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 PaintedGraphic
public abstract void setLineWidth(float lineWidth)
setLineWidth
in interface PaintedGraphic