|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.java2d.AbstractPaintedGraphic
public abstract class AbstractPaintedGraphic
An abstract implementation of the PaintedGraphic interface. This class implements the common elements of the PaintedGraphic abstraction.
Field Summary | |
---|---|
Shape |
shape
Deprecated. The shape being painted. |
Stroke |
stroke
Deprecated. The stroke. |
Paint |
strokePaint
Deprecated. The stroke paint. |
Constructor Summary | |
---|---|
AbstractPaintedGraphic()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface diva.util.java2d.PaintedGraphic |
---|
intersects |
Methods inherited from interface diva.util.java2d.PaintedObject |
---|
paint |
Field Detail |
---|
public Stroke stroke
public Shape shape
public Paint strokePaint
Constructor Detail |
---|
public AbstractPaintedGraphic()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |