|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsElement org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.ShapeOperation org.jdrawing.graphics.Draw
Graphics element which corresponds to Graphics2D.draw(java.awt.Shape)
Field Summary |
Fields inherited from class org.jdrawing.graphics.GraphicsElement |
BACKGROUND, COLOR, COMPOSITE, FONT, PAINT, parent, position, STROKE, TRANSFORM |
Constructor Summary | |
Draw(java.awt.Shape shape)
Returns Draw with given shape. |
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 |
paintOperation(java.awt.Graphics2D graphics)
Performs grawing operation. |
Methods inherited from class org.jdrawing.graphics.ShapeOperation |
getShape, setShape |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
paint, update |
Methods inherited from class org.jdrawing.graphics.GraphicsElement |
addStyle, getParent, getStyle, getStyles, getTransform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Draw(java.awt.Shape shape)
shape
- shape to be used for this operationMethod Detail |
public void paintOperation(java.awt.Graphics2D graphics)
graphics.draw ()
.
paintOperation
in class GraphicsOperation
graphics
- graphics context to use for paintingpublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |