public class PaintInstructions extends Object
Constructor and Description |
---|
PaintInstructions(Area area)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
PaintInstructions |
area(Area newArea)
Sets the area to draw on.
|
PaintInstructions |
copy()
Creates a copy of this class.
|
boolean |
equals(Object obj) |
Area |
getArea()
Returns the area to draw on.
|
int |
hashCode() |
void |
setArea(Area area)
Sets the area to draw on.
|
String |
toString() |
public PaintInstructions(Area area)
area
- the area to draw on; cannot be nullpublic Area getArea()
public PaintInstructions area(Area newArea)
newArea
- the area to draw on; cannot be nullpublic void setArea(Area area)
area
- the area to draw on; cannot be nullpublic PaintInstructions copy()
Copyright © 2020. All rights reserved.