Annotation Type CoordOverlayBinding


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface CoordOverlayBinding
    An annotation for drawing coord overlays.

    Currently, only Coord[], Coord, Area, or any Iterable type with Coord or Area is supported

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String color
      Defines the color used when rendering this overlay element.
      boolean debug  
      int precision
      The precision parameter is passed directly to CoordView.getPolygon(int), which controls how each tile is subdivided: granularity = 1 → full tile polygon granularity = 2 → 2x2 granularity = 4 → 4x4 granularity = 8 … etc. A higher granularity produces smaller, more precise screen-space quads inside each tile.
      • debug

        boolean debug
        Default:
        false
      • precision

        int precision
        The precision parameter is passed directly to CoordView.getPolygon(int), which controls how each tile is subdivided:
        • granularity = 1 → full tile polygon
        • granularity = 2 → 2x2
        • granularity = 4 → 4x4
        • granularity = 8 … etc.
        A higher granularity produces smaller, more precise screen-space quads inside each tile.
        Returns:
        the subdivision factor applied to each tile when projected to screen; 1 = full tile, higher values subdivide tiles into smaller visual regions. For areas, 0 indicates to only outline the area
        Default:
        1
      • color

        String color
        Defines the color used when rendering this overlay element.

        Because annotations cannot store arbitrary Color objects, the color is encoded as an ARGB hexadecimal string:

           "#AARRGGBB"
         

        where:

        • AA – alpha (00 = fully transparent, FF = fully opaque)
        • RR – red component
        • GG – green component
        • BB – blue component

        Examples:

        • "#FFFFFFFF" – opaque white
        • "#80FF0000" – 50% transparent red
        • "#00000000" – fully transparent black

        The ARGB string can be decoded using Integer.parseInt(..., 16) or converted into a Color via:

           new Color(Integer.parseUnsignedInt(hex.substring(1), 16), true)
         
        Returns:
        the ARGB-encoded color string; defaults to opaque white ("#FFFFFFFF")
        Default:
        "#FFFFFFFF"