|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.graphics.LineEndpoint
public class LineEndpoint
This class defines a line's endpoint, which can be any of {(x1, y1), (x2, y2)}
Field Summary | |
---|---|
private LineDrawable |
line
A graphical shape representing a a link. |
private boolean |
whichEndPoint
Determines which endpoint of the line we want to access. |
Constructor Summary | |
---|---|
LineEndpoint(LineDrawable line,
boolean whichEndPoint)
Two-argument constructor. |
Method Summary | |
---|---|
LineDrawable |
getLine()
Returns a reference to the line shape. |
boolean |
getWhichEndPoint()
Returns True if we want endpoint 1, False if we want endpoint 2. |
void |
setShape(LineDrawable line)
Sets the line shape. |
void |
setWhichEndPoint(boolean whichEndPoint)
Sets the endpoint desired. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LineDrawable line
private boolean whichEndPoint
Constructor Detail |
---|
public LineEndpoint(LineDrawable line, boolean whichEndPoint)
line
- Sets the graphical line.whichEndPoint
- Determines which endpoint of the is desired.Method Detail |
---|
public LineDrawable getLine()
public void setShape(LineDrawable line)
line
- A new line shape.public boolean getWhichEndPoint()
public void setWhichEndPoint(boolean whichEndPoint)
whichEndPoint
- A new endpoint desired.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |