Class LayerMap


  • public class LayerMap
    extends java.lang.Object
    Class to help keeping track of the materialized layers of the different visualizations.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Constructor Detail

      • LayerMap

        public LayerMap()
    • Method Detail

      • value

        private Pair<org.w3c.dom.Element,​Visualization> value​(org.w3c.dom.Element elem,
                                                                    Visualization vis)
        Helper function to build a value pair
        Parameters:
        elem - Container element
        vis - Visualization
        Returns:
        Value object
      • getVisualization

        public Visualization getVisualization​(PlotItem item,
                                              VisualizationTask task)
        Get the visualization referenced by a item/key combination.
        Parameters:
        item - Plot ttem
        task - Visualization task
        Returns:
        Visualization
      • getContainer

        public org.w3c.dom.Element getContainer​(PlotItem item,
                                                VisualizationTask task)
        Get the container element referenced by a item/key combination.
        Parameters:
        item - Plot item
        task - Visualization task
        Returns:
        Container element
      • values

        public java.lang.Iterable<Pair<org.w3c.dom.Element,​Visualization>> values()
        Iterate over values
        Returns:
        Value iterable
      • clear

        public void clear()
        Clear a map
      • put

        public void put​(PlotItem it,
                        VisualizationTask task,
                        org.w3c.dom.Element elem,
                        Visualization vis)
        Put a new combination into the map.
        Parameters:
        it - Plot item
        task - Visualization Task
        elem - Container element
        vis - Visualization
      • put

        public void put​(PlotItem it,
                        VisualizationTask task,
                        Pair<org.w3c.dom.Element,​Visualization> pair)
        Put a new item into the visualizations
        Parameters:
        it - Plot item
        task - Visualization task
        pair - Pair object