Class BasicShape

All Implemented Interfaces:
java.lang.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 java.lang.String fill
    • stroke

      protected java.lang.String stroke
  • Constructor Details

  • Method Details

    • setFill

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

      public void setStroke​(java.lang.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.