Class DefaultDisplayData<T>

  • All Implemented Interfaces:
    DisplayData<T>
    Direct Known Subclasses:
    GISDisplayData

    public class DefaultDisplayData<T>
    extends AbstractDisplayData<T>
    Default implementation of DisplayData that wraps a Context. The implemented methods are then forwarded to the wrapped Context.
    Version:
    $Revision$ $Date$
    Author:
    Nick Collier
    • Constructor Detail

      • DefaultDisplayData

        public DefaultDisplayData​(Context<T> context)
        Creates a DefaultDisplayData that delegates its methods to the specified context.
        Parameters:
        context -
    • Method Detail

      • getContainer

        public VisualizedObjectContainer<T> getContainer()
        Gets the container that contains the objects we want to display.
        Returns:
        the container that contains the objects we want to display.
      • addProjection

        public void addProjection​(String name)
        Adds the named projection to the list of projections to display.
        Parameters:
        name - the name of the projection to add.
      • addValueLayer

        public void addValueLayer​(String name)
        Adds the named ValueLayer to the list of ValueLayers to display.
        Parameters:
        name - the name of the ValueLayer to add.
      • objects

        public Iterable<T> objects()
        Gets the objects to be initially displayed.
        Returns:
        an iterable over the objects to be initially displayed.