|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.uml.line.Vertex
public class Vertex
Vertex
Constructor Summary | |
---|---|
Vertex(java.awt.Point init)
Constructor for the Vertex object |
Method Summary | |
---|---|
protected void |
active(boolean way)
Sets whether this is the active vertex |
protected java.awt.Point |
getPoint()
Gets the scaled point |
protected int |
getX()
Gets the X attribute of the Vertex object |
protected int |
getY()
Gets the Y attribute of the Vertex object |
boolean |
hit(java.awt.Point p)
Determines if it is hit by a point |
boolean |
isActive()
Checks if this vertex is the active vertex |
boolean |
isSelected()
Checks if the point is selected |
void |
move(java.awt.Point p)
Moves the vertex to p |
void |
paint(java.awt.Graphics g)
Paints the object |
void |
save(java.io.PrintWriter output)
Save the vertex |
void |
scale(double value)
Scales the vertex |
protected void |
select(boolean way)
Selects the point |
static void |
setNear(double value)
Sets the Near attribute of the Vertex class |
static void |
setVertexSize(int value)
Sets the VertexSize attribute of the Vertex class |
void |
shift(int x,
int y)
Shifts the point by a certain amount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Vertex(java.awt.Point init)
init
- Description of ParameterMethod Detail |
---|
public boolean isSelected()
public boolean isActive()
public void paint(java.awt.Graphics g)
g
- The graphics contextpublic boolean hit(java.awt.Point p)
p
- The point
public void move(java.awt.Point p)
p
- the destination of the movepublic void save(java.io.PrintWriter output)
output
- the output streampublic void shift(int x, int y)
x
- the amount in the x coordinatey
- the amount in the y coordinatepublic void scale(double value)
value
- the scaling factorprotected int getX()
protected int getY()
protected java.awt.Point getPoint()
protected void select(boolean way)
way
- true if the point is selectedprotected void active(boolean way)
way
- true if this vertex is activepublic static void setNear(double value)
value
- The new Near valuepublic static void setVertexSize(int value)
value
- The new VertexSize value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |