Package shapes
Class SurfaceShape
- java.lang.Object
-
- shapes.Shape
-
- shapes.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 Summary
Fields Modifier and Type Field Description private java.awt.ColorinteriorColorprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SurfaceShape()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidfillUpShape(java.awt.Graphics shapeForFillUp)Abstract method that must implement all shapes with surface to fill their interior.java.awt.ColorgetInteriorColor()voidsetInteriorColor(java.awt.Color interiorColor)-
Methods inherited from class shapes.Shape
containsClick, draw, getColor, isSelected, selected, setColor, setSelected
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
interiorColor
private java.awt.Color interiorColor
-
-
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)
-
-