edu.washington.NVisF.plotter
Class PlotManager

java.lang.Object
  |
  +--edu.washington.NVisF.plotter.PlotManager

public class PlotManager
extends java.lang.Object

A PlotManager stores PlotStrategy objects so that they can be retrieved by name. A default strategy is defined that will be returned when a unknown name is requested.


Field Summary
static java.lang.String DEFAULT_PLOT_STRATEGY
          name of the default PlotStrategy.
 
Constructor Summary
PlotManager()
          Creates a new PlotManager with a plain PointCloudStrategy as its default strategy.
PlotManager(PlotStrategy defaultStrategy)
          Creates a new PlotManager with the specified PlotStrategy as its default strategy.
 
Method Summary
 PlotStrategy getPlotStrategy(java.lang.String name)
          Returns the PlotStrategy mapped to the name provided.
 PlotStrategy putPlotStrategy(java.lang.String name, PlotStrategy plotStrategy)
          Adds the given PlotStrategy to this registry under the supplied name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PLOT_STRATEGY

public static final java.lang.String DEFAULT_PLOT_STRATEGY
name of the default PlotStrategy.
Constructor Detail

PlotManager

public PlotManager()
Creates a new PlotManager with a plain PointCloudStrategy as its default strategy.

PlotManager

public PlotManager(PlotStrategy defaultStrategy)
Creates a new PlotManager with the specified PlotStrategy as its default strategy.
Method Detail

getPlotStrategy

public PlotStrategy getPlotStrategy(java.lang.String name)
Returns the PlotStrategy mapped to the name provided. If no such name is known, the default strategy will be returned.

putPlotStrategy

public PlotStrategy putPlotStrategy(java.lang.String name,
                                    PlotStrategy plotStrategy)
Adds the given PlotStrategy to this registry under the supplied name. The return value is the previous PlotStrategy defined for that name, or null if there was no previous value.
Parameters:
name - a String giving the name of this PlotStrategy
plotStrategy - the PlotStrategy to map to the given name
Returns:
PlotStrategy the previously mapped PlotStrategy, or null