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