|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.PolygonOperation org.jdrawing.graphics.DrawPolygon
Graphics element which corresponds to Graphics.drawPolygon(Polygon)
Constructor Summary | |
DrawPolygon(java.awt.Polygon polygon)
Returns DrawPolygon with given polygon. |
|
DrawPolygon(java.awt.Polygon polygon,
Style style)
Returns DrawPolygon with given polygon. |
Method Summary | |
java.awt.Shape |
getShapeOfOperation()
Returns shape of the area updated by this operation. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
Methods inherited from class org.jdrawing.graphics.PolygonOperation |
equals, getPolygon, hashCode, setPolygon |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
contains, getBounds, getBounds2D, getPosition, getStyle, intersects, paint, setPosition, setStyle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrawPolygon(java.awt.Polygon polygon)
polygon
- polygon to be used for this operationpublic DrawPolygon(java.awt.Polygon polygon, Style style)
polygon
- polygon to be used for this operationMethod Detail |
public void paintOperation(java.awt.Graphics2D graphics)
graphics.drawPolygon ()
.
paintOperation
in class GraphicsOperation
graphics
- graphics context to use for paintingpublic java.awt.Shape getShapeOfOperation()
getShapeOfOperation
in class GraphicsOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |