Package shapes

Class SurfaceShape

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Shape>, Movable
    Direct Known Subclasses:
    Circle, HexagonAdapter, Square

    public abstract class SurfaceShape
    extends Shape
    Abstract class that must implement all shapes with surface.
    See Also:
    Serialized Form
    • Field Detail

      • interiorColor

        private java.awt.Color interiorColor
    • Constructor Detail

      • SurfaceShape

        public SurfaceShape()
    • Method Detail

      • fillUpShape

        public abstract void fillUpShape​(java.awt.Graphics shapeForFillUp)
        Abstract method that must implement all shapes with surface to fill their interior.
        Parameters:
        shapeForFillUp -
      • getInteriorColor

        public java.awt.Color getInteriorColor()
      • setInteriorColor

        public void setInteriorColor​(java.awt.Color interiorColor)