Class DrawableBasicShapeElement

Direct Known Subclasses:
Oval, Rectangle

public abstract class DrawableBasicShapeElement extends DrawableElement
Base class for default shapes such as rectangle, oval and polygon.
  • Constructor Details

    • DrawableBasicShapeElement

      public DrawableBasicShapeElement(int x, int y, int width, int height)
  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getBorderSize

      public int getBorderSize()
    • getFillColor

      public Color getFillColor()
    • setWidth

      public void setWidth(int width)
    • setHeight

      public void setHeight(int height)
    • setBorderSize

      public void setBorderSize(int borderSize)
    • setFillColor

      public void setFillColor(Color fillColor)
    • getBorderColor

      public Color getBorderColor()
      Identical to getColor() method.
      Returns:
      Color of the border
    • hasBorder

      public boolean hasBorder()
    • hasFill

      public boolean hasFill()
    • setBorder

      public void setBorder(int borderSize, Color borderColor)