|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jfimagine.jfgraph.shape.base.AbstractObject
|
+--com.jfimagine.jfgraph.shape.base.ObjectList
|
+--com.jfimagine.jfgraph.shape.base.NodeList
NodeList class. A node list is used to manipulate node issues.
| Field Summary | |
static java.lang.String |
XML_NODELIST
A XML string tag represents a Node List |
| Fields inherited from class com.jfimagine.jfgraph.shape.base.ObjectList |
m_objectList, XML_OBJECTCOUNT, XML_OBJECTLIST |
| Fields inherited from class com.jfimagine.jfgraph.shape.base.AbstractObject |
m_lastError, XML_OBJECTID, XML_OBJECTTYPE |
| Constructor Summary | |
NodeList()
Constructor for NodeList |
|
| Method Summary | |
protected AbstractObject |
cloneMe()
Creates a new AbstractObject of the same class and with the same contents as this object. |
void |
draw(java.awt.Graphics g,
boolean ifRotate)
Draw current object on graphic canvas. |
Rect |
getBounds()
Get the maximum bounds of this all nodes. |
int |
getIndex(Node node)
Get the index of a node within the list. |
Node |
nodeIntersects(JFPoint pnt,
int usage)
Get which node that intersects with point pnt. |
Node |
removeLastNode()
Remove last node in this list. |
void |
setParent(AbstractObject obj)
Set parent object of each node in the list. |
void |
setZoomScale(double zoomScale)
set zoom scale of all nodes. |
| Methods inherited from class com.jfimagine.jfgraph.shape.base.ObjectList |
add, add, appendChildToDOM, attachRealPort, attachRealPort, bringToFront, clear, clone, contains, equals, extractChildFromDOM, getByIndex, getByObjectId, getFromGroupsByObjectId, getIndexByObjectId, getList, hashCode, loadFromStream, moveObject, newObjectId, removeAll, removeByIndex, removeByObjectId, saveToStream, sendToBack, setList, setShowDesign, size, toString |
| Methods inherited from class com.jfimagine.jfgraph.shape.base.AbstractObject |
fromDOM, getLastError, getMaxObjectId, getObjectId, getObjectType, getXMLTag, getZoomScale, isShowDesign, setLastError, setObjectId, setObjectType, setValue, setXMLTag, toDOM |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String XML_NODELIST
| Constructor Detail |
public NodeList()
| Method Detail |
public void setParent(AbstractObject obj)
public int getIndex(Node node)
node - A node to be found.
protected AbstractObject cloneMe()
throws java.lang.CloneNotSupportedException
cloneMe in class ObjectListjava.lang.CloneNotSupportedException
public void draw(java.awt.Graphics g,
boolean ifRotate)
g - A graphic canvas.ifRotate - If user's operation or other actions force objects to be rotated.
public Node nodeIntersects(JFPoint pnt,
int usage)
pnt - A JFPoint used to test intersection.usage - Purpose to get a node intersected, e.g. move or rotate.
public Rect getBounds()
getBounds in class ObjectListpublic Node removeLastNode()
public void setZoomScale(double zoomScale)
setZoomScale in class ObjectListzoomScale - A new zoom scale.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||