Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

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.

Version:
$Id: PaintedGraphic.java,v 1.10 2005年10月24日 19:09:04 cxh Exp $
Author:
Nick Zamora

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.
Methods inherited from interface diva.util.java2d.PaintedObject
getBounds, paint

Method Detail

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.


Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /