|
||||||||||
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.ShapeOperation
Base class for operations, which get Shape as argument.
Constructor Summary | |
ShapeOperation(java.awt.Shape shape)
Returns ShapeOperation with given shape. |
|
ShapeOperation(java.awt.Shape shape,
Style style)
Returns ShapeOperation with given shape. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Checks whether two shape operations are equal. |
java.awt.Shape |
getShape()
Returns shape currently used by this operation. |
int |
hashCode()
Returns the hashcode for this shape operation. |
void |
setShape(java.awt.Shape shape)
Sets shape 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 ShapeOperation(java.awt.Shape shape)
shape
- shape to be used for this operationpublic ShapeOperation(java.awt.Shape shape, Style style)
shape
- shape to be used for this operationMethod Detail |
public void setShape(java.awt.Shape shape)
shape
- shape to be used for this operationpublic java.awt.Shape getShape()
public boolean equals(java.lang.Object object)
true
if and only if the
argument is not null
and is a
ShapeOperation
object that has the
same attributes as this ShapeOperation
.
equals
in class GraphicsOperation
object
- the Object
to compare with
this ShapeOperation
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 |