Enum CursorType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CursorType>, org.eclipse.emf.common.util.Enumerator

    public enum CursorType
    extends java.lang.Enum<CursorType>
    implements org.eclipse.emf.common.util.Enumerator
    A representation of the literals of the enumeration 'Cursor Type', and utility methods for working with them. The cursor type defines standard cursor types which are supported by all devices, including SWT, Swing, SVG and HTML/Image.
    See Also:
    AttributePackage.getCursorType()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      The 'Auto' literal object.
      CROSSHAIR
      The 'Crosshair' literal object.
      CUSTOM
      The 'Custom' literal object.
      DEFAULT
      The 'Default' literal object.
      ERESIZE
      The 'EResize' literal object.
      MOVE
      The 'Move' literal object.
      NE_RESIZE
      The 'NE Resize' literal object.
      NRESIZE
      The 'NResize' literal object.
      NW_RESIZE
      The 'NW Resize' literal object.
      POINTER
      The 'Pointer' literal object.
      SE_RESIZE
      The 'SE Resize' literal object.
      SRESIZE
      The 'SResize' literal object.
      SW_RESIZE
      The 'SW Resize' literal object.
      TEXT
      The 'Text' literal object.
      WAIT
      The 'Wait' literal object.
      WRESIZE
      The 'WResize' literal object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CursorType get​(int value)
      Returns the 'Cursor Type' literal with the specified integer value.
      static CursorType get​(java.lang.String literal)
      Returns the 'Cursor Type' literal with the specified literal value.
      static CursorType getByName​(java.lang.String name)
      Returns the 'Cursor Type' literal with the specified name.
      java.lang.String getLiteral()
      java.lang.String getName()
      int getValue()
      java.lang.String toString()
      Returns the literal value of the enumerator, which is its string representation.
      static CursorType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CursorType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

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

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • AUTO_VALUE

        public static final int AUTO_VALUE
        The 'Auto' literal value.

        If the meaning of 'Auto' literal object isn't clear, there really should be more of a description here...

        See Also:
        AUTO, Constant Field Values
      • CROSSHAIR_VALUE

        public static final int CROSSHAIR_VALUE
        The 'Crosshair' literal value.

        If the meaning of 'Crosshair' literal object isn't clear, there really should be more of a description here...

        See Also:
        CROSSHAIR, Constant Field Values
      • DEFAULT_VALUE

        public static final int DEFAULT_VALUE
        The 'Default' literal value.

        If the meaning of 'Default' literal object isn't clear, there really should be more of a description here...

        See Also:
        DEFAULT, Constant Field Values
      • POINTER_VALUE

        public static final int POINTER_VALUE
        The 'Pointer' literal value.

        If the meaning of 'Pointer' literal object isn't clear, there really should be more of a description here...

        See Also:
        POINTER, Constant Field Values
      • MOVE_VALUE

        public static final int MOVE_VALUE
        The 'Move' literal value.

        If the meaning of 'Move' literal object isn't clear, there really should be more of a description here...

        See Also:
        MOVE, Constant Field Values
      • TEXT_VALUE

        public static final int TEXT_VALUE
        The 'Text' literal value.

        If the meaning of 'Text' literal object isn't clear, there really should be more of a description here...

        See Also:
        TEXT, Constant Field Values
      • WAIT_VALUE

        public static final int WAIT_VALUE
        The 'Wait' literal value.

        If the meaning of 'Wait' literal object isn't clear, there really should be more of a description here...

        See Also:
        WAIT, Constant Field Values
      • ERESIZE_VALUE

        public static final int ERESIZE_VALUE
        The 'EResize' literal value.

        If the meaning of 'EResize' literal object isn't clear, there really should be more of a description here...

        See Also:
        ERESIZE, Constant Field Values
      • NE_RESIZE_VALUE

        public static final int NE_RESIZE_VALUE
        The 'NE Resize' literal value.

        If the meaning of 'NE Resize' literal object isn't clear, there really should be more of a description here...

        See Also:
        NE_RESIZE, Constant Field Values
      • NW_RESIZE_VALUE

        public static final int NW_RESIZE_VALUE
        The 'NW Resize' literal value.

        If the meaning of 'NW Resize' literal object isn't clear, there really should be more of a description here...

        See Also:
        NW_RESIZE, Constant Field Values
      • NRESIZE_VALUE

        public static final int NRESIZE_VALUE
        The 'NResize' literal value.

        If the meaning of 'NResize' literal object isn't clear, there really should be more of a description here...

        See Also:
        NRESIZE, Constant Field Values
      • SE_RESIZE_VALUE

        public static final int SE_RESIZE_VALUE
        The 'SE Resize' literal value.

        If the meaning of 'SE Resize' literal object isn't clear, there really should be more of a description here...

        See Also:
        SE_RESIZE, Constant Field Values
      • SW_RESIZE_VALUE

        public static final int SW_RESIZE_VALUE
        The 'SW Resize' literal value.

        If the meaning of 'SW Resize' literal object isn't clear, there really should be more of a description here...

        See Also:
        SW_RESIZE, Constant Field Values
      • SRESIZE_VALUE

        public static final int SRESIZE_VALUE
        The 'SResize' literal value.

        If the meaning of 'SResize' literal object isn't clear, there really should be more of a description here...

        See Also:
        SRESIZE, Constant Field Values
      • WRESIZE_VALUE

        public static final int WRESIZE_VALUE
        The 'WResize' literal value.

        If the meaning of 'WResize' literal object isn't clear, there really should be more of a description here...

        See Also:
        WRESIZE, Constant Field Values
      • CUSTOM_VALUE

        public static final int CUSTOM_VALUE
        The 'Custom' literal value.

        If the meaning of 'Custom' literal object isn't clear, there really should be more of a description here...

        See Also:
        CUSTOM, Constant Field Values
      • VALUES

        public static final java.util.List<CursorType> VALUES
        A public read-only list of all the 'Cursor Type' enumerators.
    • Method Detail

      • values

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

        public static CursorType 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
      • get

        public static CursorType get​(java.lang.String literal)
        Returns the 'Cursor Type' literal with the specified literal value.
      • getByName

        public static CursorType getByName​(java.lang.String name)
        Returns the 'Cursor Type' literal with the specified name.
      • get

        public static CursorType get​(int value)
        Returns the 'Cursor Type' literal with the specified integer value.
      • getValue

        public int getValue()
        Specified by:
        getValue in interface org.eclipse.emf.common.util.Enumerator
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.eclipse.emf.common.util.Enumerator
      • getLiteral

        public java.lang.String getLiteral()
        Specified by:
        getLiteral in interface org.eclipse.emf.common.util.Enumerator
      • toString

        public java.lang.String toString()
        Returns the literal value of the enumerator, which is its string representation.
        Overrides:
        toString in class java.lang.Enum<CursorType>