Data Model - x28de/mytool GitHub Wiki
Core of the data model are the two Hashtables nodes and edges
-
id (node and edge)
in constructor,
redundant (same as key in Hashtable)
get/set by getID() / setID()
loaded/ stored (new format): nodeid as attribute, edgeid not in xml
imported (old format) as attribute -
xy (node only)
in constructor,
not redundant
get/set by getXY() / setXY()
loaded/ stored (new format): as attributes x, y
imported (old format) as attributes x, y -
node1 / node2 (edge only)
in constructor
not redundant,
get by getNode1/2, no set
not loaded/ stored (new format), see n1, n2 instead
not imported (old format), see n1, n2 instead -
color (node and edge)
in constructor,
not redundant,
get/set by getColor(Color) / setColor (String)
loaded/ stored (new format): as attribute (String)
imported (old format) as attributes r, g, b -
label (node)
in constructor
not redundant,
get/set by getLabel / setLabel
loaded/ stored (new format) as cdata
imported (old format) as topname><basename>\cdata -
detail (node and edge)
in constructor
not redundant,
get/set by getDetail / setDetail
loaded/ stored (new format) as cdata
imported (old format) as \cdata -
n1 / n2 (edge only)
not in constructor
redundant, see node1 / node2
get by getN1/2, no set
loaded/ stored (new format) as attributes
imported (old format) as \cdata -
associations (node only)
not in constructor
redundant, see egdes
get by getEdges, relatedNode; set by addEdge, removeEdge
not loaded/ stored (new format)
not imported (old format)