public class PaintedPath extends AbstractPaintedGraphic
shape, stroke, strokePaint
Constructor and Description |
---|
PaintedPath(java.awt.Shape s)
Create a painted path on the given Shape.
|
PaintedPath(java.awt.Shape s,
float lineWidth)
Create a painted path on the given Shape with a given
line width.
|
PaintedPath(java.awt.Shape s,
float lineWidth,
java.awt.Paint paint)
Create a painted path on the given Shape with a given
line width and stroke color.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getDashArray()
Get the dash array.
|
float |
getLineWidth()
Get the line width.
|
boolean |
hit(java.awt.geom.Rectangle2D r)
Test if this shape is hit by the given rectangle.
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
Test if this shape intersects the given rectangle.
|
void |
paint(java.awt.Graphics2D g)
Paint the shape.
|
void |
setDashArray(float[] dashArray)
Set the dash array of the stroke.
|
void |
setLineWidth(float lineWidth)
Set the line width.
|
void |
setStroke(java.awt.Stroke s)
Set the stroke
|
getBounds, getStroke, getStroke, getStroke
public PaintedPath(java.awt.Shape s)
public PaintedPath(java.awt.Shape s, float lineWidth)
public PaintedPath(java.awt.Shape s, float lineWidth, java.awt.Paint paint)
public float[] getDashArray()
public float getLineWidth()
getLineWidth
in interface PaintedGraphic
getLineWidth
in class AbstractPaintedGraphic
public boolean hit(java.awt.geom.Rectangle2D r)
hit
in interface PaintedGraphic
hit
in class AbstractPaintedGraphic
public boolean intersects(java.awt.geom.Rectangle2D r)
public void paint(java.awt.Graphics2D g)
public void setDashArray(float[] dashArray)
public void setLineWidth(float lineWidth)
setLineWidth
in interface PaintedGraphic
setLineWidth
in class AbstractPaintedGraphic
public void setStroke(java.awt.Stroke s)