Class MapElementConstants


  • public final class MapElementConstants
    extends Object
    Set of global constants for map elements.

    * The constants may be changed according to user preferences.

    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:53
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.gis
    Maven Artifact Id:
    giscore
    • Field Detail

      • POINT_FUSION_DISTANCE

        public static final double POINT_FUSION_DISTANCE
        Distance for considering two points as at same location.
        See Also:
        Constant Field Values
      • POINT_FUSION_SQUARED_DISTANCE

        public static final double POINT_FUSION_SQUARED_DISTANCE
        Squared distance for considering two points as at same location.
        See Also:
        Constant Field Values
      • DEFAULT_RADIUS

        public static final double DEFAULT_RADIUS
        Default radius of a map circle.
        See Also:
        Constant Field Values
      • DEFAULT_COLOR

        public static final int DEFAULT_COLOR
        Default color of a map elements.
    • Method Detail

      • getPreferredRadius

        @Pure
        public static double getPreferredRadius()
        Replies the default radius for map elements.
        Returns:
        the default radius for map elements.
      • setPreferredRadius

        public static void setPreferredRadius​(double radius)
        Set the default radius for map elements.
        Parameters:
        radius - is the default radius for map elements.
      • getPreferredColor

        @Pure
        public static int getPreferredColor()
        Replies the default color for map elements.
        Returns:
        the default color for map elements.
      • setPreferredColor

        public static void setPreferredColor​(int color)
        Set the default color for map elements.
        Parameters:
        color - is the default color for map elements.