Package ch.epfl.cs107.play.window.swing
Class ShapeItem
java.lang.Object
ch.epfl.cs107.play.window.swing.ShapeItem
- All Implemented Interfaces:
Item,Comparable<Item>
Draw a single shape.
-
Constructor Details
-
ShapeItem
public ShapeItem(Shape shape, Color fillColor, Color outlineColor, float thickness, float alpha, float depth) Creates a new shape item.- Parameters:
shape- (Shape): Swing shape, not nullfillColor- (Color): fill color, may be nulloutlineColor- (Color): outline color, may be nullthickness- (float): outline thicknessalpha- (float): transparency, between 0 (invisible) and 1 (opaque)depth- (float): associated depth
-
-
Method Details