Class BasicShape

All Implemented Interfaces:
Cloneable, DrawOperation
Direct Known Subclasses:
Arc, Ellipse, Rectangle

public abstract class BasicShape extends ImageOperation implements DrawOperation
Draw a basic shape
  • Field Details

    • stroke_width

      protected int stroke_width
    • fill

      protected String fill
    • stroke

      protected String stroke
  • Constructor Details

    • BasicShape

      public BasicShape()
  • Method Details

    • setFill

      public void setFill(String col)
      Set the fill attribute.
      Parameters:
      col - the color value to use.
    • setStroke

      public void setStroke(String col)
      Set the stroke attribute.
      Parameters:
      col - the color value to use.
    • setStrokewidth

      public void setStrokewidth(int width)
      Set the stroke width attribute.
      Parameters:
      width - the value to use.