Enum GraphicsBase.EditMode

  • All Implemented Interfaces:
    Serializable, Comparable<GraphicsBase.EditMode>
    Enclosing class:
    GraphicsBase<R extends Row<?,​?,​?>>

    public static enum GraphicsBase.EditMode
    extends Enum<GraphicsBase.EditMode>
    An enumeration of possible editing states that the graphics view can be in. The state gets determined every time when a mouse move event gets received. Depending on the location of the mouse cursor different states are entered. This behaviour can be highly application-dependent. Some apps want the user to be able to change the start time of a timeline object when the mouse cursor is on the left edge of the object, other apps want to be able to change the objects percentage complete value that way.
    Since:
    1.0
    • Method Detail

      • values

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

        public static GraphicsBase.EditMode valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null