Package uk.ac.starlink.ttools.plot2.geom
Class PlanePlotType
java.lang.Object
uk.ac.starlink.ttools.plot2.geom.PlanePlotType
- All Implemented Interfaces:
PlotType<PlaneSurfaceFactory.Profile,
PlaneAspect>
public class PlanePlotType
extends Object
implements PlotType<PlaneSurfaceFactory.Profile,PlaneAspect>
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlanePlotType
Returns the sole instance of this class.Returns an object which can provide graphics rendering functionality based on the required plot layers for this plot type.Plotter<?>[]
Returns a list of plotters that can be used to paint data on the surface.DataGeom[]
Returns a list of one or more geometry variants which describe how user-supplied point coordinates map to the data space.Returns an object that can construct the plot surface including axis painting and geometry information.toString()
-
Constructor Details
-
PlanePlotType
Constructor.- Parameters:
plotters
- available plotters for use with this plot typehas2dMetric
- true if it may make sense to measure distances that are not parallel to either axis
-
-
Method Details
-
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. If multiple values are returned, the first one may be used as some kind of default.- Specified by:
getPointDataGeoms
in interfacePlotType<PlaneSurfaceFactory.Profile,
PlaneAspect> - Returns:
- data geom option list
-
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 interfacePlotType<PlaneSurfaceFactory.Profile,
PlaneAspect> - Returns:
- plotter list
-
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 interfacePlotType<PlaneSurfaceFactory.Profile,
PlaneAspect> - Returns:
- surface factory
-
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 interfacePlotType<PlaneSurfaceFactory.Profile,
PlaneAspect> - Returns:
- paper type selector
-
toString
-
getInstance
Returns the sole instance of this class.- Returns:
- singleton instance
-