org.netbeans.api.visual 2.23.1

org.netbeans.api.visual.action
Enum ContiguousSelectEvent.SelectionType

java.lang.Object
  extended by java.lang.Enum<ContiguousSelectEvent.SelectionType>
      extended by org.netbeans.api.visual.action.ContiguousSelectEvent.SelectionType
All Implemented Interfaces:
Serializable, Comparable<ContiguousSelectEvent.SelectionType>
Enclosing class:
ContiguousSelectEvent

public static enum ContiguousSelectEvent.SelectionType
extends Enum<ContiguousSelectEvent.SelectionType>

Defines a type of a selection.


Enum Constant Summary
ADDITIVE_CONTIGUOUS
          Represents an additive selection where the new selection should be added to the current selection.
ADDITIVE_NON_CONTIGUOUS
          Represents an additive selection where the new selection should be added to the current selection.
REPLACE_CONTIGUOUS
          Represents a normal selection that replace the previous selection.
REPLACE_NON_CONTIGUOUS
          Represents a normal selection that replace the previous selection.
 
Method Summary
static ContiguousSelectEvent.SelectionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContiguousSelectEvent.SelectionType[] 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

REPLACE_NON_CONTIGUOUS

public static final ContiguousSelectEvent.SelectionType REPLACE_NON_CONTIGUOUS
Represents a normal selection that replace the previous selection. Usually invokes without any key-modifier.


REPLACE_CONTIGUOUS

public static final ContiguousSelectEvent.SelectionType REPLACE_CONTIGUOUS
Represents a normal selection that replace the previous selection. All objects that are between previously and current choosen spots defines the current selection. Usually invokes with Shift key-modifier.


ADDITIVE_NON_CONTIGUOUS

public static final ContiguousSelectEvent.SelectionType ADDITIVE_NON_CONTIGUOUS
Represents an additive selection where the new selection should be added to the current selection. Usually invokes with Ctrl key-modifier.


ADDITIVE_CONTIGUOUS

public static final ContiguousSelectEvent.SelectionType ADDITIVE_CONTIGUOUS
Represents an additive selection where the new selection should be added to the current selection. All objects that are between previously and current choosen spots defines the current selection. Usually invokes with Ctrl and Shift key-modifiers.

Method Detail

values

public static ContiguousSelectEvent.SelectionType[] 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 (ContiguousSelectEvent.SelectionType c : ContiguousSelectEvent.SelectionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContiguousSelectEvent.SelectionType 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

org.netbeans.api.visual 2.23.1

Built on April 28 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.