Class PlotSpec<P,​A>


  • public class PlotSpec<P,​A>
    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<P,​A> getPlotType()
      Returns the plot type supplied at construction time.
      ZoneSpec[] getZoneSpecs()
      Returns the zone specification array supplied at construction time.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlotSpec

        public PlotSpec​(PlotType<P,​A> plotType,
                        java.awt.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 Detail

      • getPlotType

        public PlotType<P,​A> 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