de.lmu.ifi.dbs.elki.visualization.gui.detail
Class DetailView

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.svg.SVGPlot
      extended by de.lmu.ifi.dbs.elki.visualization.gui.detail.DetailView
All Implemented Interfaces:
ResultListener, EventListener

public class DetailView
extends SVGPlot
implements ResultListener

Manages a detail view.


Nested Class Summary
protected  class DetailView.InsertVisualization
          Class used to insert a new visualization layer
 
Field Summary
(package private)  VisualizerContext context
          The visualizer context
private  double height
          The created height
(package private)  Map<VisualizationTask,Visualization> layermap
          Map from visualizers to layers
(package private)  double ratio
          Ratio of this view.
(package private)  PlotItem visi
          Meta information on the visualizers contained.
private  double width
          The created width
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.svg.SVGPlot
DEFAULT_QUALITY
 
Constructor Summary
DetailView(VisualizerContext context, PlotItem vis, double ratio)
          Constructor.
 
Method Summary
private  void addBackground(VisualizerContext context)
          Create a background node.
 void destroy()
          Cleanup function.
private  void destroyVisualizations()
           
 void dispose()
          Clean up the plot.
 double getRatio()
          Get the plot ratio.
protected  void redraw()
           
 void resultAdded(Result child, Result parent)
          A new derived result was added.
 void resultChanged(Result current)
          Notify that the current result has changed substantially.
 void resultRemoved(Result child, Result parent)
          A result was removed.
 void setRatio(double ratio)
          Set the plot ratio
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.svg.SVGPlot
addCSSClassOrLogError, dumpDebugFile, elementCoordinatesFromEvent, getAllIds, getCSSClassManager, getDefs, getDisableInteractions, getDocument, getIdElement, getRoot, getStyle, putIdElement, saveAsANY, saveAsEPS, saveAsJPEG, saveAsJPEG, saveAsPDF, saveAsPNG, saveAsPS, saveAsSVG, scheduleUpdate, setDisableInteractions, svgCircle, svgElement, svgLine, svgRect, svgText, synchronizeWith, transcode, unsynchronizeWith, updateStyleElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visi

PlotItem visi
Meta information on the visualizers contained.


ratio

double ratio
Ratio of this view.


context

VisualizerContext context
The visualizer context


layermap

Map<VisualizationTask,Visualization> layermap
Map from visualizers to layers


width

private double width
The created width


height

private double height
The created height

Constructor Detail

DetailView

public DetailView(VisualizerContext context,
                  PlotItem vis,
                  double ratio)
Constructor.

Parameters:
vis - Visualizations to use
ratio - Plot ratio
Method Detail

addBackground

private void addBackground(VisualizerContext context)
Create a background node. Note: don't call this at arbitrary times - the background may cover already drawn parts of the image!

Parameters:
context -

redraw

protected void redraw()

destroy

public void destroy()
Cleanup function. To remove listeners.


destroyVisualizations

private void destroyVisualizations()

dispose

public void dispose()
Description copied from class: SVGPlot
Clean up the plot.

Overrides:
dispose in class SVGPlot

getRatio

public double getRatio()
Get the plot ratio.

Returns:
the current ratio

setRatio

public void setRatio(double ratio)
Set the plot ratio

Parameters:
ratio - the new ratio to set

resultAdded

public void resultAdded(Result child,
                        Result parent)
Description copied from interface: ResultListener
A new derived result was added.

Specified by:
resultAdded in interface ResultListener
Parameters:
child - New child result added
parent - Parent result that was added to

resultChanged

public void resultChanged(Result current)
Description copied from interface: ResultListener
Notify that the current result has changed substantially.

Specified by:
resultChanged in interface ResultListener
Parameters:
current - Result that has changed.

resultRemoved

public void resultRemoved(Result child,
                          Result parent)
Description copied from interface: ResultListener
A result was removed.

Specified by:
resultRemoved in interface ResultListener
Parameters:
child - result that was removed
parent - Parent result that was removed from

Release 0.4.0 (2011-09-20_1324)