Package elki.visualization.gui.overview
Class PlotItem
- java.lang.Object
-
- elki.visualization.gui.overview.PlotItem
-
public class PlotItem extends java.lang.Object
Item to collect visualization tasks on a specific position on the plot map. Note: this is aLinkedList<VisualizationTask>
!- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PlotItem.ItmItr
Recursive iterator
-
Field Summary
Fields Modifier and Type Field Description double
h
Size: heightProjection
proj
Projection (may benull
!)java.util.Collection<PlotItem>
subitems
Subitems to plotjava.util.List<VisualizationTask>
tasks
The visualization tasks at this locationdouble
w
Size: widthdouble
x
Position: xdouble
y
Position: y
-
Constructor Summary
Constructors Constructor Description PlotItem(double x, double y, double w, double h, Projection proj)
Constructor.PlotItem(double w, double h, Projection proj)
Constructor.PlotItem(PlotItem vis)
Clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(VisualizationTask task)
Add a task to the item.java.util.Iterator<PlotItem>
itemIterator()
Iterate (recursively) over all plot items, including itself.void
sort()
Sort all visualizers for their proper drawing orderint
taskSize()
Number of tasks in this item.java.lang.String
toString()
-
-
-
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 benull
!)
-
tasks
public java.util.List<VisualizationTask> tasks
The visualization tasks at this location
-
subitems
public java.util.Collection<PlotItem> subitems
Subitems to plot
-
-
Constructor Detail
-
PlotItem
public PlotItem(double w, double h, Projection proj)
Constructor.- Parameters:
w
- Position: wh
- Position: hproj
- Projection
-
PlotItem
public PlotItem(double x, double y, double w, double h, Projection proj)
Constructor.- Parameters:
x
- Position: xy
- Position: yw
- Position: wh
- Position: hproj
- Projection
-
PlotItem
public PlotItem(PlotItem vis)
Clone constructor.- Parameters:
vis
- Existing plot item.
-
-
Method Detail
-
sort
public void sort()
Sort all visualizers for their proper drawing order
-
add
public void add(VisualizationTask task)
Add a task to the item.- Parameters:
task
- Task to add
-
taskSize
public int taskSize()
Number of tasks in this item.- Returns:
- Number of tasks.
-
itemIterator
public java.util.Iterator<PlotItem> itemIterator()
Iterate (recursively) over all plot items, including itself.- Returns:
- Iterator
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-