uk.ac.starlink.ttools.plot2.geom
Class PlanePlotType

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.geom.PlanePlotType
All Implemented Interfaces:
PlotType

public class PlanePlotType
extends Object
implements PlotType

Defines the characteristics of a plot on a 2-dimensional plane.

This is a singleton class, see getInstance().

Since:
19 Feb 2013
Author:
Mark Taylor

Constructor Summary
PlanePlotType(Plotter[] plotters)
          Constructor.
 
Method Summary
static PlanePlotType getInstance()
          Returns the sole instance of this class.
 PaperTypeSelector getPaperTypeSelector()
          Returns an object which can provide graphics rendering functionality based on the required plot layers for this plot type.
 Plotter[] getPlotters()
          Returns a list of plotters that can be used to paint data on the surface.
 DataGeom[] getPointDataGeoms()
          Returns a list of one or more geometry variants which describe how user-supplied point coordinates map to the data space.
 SurfaceFactory getSurfaceFactory()
          Returns an object that can construct the plot surface including axis painting and geometry information.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlanePlotType

public PlanePlotType(Plotter[] plotters)
Constructor.

Parameters:
plotters - available plotters for use with this plot type
Method Detail

getPointDataGeoms

public DataGeom[] getPointDataGeoms()
Description copied from interface: PlotType
Returns a list of one or more geometry variants which describe how user-supplied point coordinates map to the data space. The geoms returned from this method will return true from their DataGeom.hasPosition() method. If multiple values are returned, the first one may be used as some kind of default.

Specified by:
getPointDataGeoms in interface PlotType
Returns:
data geom option list

getPlotters

public Plotter[] getPlotters()
Description copied from interface: PlotType
Returns a list of plotters that can be used to paint data on the surface.

Specified by:
getPlotters in interface PlotType
Returns:
plotter list

getSurfaceFactory

public SurfaceFactory getSurfaceFactory()
Description copied from interface: PlotType
Returns an object that can construct the plot surface including axis painting and geometry information.

Specified by:
getSurfaceFactory in interface PlotType
Returns:
surface factory

getPaperTypeSelector

public PaperTypeSelector getPaperTypeSelector()
Description copied from interface: PlotType
Returns an object which can provide graphics rendering functionality based on the required plot layers for this plot type.

Specified by:
getPaperTypeSelector in interface PlotType
Returns:
paper type selector

toString

public String toString()
Overrides:
toString in class Object

getInstance

public static PlanePlotType getInstance()
Returns the sole instance of this class.

Returns:
singleton instance


Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.