Enum EntityColors

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EntityColors>

    public enum EntityColors
    extends java.lang.Enum<EntityColors>
    • Method Detail

      • values

        public static EntityColors[] 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 (EntityColors c : EntityColors.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EntityColors 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
      • getFromObject

        public static EntityColors getFromObject​(java.lang.Object object)
      • getBorderColor

        public java.awt.Color getBorderColor()
      • getFillerColor

        public java.awt.Color getFillerColor()
      • colorWithAlpha

        protected java.awt.Color colorWithAlpha​(java.awt.Color color,
                                                int alpha)
      • constrainValue

        protected int constrainValue​(int value)