Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.visualization.gui.overview
Class PlotMap<NV>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<DoubleDoublePair,ArrayList<VisualizationInfo>>
          extended by de.lmu.ifi.dbs.elki.visualization.gui.overview.PlotMap<NV>
All Implemented Interfaces:
Serializable, Cloneable, Map<DoubleDoublePair,ArrayList<VisualizationInfo>>

 class PlotMap<NV>
extends HashMap<DoubleDoublePair,ArrayList<VisualizationInfo>>

Manage the Overview plot canvas.

Author:
Erich Schubert

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
(package private)  MinMax<Double> minmaxx
          X coordinates seen
(package private)  MinMax<Double> minmaxy
          Y coordinates seen
private static long serialVersionUID
          Serial version
 
Constructor Summary
PlotMap()
          Constructor.
 
Method Summary
(package private)  void addVis(double x, double y, double w, double h, VisualizationInfo v)
          Place a new visualization on the chart.
(package private)  List<VisualizationInfo> get(double x, double y)
          Get the visualization on the given coordinates.
 double getHeight()
          Get height in plot units.
 double getWidth()
          Get width in plot units
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version

See Also:
Constant Field Values

minmaxx

MinMax<Double> minmaxx
X coordinates seen


minmaxy

MinMax<Double> minmaxy
Y coordinates seen

Constructor Detail

PlotMap

PlotMap()
Constructor.

Method Detail

addVis

void addVis(double x,
            double y,
            double w,
            double h,
            VisualizationInfo v)
Place a new visualization on the chart.

Parameters:
x - X coordinate
y - Y coordinate
w - Width
h - Height
v - Visualization

get

List<VisualizationInfo> get(double x,
                            double y)
Get the visualization on the given coordinates.

Parameters:
x - First coordinate
y - Second coordinate
Returns:
Visualizations at this position.

getWidth

public double getWidth()
Get width in plot units

Returns:
width

getHeight

public double getHeight()
Get height in plot units.

Returns:
height

Release 0.3 (2010-03-31_1612)