public interface Decoration<K,V>
BidiDecoration
or
SettableBidiDecoration
.
The purpose of this interface is to provide a simple unifying mechanism
for accessing element (meta)data, which may be variously stored in
instance fields, auxiliary data structures such as Map
instances,
or the JUNG user data repository.
This interface is designed so as to be compatible with the Map
interface--that is, so that a Map
instance can serve as a Decoration
.
Examples of ways to instantiate this interface include:
Decorationvertex_stringer = new HashMap (); Decoration unit_edge_weight = new Decoration () { public Integer get(Edge e) { return 1; } };
SettableDecoration
,
BidiDecoration
,
SettableBidiDecoration