Enum ShapeTypes



  • public enum ShapeTypes
    extends java.lang.Enum<ShapeTypes>
    Shape type enum
    • Method Detail

      • values

        public static ShapeTypes[] values​()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ShapeTypes c : ShapeTypes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ShapeTypes valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue​()
        Get value
        Returns:
        Value
      • valueOf

        public static ShapeTypes valueOf​(int ordinal)
        Get value from ordinal
        Parameters:
        ordinal - Ordinal
        Returns:
        ShapeTypes value
      • isPoint

        public boolean isPoint​()
        If is point
        Returns:
        Boolean
      • isLine

        public boolean isLine​()
        If is line
        Returns:
        Boolean
      • isPolygon

        public boolean isPolygon​()
        If is polygon
        Returns:
        Boolean
      • isSameLegendType

        public boolean isSameLegendType​(ShapeTypes st)
        Check if this shape type has same legend type with other shape type
        Parameters:
        st - Other shape type
        Returns:
        Boolean