Class PlotSpec<P,A>

java.lang.Object
uk.ac.starlink.ttools.plot2.task.PlotSpec<P,A>

public class PlotSpec<P,A> extends Object
Specifies a plot in sufficient detail to recreate it as a STILTS command.
Since:
17 Jul 2017
Author:
Mark Taylor
  • Constructor Details

    • PlotSpec

      public PlotSpec(PlotType<P,A> plotType, Dimension extSize, Padding padding, ZoneSpec[] zoneSpecs, LayerSpec[] layerSpecs)
      Constructor.
      Parameters:
      plotType - plot type
      extSize - total size of output graphic, or null
      padding - padding within extSize, or null
      zoneSpecs - specifications for each plot zone; has at least one element
      layerSpecs - specifications for each plot layer
  • Method Details

    • getPlotType

      public PlotType<P,A> getPlotType()
      Returns the plot type supplied at construction time.
      Returns:
      plot type
    • getExtSize

      public 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