Class ZoneSpec.LegendSpec

  • Enclosing class:
    ZoneSpec

    public static class ZoneSpec.LegendSpec
    extends java.lang.Object
    Specification for legend display options.
    • Constructor Summary

      Constructors 
      Constructor Description
      LegendSpec​(boolean hasBorder, boolean isOpaque, float[] legPos)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float[] getPosition()
      Returns fractional legend position.
      boolean hasBorder()
      Returns border flag.
      boolean isOpaque()
      Returns legend opacity.
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • 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