Class TGFillOp

java.lang.Object
  extended by TGFillOp
All Implemented Interfaces:
TGGraphicsOp

public class TGFillOp
extends java.lang.Object
implements TGGraphicsOp

Perform a TurtleGraphics FILL graphics operation.


Constructor Summary
TGFillOp(TGPoint point, java.awt.Color color)
          Instantiation of a flood fill graphics operation.
 
Method Summary
 java.awt.Rectangle doIt(java.awt.image.BufferedImage graphicsImage)
          DoIt - a Flood Fill Operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGFillOp

public TGFillOp(TGPoint point,
                java.awt.Color color)
Instantiation of a flood fill graphics operation.

Parameters:
color - New Color to paint pixels with.
point - Location in TurtleSpace of first pixel, start of flood fill process.
Method Detail

doIt

public java.awt.Rectangle doIt(java.awt.image.BufferedImage graphicsImage)
DoIt - a Flood Fill Operation. Get Color under the fillPoint and fill this point and all its same-colored neighbors, and their neighbors, etc... with this operation's fillColor.

Specified by:
doIt in interface TGGraphicsOp
Parameters:
graphicsImage - the object on which to draw
Returns:
Rectangle bounds of the pixels in the Image that were changed