Enum PenAttribute

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

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

      • values

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

        public static PenAttribute 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
      • getDefault

        public java.lang.Object getDefault()
      • getType

        public java.lang.Class getType()
      • getName

        public java.lang.String getName()
      • getPenTypes

        public java.util.Set<PenType> getPenTypes()
      • getObject

        public java.lang.Object getObject​(int row,
                                          Dataset ds)
        Looks up this attribute in the dataset at the given row, coercing the value found there to this attribute's natural type
      • getInt

        public java.lang.Integer getInt​(int row,
                                        Dataset ds)
      • getString

        public java.lang.String getString​(int row,
                                          Dataset ds)
      • getFloat

        public float getFloat​(int row,
                              Dataset ds)
      • getBoolean

        public boolean getBoolean​(int row,
                                  Dataset ds)
      • getColor

        public java.awt.Color getColor​(int row,
                                       Dataset ds)