All Implemented Interfaces:
Cloneable

public class Draw extends TransformOperation
See Also:
  • Field Details

    • xloc

      protected int xloc
    • yloc

      protected int yloc
  • Constructor Details

    • Draw

      public Draw()
  • Method Details

    • setXloc

      public void setXloc(int x)
      Set the X location.
      Parameters:
      x - the value to use.
    • setYloc

      public void setYloc(int y)
      Set the Y location.
      Parameters:
      y - the value to use.
    • addRectangle

      public void addRectangle(Rectangle rect)
      Add a rectangle to the operation...
      Overrides:
      addRectangle in class TransformOperation
      Parameters:
      rect - the rectangle to add.
    • addText

      public void addText(Text text)
      Add text to the operation..
      Overrides:
      addText in class ImageOperation
      Parameters:
      text - the text to add.
    • addEllipse

      public void addEllipse(Ellipse elip)
      Add an ellipse.
      Parameters:
      elip - the ellipse to add.
    • addArc

      public void addArc(Arc arc)
      Add an arc.
      Parameters:
      arc - the arc to add.
    • executeTransformOperation

      public javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image)
      Performs the transformations..
      Specified by:
      executeTransformOperation in class TransformOperation
      Parameters:
      image - The image to perform the transformation on.
      Returns:
      the transformed image.