|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsddl.hierarchy.Shape
sddl.hierarchy.EqTriangle
public class EqTriangle
This class represents an equilateral triangle.
| Constructor Summary | |
|---|---|
EqTriangle()
Standard SDDL constructor for the triangle |
|
EqTriangle(double size)
Java-only constructor |
|
| Method Summary | |
|---|---|
EqTriangle |
copy()
Returns a copy of this EqTriangle |
void |
draw(AbstractPoint location,
java.io.PrintWriter out)
Standard SDDL draw function. |
double |
getSize()
Standard SDDL getter for size property |
Path |
obtainPath()
Returns a Path describing the equilateral triangle |
void |
setSize(double size)
Standard SDDL setter for size property |
| 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 EqTriangle()
public EqTriangle(double size)
size - The size of one side of the triangle| Method Detail |
|---|
public EqTriangle copy()
copy in class Shapepublic void setSize(double size)
size - The size of one side of the trianglepublic double getSize()
public void draw(AbstractPoint location,
java.io.PrintWriter out)
Shape
draw in class Shapelocation - The location of the Shape on the main drawingout - The file to be written topublic Path obtainPath()
obtainPath in class Shape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||