edu.uci.ics.jung.graph.decorators
Class Decorator

java.lang.Object
  extended byedu.uci.ics.jung.graph.decorators.Decorator
Direct Known Subclasses:
NumericDecorator

public abstract class Decorator
extends java.lang.Object

Abstract decorator for cases where attributes are to be stored along with the graph/edge/vertex which they describe

Author:
Scott White

Method Summary
 UserDataContainer.CopyAction getCopyAction()
          Retrieves the user datum copy action that this decorator uses when setting new values
 java.lang.Object getKey()
          Retrieves the user datum key that this decorator uses when setting new values
 int hashCode()
           
 void removeValue(UserDataContainer udc)
          Removes the values from the user data container
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCopyAction

public UserDataContainer.CopyAction getCopyAction()
Retrieves the user datum copy action that this decorator uses when setting new values

Returns:
the copy action

getKey

public java.lang.Object getKey()
Retrieves the user datum key that this decorator uses when setting new values


hashCode

public int hashCode()
Returns:
the hash code for the user datum key

removeValue

public void removeValue(UserDataContainer udc)
Removes the values from the user data container

Parameters:
udc - the vertex/edge/graph being whose value is being removed