|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wilmascope.graph.GraphElement
public abstract class GraphElement
A GraphElement is the basic ancestor of anything that can appear in graph be it a Node, Edge or Cluster.
| Field Summary | |
|---|---|
protected Layable |
layout
|
protected Cluster |
owner
|
protected Viewable |
view
|
protected boolean |
visible
|
| Constructor Summary | |
|---|---|
GraphElement()
|
|
| Method Summary | |
|---|---|
abstract void |
delete()
delete the element, removing all references to it, forever! |
void |
draw()
draw the element if it's visible |
Cluster |
getOwner()
get the parent cluster or owner of this graph element |
abstract java.util.Properties |
getProperties()
Any properties loaded or saved in files con be stored in a Properties object. |
java.lang.Object |
getUserData(java.lang.Object key)
The graphElement maintains a hashtable allowing the user to associate it with miscellaneous data. |
void |
hide()
|
boolean |
isVisible()
|
void |
setOwner(Cluster c)
add this element to a particular owner cluster |
abstract void |
setProperties(java.util.Properties p)
|
void |
show(GraphCanvas graphCanvas)
|
void |
storeUserData(java.lang.Object key,
java.lang.Object value)
The following method may be used to associate data with a graph element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Viewable view
protected Layable layout
protected boolean visible
protected Cluster owner
| Constructor Detail |
|---|
public GraphElement()
| Method Detail |
|---|
public void setOwner(Cluster c)
c - the new ownerpublic Cluster getOwner()
public void draw()
public boolean isVisible()
public void hide()
public void show(GraphCanvas graphCanvas)
public void storeUserData(java.lang.Object key,
java.lang.Object value)
key - usually, the key should be a stringvalue - reference to your user datapublic java.lang.Object getUserData(java.lang.Object key)
key -
for an example usagepublic abstract void delete()
public abstract java.util.Properties getProperties()
public abstract void setProperties(java.util.Properties p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||