de.lmu.ifi.dbs.elki.visualization.gui.overview
Class PlotItem

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.gui.overview.PlotItem

public class PlotItem
extends Object

Item to collect visualization tasks on a specific position on the plot map. Note: this is a LinkedList<VisualizationTask>!


Nested Class Summary
private  class PlotItem.ItmItr
          Recursive iterator
private  class PlotItem.VisItr
          Recursive iterator
 
Field Summary
 double h
          Size: height
 Projection proj
          Projection (may be null!)
 Collection<PlotItem> subitems
          Subitems to plot
 List<VisualizationTask> visualizations
          The visualizations at this location
 double w
          Size: width
 double x
          Position: x
 double y
          Position: y
 
Constructor Summary
PlotItem(double x, double y, double w, double h, Projection proj)
          Constructor.
PlotItem(double w, double h, Projection proj)
          Constructor.
 
Method Summary
 Iterator<PlotItem> itemIterator()
          Iterate (recursively) over all plot items, including itself.
 void sort()
          Sort all visualizers for their proper drawing order
 Iterator<VisualizationTask> visIterator()
          Iterate (recursively) over all visualizations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public final double x
Position: x


y

public final double y
Position: y


w

public final double w
Size: width


h

public final double h
Size: height


proj

public final Projection proj
Projection (may be null!)


visualizations

public List<VisualizationTask> visualizations
The visualizations at this location


subitems

public Collection<PlotItem> subitems
Subitems to plot

Constructor Detail

PlotItem

public PlotItem(double w,
                double h,
                Projection proj)
Constructor.

Parameters:
w - Position: w
h - Position: h
proj - Projection

PlotItem

public PlotItem(double x,
                double y,
                double w,
                double h,
                Projection proj)
Constructor.

Parameters:
x - Position: x
y - Position: y
w - Position: w
h - Position: h
proj - Projection
Method Detail

sort

public void sort()
Sort all visualizers for their proper drawing order


visIterator

public Iterator<VisualizationTask> visIterator()
Iterate (recursively) over all visualizations.

Returns:
Iterator

itemIterator

public Iterator<PlotItem> itemIterator()
Iterate (recursively) over all plot items, including itself.

Returns:
Iterator

Release 0.4.0 (2011-09-20_1324)