org.jdrawing.graphics
Class Fill

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsOperation
      extended byorg.jdrawing.graphics.ShapeOperation
          extended byorg.jdrawing.graphics.Fill
All Implemented Interfaces:
DrawingElement

public class Fill
extends ShapeOperation

Graphics element which corresponds to Graphics2D.fill(java.awt.Shape)


Constructor Summary
Fill(java.awt.Shape shape)
          Returns Fill with given shape.
Fill(java.awt.Shape shape, Style style)
          Returns Fill with given shape.
 
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.ShapeOperation
getShape, setShape
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fill

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

Parameters:
shape - shape to be used for this operation

Fill

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

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

paintOperation

public void paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. This implementation invokes graphics.fill ().

Specified by:
paintOperation in class GraphicsOperation
Parameters:
graphics - graphics context to use for painting

getShapeOfOperation

public java.awt.Shape getShapeOfOperation()
Returns shape of the area updated by this operation.

Specified by:
getShapeOfOperation in class GraphicsOperation
Returns:
the shape of updated area