Package elki.visualization.style
Interface ClassStylingPolicy
-
- All Superinterfaces:
StylingPolicy
,VisualizationItem
- All Known Implementing Classes:
ClusterStylingPolicy
,SegmentsStylingPolicy
public interface ClassStylingPolicy extends StylingPolicy
Styling policy that is based on classes, for example clusters or labels. This allows for certain optimizations such as marker reuse, and thus is preferred when possible.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
classSize(int cnum)
Get the number of elements in the styling class.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 objectDBIDIter
iterateClass(int cnum)
Iterate over all objects from a given class.-
Methods inherited from interface elki.visualization.style.StylingPolicy
getColorForDBID, getIntensityForDBID
-
Methods inherited from interface elki.visualization.VisualizationItem
getMenuName
-
-
-
-
Method Detail
-
getStyleForDBID
int getStyleForDBID(DBIDRef id)
Get the style number for a particular object- Parameters:
id
- Object ID- Returns:
- Style number
-
getMinStyle
int getMinStyle()
Get the minimum style in use.- Returns:
- Style number
-
getMaxStyle
int getMaxStyle()
Get the maximum style in use.- Returns:
- Style number
-
iterateClass
DBIDIter iterateClass(int cnum)
Iterate over all objects from a given class.- Parameters:
cnum
- Class number- Returns:
- Iterator over object IDs
-
classSize
int classSize(int cnum)
Get the number of elements in the styling class.- Parameters:
cnum
- Class number- Returns:
- Size of class.
-
-