public class UserDatumNumberVertexValue extends java.lang.Object implements NumberVertexValue
| Modifier and Type | Field and Description |
|---|---|
protected UserDataContainer.CopyAction |
copy_action |
protected java.lang.Object |
key |
| Constructor and Description |
|---|
UserDatumNumberVertexValue(java.lang.Object key)
Creates an instance with the specified key and with a
CopyAction of REMOVE. |
UserDatumNumberVertexValue(java.lang.Object key,
UserDataContainer.CopyAction copy_action)
Creates an instance with the specified key and
CopyAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(ArchetypeGraph g)
Removes this decoration from
g. |
java.lang.Number |
getNumber(ArchetypeVertex v) |
void |
setCopyAction(UserDataContainer.CopyAction copy_action) |
void |
setNumber(ArchetypeVertex v,
java.lang.Number n) |
protected java.lang.Object key
protected UserDataContainer.CopyAction copy_action
public UserDatumNumberVertexValue(java.lang.Object key)
CopyAction of REMOVE.public UserDatumNumberVertexValue(java.lang.Object key,
UserDataContainer.CopyAction copy_action)
CopyAction.public void setCopyAction(UserDataContainer.CopyAction copy_action)
public java.lang.Number getNumber(ArchetypeVertex v)
getNumber in interface NumberVertexValuev - the vertex to examineNumberVertexValue.getNumber(edu.uci.ics.jung.graph.ArchetypeVertex)public void setNumber(ArchetypeVertex v, java.lang.Number n)
setNumber in interface NumberVertexValuev - the vertex whose value we're settingn - the Number to which we're setting the vertex's valueNumberVertexValue.setNumber(edu.uci.ics.jung.graph.ArchetypeVertex, java.lang.Number)public void clear(ArchetypeGraph g)
g.