|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.claribole.zgrviewer.dot.Node
net.claribole.zgrviewer.dot.CommonNode
net.claribole.zgrviewer.dot.Record
net.claribole.zgrviewer.dot.SubRecord
Part of a Record, may also be considered as a node as it can point or be pointed with an edge
| Field Summary | |
Rectangle |
rect
|
protected SubRecord[] |
subRecords
List of the Record's elemnts that can be used on edges' start and ending nodes |
| Constructor Summary | |
SubRecord(java.lang.Object root,
java.lang.String id,
net.claribole.zgrviewer.dot.Record directParentRecord)
Create a SubRecord |
|
| Method Summary | |
void |
addRectangle(Rectangle rect)
Add a new Rectangle to the rects' list |
void |
addSubRecord(SubRecord subRecord)
Add a new SubRecord to the subRecord's list |
protected void |
changeOption(java.lang.String name,
java.lang.String value)
|
boolean |
isRounded()
|
protected java.lang.String |
nodeOptions()
Write node options |
protected java.lang.String |
printRecordLabel()
Write a record's label |
protected java.lang.String |
printShapeOption()
Write the shape of a record |
void |
removeRectangle(Rectangle rect)
Remove a Rectangle from the rects' list |
void |
removeSubRecord(SubRecord subRecord)
Remove a SubRecord from the subRecord's list |
void |
setRounded(boolean rounded)
|
java.lang.String |
toString()
|
| Methods inherited from class net.claribole.zgrviewer.dot.Node |
addInEdge, addOutEdge, getIn, getOut, getRootGraph, printOption, printOption, printOption, printOption, removeInEdge, removeOutEdge |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Rectangle rect
protected SubRecord[] subRecords
| Constructor Detail |
public SubRecord(java.lang.Object root,
java.lang.String id,
net.claribole.zgrviewer.dot.Record directParentRecord)
throws java.lang.Exception
root - root of the graphid - identificator of the subRecorddirectParentRecord - direct Record on top of the new one
java.lang.Exception| Method Detail |
public void addSubRecord(SubRecord subRecord)
subRecord - SubRecord to addpublic void addRectangle(Rectangle rect)
rect - Rectangle to addpublic void removeSubRecord(SubRecord subRecord)
subRecord - SubRecord to removepublic void removeRectangle(Rectangle rect)
rect - Rectangle to removepublic boolean isRounded()
public void setRounded(boolean rounded)
rounded - The rounded value to set.
protected void changeOption(java.lang.String name,
java.lang.String value)
public java.lang.String toString()
toString in class NodeNode.toString()protected java.lang.String nodeOptions()
Node
CommonNode.nodeOptions()protected java.lang.String printShapeOption()
protected java.lang.String printRecordLabel()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||