org.jdrawing.graphics
Class ShapeOperation

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsOperation
      extended byorg.jdrawing.graphics.ShapeOperation
All Implemented Interfaces:
DrawingElement
Direct Known Subclasses:
Draw, Fill

public abstract class ShapeOperation
extends GraphicsOperation

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
 java.awt.Shape getShape()
          Returns shape currently used by this 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeOperation

public ShapeOperation(java.awt.Shape shape)
Returns ShapeOperation with given shape.

Parameters:
shape - shape to be used for this operation

ShapeOperation

public ShapeOperation(java.awt.Shape shape,
                      Style style)
Returns ShapeOperation with given shape.

Parameters:
shape - shape to be used for this operation
Method Detail

setShape

public void setShape(java.awt.Shape shape)
Sets shape for this operation.

Parameters:
shape - shape to be used for this operation

getShape

public java.awt.Shape getShape()
Returns shape currently used by this operation.

Returns:
shape currently used by this operation