Package uk.ac.starlink.ttools.plot2.task
Class PlotSpec
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.task.PlotSpec
-
public class PlotSpec extends java.lang.Object
Specifies a plot in sufficient detail to recreate it as a STILTS command.- Since:
- 17 Jul 2017
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Dimension
getExtSize()
Returns the external plot size supplied at construction time.LayerSpec[]
getLayerSpecs()
Returns the layer specification array supplied at construction time.Padding
getPadding()
Returns the external padding supplied at construction time.PlotType
getPlotType()
Returns the plot type supplied at construction time.ZoneSpec[]
getZoneSpecs()
Returns the zone specification array supplied at construction time.
-
-
-
Constructor Detail
-
PlotSpec
public PlotSpec(PlotType plotType, java.awt.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 Detail
-
getPlotType
public PlotType getPlotType()
Returns the plot type supplied at construction time.- Returns:
- plot type
-
getExtSize
public java.awt.Dimension getExtSize()
Returns the external plot size supplied at construction time.- Returns:
- total size of export graphic, or null
-
getPadding
public Padding getPadding()
Returns the external padding supplied at construction time.- Returns:
- padding within extSize, or null
-
getZoneSpecs
public ZoneSpec[] getZoneSpecs()
Returns the zone specification array supplied at construction time.- Returns:
- specifications for each plot zone; has at least one element
-
getLayerSpecs
public LayerSpec[] getLayerSpecs()
Returns the layer specification array supplied at construction time.- Returns:
- specifications for each plot layer
-
-