|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj.OPTICSPlotVisualizer<D>
D
- Distance typepublic class OPTICSPlotVisualizer<D extends Distance<?>>
Visualize an OPTICS result by constructing an OPTICS plot for it.
Field Summary | |
---|---|
(package private) ClusterOrderResult<D> |
co
Curve to visualize |
private File |
imgfile
The image we generated. |
private double |
imgratio
The height/width ratio of the image. |
private LinearScale |
linscale
The scale |
private static String |
NAME
Name for this visualizer. |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer |
---|
context, metadata |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
---|
LEVEL_BACKGROUND, LEVEL_FOREGROUND, LEVEL_INTERACTIVE, LEVEL_STATIC, META_LEVEL, META_NAME, META_NOTHUMB, META_VISIBLE, META_VISIBLE_DEFAULT |
Constructor Summary | |
---|---|
OPTICSPlotVisualizer()
|
Method Summary | ||
---|---|---|
static
|
canPlot(ClusterOrderResult<D> co)
Test whether we have an adapter for this cluster orders distance. |
|
private static
|
getAdapterForDistance(ClusterOrderResult<D> co)
Try to find a distance adapter. |
|
void |
init(VisualizerContext context,
ClusterOrderResult<D> co)
Initialization. |
|
protected void |
makePlot()
Make the optics plot |
|
Element |
visualize(SVGPlot svgp,
double width,
double height)
Returns an Element representing a visualization. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer |
---|
addRedrawListener, fireRedrawEvent, getMetadata, init, removeRedrawListener, requestRedraw, setLevel |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
---|
addRedrawListener, getMetadata, removeRedrawListener |
Field Detail |
---|
private static final String NAME
ClusterOrderResult<D extends Distance<?>> co
private File imgfile
private double imgratio
private LinearScale linscale
Constructor Detail |
---|
public OPTICSPlotVisualizer()
Method Detail |
---|
public void init(VisualizerContext context, ClusterOrderResult<D> co)
context
- context.co
- Cluster order to visualizeprotected void makePlot() throws IOException
IOException
private static <D extends Distance<?>> OPTICSDistanceAdapter<D> getAdapterForDistance(ClusterOrderResult<D> co)
public static <D extends Distance<?>> boolean canPlot(ClusterOrderResult<D> co)
D
- distance typeco
- Cluster order
public Element visualize(SVGPlot svgp, double width, double height)
UnprojectedVisualizer
visualize
in interface UnprojectedVisualizer
svgp
- the SVGPlot which will act as owner for the returned Element.width
- Width of plotheight
- Height of plot
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |