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
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcolorDefines the color used when rendering this overlay element.booleandebugintprecisionTheprecisionparameter is passed directly toCoordView.getPolygon(int), which controls how each tile is subdivided:granularity = 1→ full tile polygongranularity = 2→ 2x2granularity = 4→ 4x4granularity = 8… etc. A higher granularity produces smaller, more precise screen-space quads inside each tile.
-
-
-
Element Detail
-
value
String value
-
-
-
precision
int precision
Theprecisionparameter is passed directly toCoordView.getPolygon(int), which controls how each tile is subdivided:granularity = 1→ full tile polygongranularity = 2→ 2x2granularity = 4→ 4x4granularity = 8… etc.
- 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
Colorobjects, 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 aColorvia:new Color(Integer.parseUnsignedInt(hex.substring(1), 16), true)
- Returns:
- the ARGB-encoded color string; defaults to opaque white (
"#FFFFFFFF")
- Default:
- "#FFFFFFFF"
-
-