| |
|
| java.lang.Object org.acm.seguin.uml.line.Vertex
Vertex | public class Vertex (Code) | | Vertex
author: Chris Seguin author: Mike Atkinson |
Vertex | public Vertex(Point init)(Code) | | Constructor for the Vertex object
Parameters: init - Description of Parameter |
active | protected void active(boolean way)(Code) | | Sets whether this is the active vertex
Parameters: way - true if this vertex is active |
getPoint | protected Point getPoint()(Code) | | Gets the scaled point
the scaled point |
getX | protected int getX()(Code) | | Gets the X attribute of the Vertex object
The X value |
getY | protected int getY()(Code) | | Gets the Y attribute of the Vertex object
The Y value |
hit | public boolean hit(Point p)(Code) | | Determines if it is hit by a point
Parameters: p - The point true if this point hits this vertex |
isActive | public boolean isActive()(Code) | | Checks if this vertex is the active vertex
true if it is |
isSelected | public boolean isSelected()(Code) | | Checks if the point is selected
true if the point is selected |
move | public void move(Point p)(Code) | | Moves the vertex to p
Parameters: p - the destination of the move |
paint | public void paint(Graphics g)(Code) | | Paints the object
Parameters: g - The graphics context |
save | public void save(PrintWriter output)(Code) | | Save the vertex
Parameters: output - the output stream |
scale | public void scale(double value)(Code) | | Scales the vertex
Parameters: value - the scaling factor |
select | protected void select(boolean way)(Code) | | Selects the point
Parameters: way - true if the point is selected |
setNear | public static void setNear(double value)(Code) | | Sets the Near attribute of the Vertex class
Parameters: value - The new Near value |
setVertexSize | public static void setVertexSize(int value)(Code) | | Sets the VertexSize attribute of the Vertex class
Parameters: value - The new VertexSize value |
shift | public void shift(int x, int y)(Code) | | Shifts the point by a certain amount
Parameters: x - the amount in the x coordinate Parameters: y - the amount in the y coordinate |
|
|
|