Package uk.ac.starlink.ttools.plot2.task
Class PlotSpec<P,A>
java.lang.Object
uk.ac.starlink.ttools.plot2.task.PlotSpec<P,A>
Specifies a plot in sufficient detail to recreate it as a STILTS
command.
- Since:
- 17 Jul 2017
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the external plot size supplied at construction time.Returns the layer specification array supplied at construction time.Returns the external padding supplied at construction time.Returns the plot type supplied at construction time.ZoneSpec[]
Returns the zone specification array supplied at construction time.
-
Constructor Details
-
PlotSpec
public PlotSpec(PlotType<P, A> plotType, Dimension extSize, Padding padding, ZoneSpec[] zoneSpecs, LayerSpec[] layerSpecs) Constructor.- Parameters:
plotType
- plot typeextSize
- total size of output graphic, or nullpadding
- padding within extSize, or nullzoneSpecs
- specifications for each plot zone; has at least one elementlayerSpecs
- specifications for each plot layer
-
-
Method Details
-
getPlotType
Returns the plot type supplied at construction time.- Returns:
- plot type
-
getExtSize
Returns the external plot size supplied at construction time.- Returns:
- total size of export graphic, or null
-
getPadding
Returns the external padding supplied at construction time.- Returns:
- padding within extSize, or null
-
getZoneSpecs
Returns the zone specification array supplied at construction time.- Returns:
- specifications for each plot zone; has at least one element
-
getLayerSpecs
Returns the layer specification array supplied at construction time.- Returns:
- specifications for each plot layer
-