All Implemented Interfaces:
Cloneable, DrawOperation

public class Rectangle extends BasicShape implements DrawOperation
See Also:
  • Field Details

    • width

      protected int width
    • height

      protected int height
    • arcwidth

      protected int arcwidth
    • archeight

      protected int archeight
  • Constructor Details

    • Rectangle

      public Rectangle()
  • Method Details

    • setWidth

      public void setWidth(int w)
      Set the width.
      Parameters:
      w - the value to use.
    • setHeight

      public void setHeight(int h)
      Set the height.
      Parameters:
      h - the value to use.
    • setArcwidth

      public void setArcwidth(int w)
      Set the arc width.
      Parameters:
      w - the value to use.
    • setArcheight

      public void setArcheight(int h)
      Set the arc height.
      Parameters:
      h - the value to use.
    • executeDrawOperation

      public javax.media.jai.PlanarImage executeDrawOperation()
      Abstract method which is intended to create an image buffer and return it so it can be drawn into another object. Use an Alpha channel for a "transparent" background..
      Specified by:
      executeDrawOperation in interface DrawOperation
      Returns:
      a planar image