public class ClusterStylingPolicy extends Object implements ClassStylingPolicy
Modifier and Type | Field and Description |
---|---|
(package private) Clustering<?> |
clustering
Clustering in use.
|
(package private) gnu.trove.list.array.TIntArrayList |
colors
Colors
|
(package private) ArrayList<DBIDs> |
ids
Object IDs
|
Constructor and Description |
---|
ClusterStylingPolicy(Clustering<?> clustering,
StyleLibrary style)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Clustering<?> |
getClustering()
Get the clustering used by this styling policy
|
int |
getColorForDBID(DBIDRef id)
Get the color for an individual object.
|
int |
getMaxStyle()
Get the maximum style in use.
|
int |
getMinStyle()
Get the minimum style in use.
|
int |
getStyleForDBID(DBIDRef id)
Get the style number for a particular object
|
DBIDIter |
iterateClass(int cnum)
Iterate over all objects from a given class.
|
gnu.trove.list.array.TIntArrayList colors
Clustering<?> clustering
public ClusterStylingPolicy(Clustering<?> clustering, StyleLibrary style)
clustering
- Clustering to use.public int getStyleForDBID(DBIDRef id)
ClassStylingPolicy
getStyleForDBID
in interface ClassStylingPolicy
id
- Object IDpublic int getColorForDBID(DBIDRef id)
StylingPolicy
getColorForDBID
in interface StylingPolicy
id
- Object IDpublic int getMinStyle()
ClassStylingPolicy
getMinStyle
in interface ClassStylingPolicy
public int getMaxStyle()
ClassStylingPolicy
getMaxStyle
in interface ClassStylingPolicy
public DBIDIter iterateClass(int cnum)
ClassStylingPolicy
iterateClass
in interface ClassStylingPolicy
cnum
- Class numberpublic Clustering<?> getClustering()