|
||||||||||
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
Base class for operations, which get Polygon as argument.
Constructor Summary | |
PolygonOperation(java.awt.Polygon polygon)
Returns ShapeOperation with given polygon. |
|
PolygonOperation(java.awt.Polygon polygon,
Style style)
Returns ShapeOperation with given polygon. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Checks whether two polygon operations are equal. |
java.awt.Polygon |
getPolygon()
Returns polygon currently used by this operation. |
int |
hashCode()
Returns the hashcode for this polygon operation. |
void |
setPolygon(java.awt.Polygon polygon)
Sets polygon for this operation. |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
contains, getBounds, getBounds2D, getPosition, getShapeOfOperation, getStyle, intersects, paint, paintOperation, setPosition, setStyle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolygonOperation(java.awt.Polygon polygon)
polygon
- polygon to be used for this operationpublic PolygonOperation(java.awt.Polygon polygon, Style style)
polygon
- polygon to be used for this operationMethod Detail |
public void setPolygon(java.awt.Polygon polygon)
polygon
- polygon to be used for this operationpublic java.awt.Polygon getPolygon()
public boolean equals(java.lang.Object object)
true
if and only if the
argument is not null
and is a
PolygonOperation
object that has the
same attributes as this PolygonOperation
.
equals
in class GraphicsOperation
object
- the Object
to compare with
this PolygonOperation
true
if the objects are equal;
false
otherwise.public int hashCode()
hashCode
in class GraphicsOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |