|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsddl.hierarchy.Shape
sddl.hierarchy.Line
public class Line
Describes a simple line between two points
| Constructor Summary | |
|---|---|
Line()
Standard SDDL constructor |
|
Line(AbstractPoint point1,
AbstractPoint point2)
Java-only constructor |
|
| Method Summary | |
|---|---|
Line |
copy()
Returns a copy of this Line |
void |
draw(AbstractPoint location,
java.io.PrintWriter out)
Standard SDDL draw function. |
AbstractPoint |
getPoint1()
Gets the first point of the line |
AbstractPoint |
getPoint2()
Gets the second point of the line |
Path |
obtainPath()
Returns a Path to describe this Line |
void |
setPoint1(AbstractPoint point1)
Sets the first point of the line |
void |
setPoint2(AbstractPoint point2)
Sets the second point of the line |
| 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 Line()
public Line(AbstractPoint point1,
AbstractPoint point2)
point1 - first pointpoint2 - second point| Method Detail |
|---|
public Line copy()
copy in class Shape
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 void setPoint1(AbstractPoint point1)
point1 - First point of the linepublic void setPoint2(AbstractPoint point2)
point2 - Second point of the linepublic AbstractPoint getPoint1()
public AbstractPoint getPoint2()
public Path obtainPath()
obtainPath in class Shape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||