Class PlotItem


  • public class PlotItem
    extends java.lang.Object
    Item to collect visualization tasks on a specific position on the plot map. Note: this is a LinkedList<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: height
      Projection proj
      Projection (may be null!)
      java.util.Collection<PlotItem> subitems
      Subitems to plot
      java.util.List<VisualizationTask> tasks
      The visualization tasks at this location
      double w
      Size: width
      double x
      Position: x
      double y
      Position: y
    • 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 order
      int taskSize()
      Number of tasks in this item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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!)
      • 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: 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
      • 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 class java.lang.Object