public class LayerMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<Pair<PlotItem,VisualizationTask>,Pair<org.w3c.dom.Element,Visualization>> |
map
The actual map
|
Constructor and Description |
---|
LayerMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear a map
|
Pair<org.w3c.dom.Element,Visualization> |
get(PlotItem it,
VisualizationTask task)
Get a pair from the map
|
org.w3c.dom.Element |
getContainer(PlotItem item,
VisualizationTask task)
Get the container element referenced by a item/key combination.
|
Visualization |
getVisualization(PlotItem item,
VisualizationTask task)
Get the visualization referenced by a item/key combination.
|
private Pair<PlotItem,VisualizationTask> |
key(PlotItem item,
VisualizationTask task)
Helper function for building a key object
|
void |
put(PlotItem it,
VisualizationTask task,
org.w3c.dom.Element elem,
Visualization vis)
Put a new combination into the map.
|
void |
put(PlotItem it,
VisualizationTask task,
Pair<org.w3c.dom.Element,Visualization> pair)
Put a new item into the visualizations
|
Pair<org.w3c.dom.Element,Visualization> |
remove(PlotItem it,
VisualizationTask task)
Remove a combination.
|
private Pair<org.w3c.dom.Element,Visualization> |
value(org.w3c.dom.Element elem,
Visualization vis)
Helper function to build a value pair
|
java.lang.Iterable<Pair<org.w3c.dom.Element,Visualization>> |
values()
Iterate over values
|
private java.util.HashMap<Pair<PlotItem,VisualizationTask>,Pair<org.w3c.dom.Element,Visualization>> map
private Pair<PlotItem,VisualizationTask> key(PlotItem item, VisualizationTask task)
item
- Plot itemtask
- Visualization Taskprivate Pair<org.w3c.dom.Element,Visualization> value(org.w3c.dom.Element elem, Visualization vis)
elem
- Container elementvis
- Visualizationpublic Visualization getVisualization(PlotItem item, VisualizationTask task)
item
- Plot ttemtask
- Visualization taskpublic org.w3c.dom.Element getContainer(PlotItem item, VisualizationTask task)
item
- Plot itemtask
- Visualization taskpublic java.lang.Iterable<Pair<org.w3c.dom.Element,Visualization>> values()
public void clear()
public void put(PlotItem it, VisualizationTask task, org.w3c.dom.Element elem, Visualization vis)
it
- Plot itemtask
- Visualization Taskelem
- Container elementvis
- Visualizationpublic Pair<org.w3c.dom.Element,Visualization> remove(PlotItem it, VisualizationTask task)
it
- Plot itemtask
- Visualization taskpublic void put(PlotItem it, VisualizationTask task, Pair<org.w3c.dom.Element,Visualization> pair)
it
- Plot itemtask
- Visualization taskpair
- Pair objectpublic Pair<org.w3c.dom.Element,Visualization> get(PlotItem it, VisualizationTask task)
it
- Plot itemtask
- Visualization taskCopyright © 2019 ELKI Development Team. License information.