T
- type of object being mappedK
- type of key object generatedpublic abstract class HashLabeller<T,K> extends AbstractContexed implements Labelled
conn
Constructor and Description |
---|
HashLabeller(AppContext c) |
Modifier and Type | Method and Description |
---|---|
abstract K |
getKey(T r)
Create the Key object from the object being plotted.
|
abstract java.lang.Object |
getLabel(K key,
T r)
generates the label object we could get this either from the key or
the object itself.
|
java.util.Vector<java.lang.String> |
getLabels()
What are the labels corresponding to the Sets
|
int[] |
getPerm()
Get a permutation array for the sets depending on the
natural ordering of the internal label objects.
|
protected int |
getSet(K key,
T o) |
int |
getSet(T o) |
int |
nSets()
How many sets can the mapper map to
|
getContext, getLogger, resetLogger
public HashLabeller(AppContext c)
public abstract K getKey(T r)
r
- Plot Objectpublic abstract java.lang.Object getLabel(K key, T r)
key
- Key Objectr
- Plot Objectpublic final java.util.Vector<java.lang.String> getLabels()
Labelled
public int[] getPerm()
public final int getSet(T o)