com.aspose.barcode

Enum CodeLocation

  • java.lang.Object
    • java.lang.Enum<CodeLocation>
      • com.aspose.barcode.CodeLocation
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CodeLocation>


    public enum CodeLocation
    extends java.lang.Enum<CodeLocation>

    Specifies the location of the code text shown in the image.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      Above
      Specifies that the code text is shown on the top of the bar code.
      Below
      Specifies that the code text is shown on the bottom of the bar code.
      None
      Specifies that the code text is hidden.
      Right
      Specifies that the code text is shown on the right of the bar code.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String getCodeLocationName(int codeLocation)
      Deprecated. 
      static int getCodeLocationValue(java.lang.String codeLocation)
      Deprecated. 
      int getValue() 
      static CodeLocation valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CodeLocation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Above

        public static final CodeLocation Above

        Specifies that the code text is shown on the top of the bar code.

      • Below

        public static final CodeLocation Below

        Specifies that the code text is shown on the bottom of the bar code.

      • None

        public static final CodeLocation None

        Specifies that the code text is hidden.

      • Right

        public static final CodeLocation Right

        Specifies that the code text is shown on the right of the bar code.

    • Method Detail

      • values

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

        public static CodeLocation 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()
      • getCodeLocationName

        @Deprecated
        public static java.lang.String getCodeLocationName(int codeLocation)
        Deprecated. 
      • getCodeLocationValue

        @Deprecated
        public static int getCodeLocationValue(java.lang.String codeLocation)
        Deprecated.