| Modifier and Type | Field and Description | 
|---|---|
(package private) ClusterOrder | 
co
The result to plot. 
 | 
(package private) StylingPolicy | 
colors
Color adapter to use 
 | 
(package private) int | 
height
Height of plot 
 | 
private static Logging | 
LOG
Logger 
 | 
private static int | 
MAX_HEIGHT
Minimum and maximum vertical resolution. 
 | 
private static int | 
MIN_HEIGHT
Minimum and maximum vertical resolution. 
 | 
protected java.awt.image.RenderedImage | 
plot
The Optics plot. 
 | 
protected int | 
plotnum
The plot number for Batik 
 | 
(package private) double | 
ratio
Ratio of plot 
 | 
(package private) LinearScale | 
scale
Scale to use 
 | 
(package private) int | 
width
Width of plot 
 | 
| Constructor and Description | 
|---|
OPTICSPlot(ClusterOrder co,
          StylingPolicy colors)
Constructor, with automatic distance adapter detection. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected LinearScale | 
computeScale(ClusterOrder order)
Compute the scale (value range) 
 | 
void | 
forgetRenderedImage()
Free memory used by rendered image. 
 | 
ClusterOrder | 
getClusterOrder()
Get the cluster order we are attached to. 
 | 
int | 
getHeight()  | 
java.lang.String | 
getLongName()
A "pretty" name for the result, for use in titles, captions and menus. 
 | 
java.awt.image.RenderedImage | 
getPlot()
Get the OPTICS plot. 
 | 
double | 
getRatio()
Get width-to-height ratio of image. 
 | 
LinearScale | 
getScale()  | 
java.lang.String | 
getShortName()
A short name for the result, useful for file names. 
 | 
java.lang.String | 
getSVGPlotURI()
Get the SVG registered plot number 
 | 
int | 
getWidth()  | 
static OPTICSPlot | 
plotForClusterOrder(ClusterOrder co,
                   VisualizerContext context)
Static method to find an optics plot for a result, or to create a new one
 using the given context. 
 | 
void | 
replot()
Trigger a redraw of the OPTICS plot 
 | 
double | 
scaleFromPixel(double y)
Scale a pixel value to a reachability 
 | 
int | 
scaleToPixel(double reach)
Scale a reachability distance to a pixel value. 
 | 
private static final Logging LOG
private static final int MIN_HEIGHT
private static final int MAX_HEIGHT
LinearScale scale
int width
int height
double ratio
final ClusterOrder co
final StylingPolicy colors
protected java.awt.image.RenderedImage plot
protected int plotnum
public OPTICSPlot(ClusterOrder co, StylingPolicy colors)
co - Cluster order to plot.colors - Coloring strategypublic void replot()
public int scaleToPixel(double reach)
reach - Reachabilitypublic double scaleFromPixel(double y)
y - Pixel valueprotected LinearScale computeScale(ClusterOrder order)
order - Cluster order to processpublic LinearScale getScale()
public int getWidth()
public int getHeight()
public double getRatio()
width / heightpublic java.awt.image.RenderedImage getPlot()
public void forgetRenderedImage()
public java.lang.String getSVGPlotURI()
public java.lang.String getLongName()
ResultgetLongName in interface Resultpublic java.lang.String getShortName()
ResultgetShortName in interface Resultpublic static OPTICSPlot plotForClusterOrder(ClusterOrder co, VisualizerContext context)
co - Cluster ordercontext - Context (for colors and reference clustering)public ClusterOrder getClusterOrder()
Copyright © 2019 ELKI Development Team. License information.