de.lmu.ifi.dbs.elki.visualization.opticsplot
Class OPTICSColorStatic
java.lang.Object
de.lmu.ifi.dbs.elki.visualization.opticsplot.OPTICSColorStatic
- All Implemented Interfaces:
- OPTICSColorAdapter
public class OPTICSColorStatic
- extends Object
- implements OPTICSColorAdapter
Pseudo-coloring for OPTICS plot that just uses a static color.
Field Summary |
(package private) int |
color
Static color to use |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
color
int color
- Static color to use
OPTICSColorStatic
public OPTICSColorStatic(int color)
- Constructor.
- Parameters:
color
- Static color to use.
getColorForEntry
public int getColorForEntry(ClusterOrderEntry<?> coe)
- Description copied from interface:
OPTICSColorAdapter
- Get the color value for a particular cluster order entry.
- Specified by:
getColorForEntry
in interface OPTICSColorAdapter
- Parameters:
coe
- Cluster order entry
- Returns:
- Color value (rgba integer)