|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsddl.hierarchy.Shape
sddl.hierarchy.Square
public class Square
This Shape represents a standard square
Constructor Summary | |
---|---|
Square()
Default SDDL constructor |
|
Square(double length)
Java-only default constructor |
Method Summary | |
---|---|
Square |
copy()
Returns a copy of this Square |
void |
draw(AbstractPoint location,
java.io.PrintWriter out)
Standard SDDL draw function |
double |
getLength()
Standard SDDL getter for parameter length |
Path |
obtainPath()
Gives a Path describing the square |
void |
setLength(double length)
Standard SDDL setter for parameter length |
Methods inherited from class sddl.hierarchy.Shape |
---|
isVisible, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Square()
public Square(double length)
length
- The length of each side of the squareMethod Detail |
---|
public void setLength(double length)
length
- The length of each side of the squarepublic double getLength()
public void draw(AbstractPoint location, java.io.PrintWriter out)
draw
in class Shape
location
- The location of the current object on the main drawingout
- The writer used to write the filepublic Path obtainPath()
obtainPath
in class Shape
public Square copy()
copy
in class Shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |