|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for self-renderable drawing elements. Implementors of this interface can be rendered by default element renderer of JDrawing.
Method Summary | |
boolean |
contains(java.awt.geom.Point2D point)
Tests if the element containes given point. |
java.awt.Rectangle |
getBounds()
Returns bounding box of the element. |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns high precision bounding box of the element. |
boolean |
intersects(java.awt.geom.Rectangle2D rectangle)
Tests if the element intersects with the given rectangle. |
void |
paint(java.awt.Graphics graphics)
Paint the element. |
Method Detail |
public java.awt.Rectangle getBounds()
public java.awt.geom.Rectangle2D getBounds2D()
public boolean intersects(java.awt.geom.Rectangle2D rectangle)
rectangle
- rectangle to be cheched for intersection
public boolean contains(java.awt.geom.Point2D point)
point
- to be checked
public void paint(java.awt.Graphics graphics)
graphics
- graphics context to use for painting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |