Package diva.util.java2d
Interface PaintedGraphic
-
- All Superinterfaces:
PaintedObject
- All Known Implementing Classes:
AbstractPaintedGraphic
,PaintedPath
,PaintedShape
public interface PaintedGraphic extends PaintedObject
The interface for a set of utility classes that paint shapes or other kinds of graphical objects. The purpose of these classes is to provide a simple interface for basic graphical drawing operations. Generally, they combine a number of different objects from the Java2D API in the most commonly useful way.- Version:
- $Id$
- Author:
- Nick Zamora
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getLineWidth()
Get the line width.java.awt.Stroke
getStroke()
Get the stroke.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
setLineWidth(float lineWidth)
Set the line width.-
Methods inherited from interface diva.util.java2d.PaintedObject
getBounds, paint
-
-
-
-
Method Detail
-
getLineWidth
float getLineWidth()
Get the line width.
-
getStroke
java.awt.Stroke getStroke()
Get the stroke.
-
hit
boolean hit(java.awt.geom.Rectangle2D r)
Test if this shape is hit by the given rectangle. Any transparent parts of the graphic are generally intersected, but not hit.
-
intersects
boolean intersects(java.awt.geom.Rectangle2D r)
Test if this shape intersects the given rectangle.
-
setLineWidth
void setLineWidth(float lineWidth)
Set the line width.
-
-