diva.util.java2d
Interface PaintedGraphic
- All Superinterfaces:
- PaintedObject
- All Known Implementing Classes:
- AbstractPaintedGraphic
- 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.
|
Method Summary |
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. |
getLineWidth
public float getLineWidth()
- Get the line width.
getStroke
public java.awt.Stroke getStroke()
- Get the stroke.
hit
public 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
public boolean intersects(java.awt.geom.Rectangle2D r)
- Test if this shape intersects the given rectangle.
setLineWidth
public void setLineWidth(float lineWidth)
- Set the line width.
|