Class ZoneSpec.LegendSpec

java.lang.Object
uk.ac.starlink.ttools.plot2.task.ZoneSpec.LegendSpec
Enclosing class:
ZoneSpec

public static class ZoneSpec.LegendSpec extends Object
Specification for legend display options.
  • Constructor Details

    • LegendSpec

      public LegendSpec(boolean hasBorder, boolean isOpaque, float[] legPos)
      Constructor.
      Parameters:
      hasBorder - true if border is to be drawn
      isOpaque - true for opaque background
      legPos - 2-element x,y array for fractional internal legend position, null for external
  • Method Details

    • hasBorder

      public boolean hasBorder()
      Returns border flag.
      Returns:
      true for border, false for none
    • isOpaque

      public boolean isOpaque()
      Returns legend opacity.
      Returns:
      true for opaque legend, false for transparent
    • getPosition

      public float[] getPosition()
      Returns fractional legend position.
      Returns:
      2-element x,y array for fractional internal legend position, null for external