|
||||||||||
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.FillPolygon
Graphics element which corresponds to Graphics.fillPolygon(Polygon)
Constructor Summary | |
FillPolygon(java.awt.Polygon polygon)
Returns DrawPolygon with given polygon. |
|
FillPolygon(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 FillPolygon(java.awt.Polygon polygon)
polygon
- polygon to be used for this operationpublic FillPolygon(java.awt.Polygon polygon, Style style)
polygon
- polygon to be used for this operationMethod Detail |
public void paintOperation(java.awt.Graphics2D graphics)
graphics.fillPolygon ()
.
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 |