bass.visualisation.graph
Class BassGraphElement
java.lang.Object
bass.visualisation.graph.BassGraphElement
- Direct Known Subclasses:
- BassEdge, BassNode
public abstract class BassGraphElement
- extends java.lang.Object
A BassGraphElement is the basic ancestor / superclass of anything that can appear in the graph.
In this case BassNode BassNode, BassEdge BassEdge maybe even BassCluster
- Version:
- 0.2
- Author:
- Patrick Mai
|
Method Summary |
abstract void |
delete()
delete the specific element, removing all references to it. |
java.lang.String |
getID()
|
java.lang.String |
getName()
|
BassCluster |
getOwner()
get the parent cluster or owner of this graph element |
void |
setID(java.lang.String id)
|
void |
setName(java.lang.String name)
|
void |
setOwner(BassCluster c)
add this element to a particular owner cluster |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
name
protected java.lang.String name
owner
protected BassCluster owner
BassGraphElement
public BassGraphElement()
setOwner
public void setOwner(BassCluster c)
- add this element to a particular owner cluster
- Parameters:
c - the new owner
getOwner
public BassCluster getOwner()
- get the parent cluster or owner of this graph element
setID
public void setID(java.lang.String id)
- Parameters:
id - The bandid (unique) to set to this element
getID
public java.lang.String getID()
- Returns:
- the unique ID (String) of this element
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
delete
public abstract void delete()
- delete the specific element, removing all references to it. That is forever and can't be undone!