
| 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 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() |
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
RenderedImage |
getPlot()
Get the OPTICS plot.
|
double |
getRatio()
Get width-to-height ratio of image.
|
LinearScale |
getScale() |
String |
getShortName()
A short name for the result, useful for file names.
|
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 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 RenderedImage getPlot()
public void forgetRenderedImage()
public String getSVGPlotURI()
public String getLongName()
ResultgetLongName in interface Resultpublic 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 © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.