|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jfimagine.jfgraph.geom.JFPoint
|
+--com.jfimagine.jfgraph.geom.JFPointNode
JFPointNode class. A point class used to represents a node of a Regular Line or poly line.
| Field Summary | |
static int |
NODETYPE_END
An END POINT point node type that the node is the beginning or end point or corner of the whole line |
static int |
NODETYPE_MIDDLE
An MIDDLE POINT point node type that the node is on the middle of one line segment |
static int |
NODETYPE_SUBMIDDLE
An SUB MIDDLE POINT point node type that the node is on the middle of corner point and middle point |
| Constructor Summary | |
JFPointNode()
Constructor for JFPoint. |
|
JFPointNode(double x,
double y,
int nodeType)
Constructor for JFPoint. |
|
JFPointNode(JFPoint pnt,
int nodeType)
Constructor for JFPoint. |
|
JFPointNode(JFPointNode node)
Constructor for JFPoint. |
|
| Method Summary | |
java.lang.Object |
clone()
Creates a new object of the same class and with the same contents as this object. |
boolean |
equals(java.lang.Object obj)
Determines whether or not two objects are equal. |
int |
getNodeType()
Getter for node type |
int |
hashCode()
Returns the hashcode for this Object. |
void |
setNodeType(int nodeType)
Setter for node type |
void |
setValue(double x,
double y,
int nodeType)
Set value of current JFPointNode. |
void |
setValue(JFPointNode node)
Set value of current JFPointNode. |
java.lang.String |
toString()
Convert this object to String |
| Methods inherited from class com.jfimagine.jfgraph.geom.JFPoint |
contains, contains, distance, distance, equals, equals, flipBy, getMiddleUprightPoint, getSlope, getSlope, getX, getY, isValid, middleOf, middleOf, midPoint, midPoint, mirrorBy, moveBy, nearPoint, nearPoint, nearPoint, rotateBy, rotateBy, scaleBy, scaleBy, scaleBy, setValue, setValue, setX, setY |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NODETYPE_END
public static final int NODETYPE_MIDDLE
public static final int NODETYPE_SUBMIDDLE
| Constructor Detail |
public JFPointNode()
public JFPointNode(double x,
double y,
int nodeType)
x - X coordiate.y - Y coordiate.nodeType - A new node type.
public JFPointNode(JFPoint pnt,
int nodeType)
pnt - A JFPoint.nodeType - A new node type.public JFPointNode(JFPointNode node)
node - A JFPointNode object.| Method Detail |
public int getNodeType()
public void setNodeType(int nodeType)
nodeType - the node type.public void setValue(JFPointNode node)
public void setValue(double x,
double y,
int nodeType)
nodeType - A new node type.public java.lang.String toString()
toString in class JFPoint
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class JFPointjava.lang.CloneNotSupportedExceptionpublic int hashCode()
hashCode in class JFPointpublic boolean equals(java.lang.Object obj)
equals in class JFPointobj - an object to be compared with this object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||