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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PLOT_STRATEGY
public static final java.lang.String DEFAULT_PLOT_STRATEGY
- name of the default PlotStrategy.
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.
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 PlotStrategyplotStrategy
- the PlotStrategy to map to the given name- Returns:
- PlotStrategy the previously mapped PlotStrategy, or null