Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.application.visualization
Class KNNExplorer.ExplorerWindow

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.application.visualization.KNNExplorer.ExplorerWindow
Enclosing class:
KNNExplorer<O extends NumberVector<O,?>,N extends NumberDistance<N,D>,D extends Number>

 class KNNExplorer.ExplorerWindow
extends AbstractLoggable


Nested Class Summary
private  class KNNExplorer.ExplorerWindow.SeriesLabelRenderer
           
 
Field Summary
protected  Database<O> db
           
protected  int dim
           
protected  HashMap<Integer,Double> distancecache
           
private  DistanceFunction<O,N> distanceFunction
          Holds the instance of the distance function specified by KNNExplorer.DISTANCE_FUNCTION_PARAM.
protected  JFrame frame
           
protected  int k
           
private static int MAXRESOLUTION
          Maximum resolution for plotted lines to improve performance for long time series.
(package private)  SVGPlot plot
           
protected  JButton quitButton
           
protected  double ratio
           
protected  LinearScale s
           
protected  JButton saveButton
           
private static String SERIESID
          SVG graph object ID (for replacing)
private  JList seriesList
           
protected  JSpinner spinner
           
protected  org.apache.batik.swing.JSVGCanvas svgCanvas
           
(package private)  Element viewport
           
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
KNNExplorer.ExplorerWindow()
           
 
Method Summary
(package private)  Color getColor(double dist)
           
private  Element plotSeries(int idx, int resolution)
           
 void run(Database<O> db, DistanceFunction<O,N> distanceFunction)
           
protected  void updateSelection()
           
 void updateSize()
           
 
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
 

Field Detail

MAXRESOLUTION

private static final int MAXRESOLUTION
Maximum resolution for plotted lines to improve performance for long time series.

See Also:
Constant Field Values

SERIESID

private static final String SERIESID
SVG graph object ID (for replacing)

See Also:
Constant Field Values

frame

protected JFrame frame

spinner

protected JSpinner spinner

seriesList

private JList seriesList

quitButton

protected JButton quitButton

saveButton

protected JButton saveButton

svgCanvas

protected org.apache.batik.swing.JSVGCanvas svgCanvas

plot

SVGPlot plot

viewport

Element viewport

dim

protected int dim

k

protected int k

s

protected LinearScale s

db

protected Database<O extends NumberVector<O,?>> db

distancecache

protected HashMap<Integer,Double> distancecache

ratio

protected double ratio

distanceFunction

private DistanceFunction<O extends NumberVector<O,?>,N extends NumberDistance<N,D>> distanceFunction
Holds the instance of the distance function specified by KNNExplorer.DISTANCE_FUNCTION_PARAM.

Constructor Detail

KNNExplorer.ExplorerWindow

public KNNExplorer.ExplorerWindow()
Method Detail

updateSize

public void updateSize()

run

public void run(Database<O> db,
                DistanceFunction<O,N> distanceFunction)

updateSelection

protected void updateSelection()

getColor

Color getColor(double dist)

plotSeries

private Element plotSeries(int idx,
                           int resolution)

Release 0.2.1 (2009-07-13_1605)