Interface TGGraphicsOp

All Known Implementing Classes:
TGArcOp, TGFillOp, TGLabelOp, TGLineOp, TGSetPixelsOp

public interface TGGraphicsOp

TGGraphicsOp is an interface that a class implements when it provides TGCanvas with support for a graphics operation.

TGGraphicsOp objects are queued to be performed by TGCanvas. Think of them as messages/requests sent from the Logo interpreter to TGCanvas.

As examples, queueing a TGLineOp is a request to draw a line on a provided Image, queueing a TGLabelOp is a request to draw a String on a provided Image.


Method Summary
 java.awt.Rectangle doIt(java.awt.image.BufferedImage image)
          Perform an operation on (do something) with the provided Image and return a Rectangle which is a cliprect for the area of the Image that was changed.
 

Method Detail

doIt

java.awt.Rectangle doIt(java.awt.image.BufferedImage image)
Perform an operation on (do something) with the provided Image and return a Rectangle which is a cliprect for the area of the Image that was changed.

Parameters:
image - the object on which to draw
Returns:
Rectangle bounds of the pixels in the Image that were changed