com.tensegrity.graphics.interaction
Class InteractionConstants

java.lang.Object
  extended bycom.tensegrity.graphics.interaction.InteractionConstants

public class InteractionConstants
extends java.lang.Object

This class provides constants which are frequently used with the selection of objects. It also provides some functionalities used with this constants.

Version:
$Id: InteractionConstants.java,v 1.10 2006/02/01 10:31:29 MichaelKegel Exp $
Author:
MichaelKegel

Field Summary
static int ACT_MANIPULATED
          constant that tells about what effect an interaction had
static int ACT_MANIPULATED_LINEBEGIN
          constant that tells about what effect an interaction had
static int ACT_MANIPULATED_LINEEND
          constant that tells about what effect an interaction had
static int ACT_MOVED_MULTI
          constant that tells about what effect an interaction had
static int ACT_MOVED_SINGLE
          constant that tells about what effect an interaction had
static int ACT_NOTHING
          constant that tells about what effect an interaction had
static int ACT_SELECTED
          constant that tells about what effect an interaction had
static int BOUNDINGBOX_HOTSPOT
          constant that tells about the hotspot that should be used for mouse interactions
static int CURSOR_HOTSPOT
          constant that tells about the hotspot that should be used for mouse interactions
static int HITS_NOTHING
          constant that tells about what has been hit
static int HITS_SELECTED
          constant that tells about what has been hit
static int HITS_UNSELECTED
          constant that tells about what has been hit
static int ITEM_MOVE_RESTRICTION_HORIZONTAL
          constant that tells about a restriction for an interaction item
static int ITEM_MOVE_RESTRICTION_NON
          constant that tells about a restriction for an interaction item
static int ITEM_MOVE_RESTRICTION_VERTICAL
          constant that tells about a restriction for an interaction item
static int LINE_ACTIONMODE_BEGIN
           
static int LINE_ACTIONMODE_END
           
static int LINE_ACTIONMODE_UNKNOWN
           
static int MARKERALIGNMENT_CENTERED
           
static int MARKERALIGNMENT_INNER
           
static int MARKERALIGNMENT_OUTER
           
static int MOUSE_CLICKED
          constant that tells about what effect a mouse interaction had
static int MOUSE_DOWN
          constant that tells about what effect a mouse interaction had
static int MOUSE_ENTERED
          constant that tells about what effect a mouse interaction had
static int MOUSE_EXITED
          constant that tells about what effect a mouse interaction had
static int MOUSE_NOTHING
          constant that tells about what effect a mouse interaction had
static int MOUSE_UP
          constant that tells about what effect a mouse interaction had
static int POST_ACT_NOTHING
           
static int SELECT_KEEPS_SELECTION
          constant that tells about what effect a selection had
static int SELECT_NOTHING
          constant that tells about what effect a selection had
static int SELECT_SELECTED
          constant that tells about what effect a selection had
static int SELECT_UNSELECTED
          constant that tells about what effect a selection had
 
Method Summary
static java.lang.String action2String(int action)
          Converts the action constant given by action into a string representation.
static java.lang.String hit2String(int hit)
          Converts the hit constant given by hit into a string representation.
static int hotspot2Constant(java.lang.String hotspot)
          Converts the hotspot string representation given by hotspot into the corresponding constant.
static java.lang.String hotspot2String(int hotspot)
          Converts the hotspot constant given by hotspot into a string representation.
static int markeralignment2Constant(java.lang.String markeralignment)
          Converts the marker alignment string representation given by markeralignment into the corresponding constant.
static java.lang.String markeralignment2String(int markeralignment)
          Converts the marker alignment constant given by markeralignment into a string representation.
static java.lang.String postaction2String(int postaction)
          Converts the post action constant given by postaction into a string representation.
static java.lang.String selection2String(int selection)
          Converts the selection constant given by selection into a String represenation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEM_MOVE_RESTRICTION_NON

public static final int ITEM_MOVE_RESTRICTION_NON
constant that tells about a restriction for an interaction item

See Also:
Constant Field Values

ITEM_MOVE_RESTRICTION_VERTICAL

public static final int ITEM_MOVE_RESTRICTION_VERTICAL
constant that tells about a restriction for an interaction item

See Also:
Constant Field Values

ITEM_MOVE_RESTRICTION_HORIZONTAL

public static final int ITEM_MOVE_RESTRICTION_HORIZONTAL
constant that tells about a restriction for an interaction item

See Also:
Constant Field Values

MOUSE_NOTHING

public static final int MOUSE_NOTHING
constant that tells about what effect a mouse interaction had

See Also:
Constant Field Values

MOUSE_DOWN

public static final int MOUSE_DOWN
constant that tells about what effect a mouse interaction had

See Also:
Constant Field Values

MOUSE_UP

public static final int MOUSE_UP
constant that tells about what effect a mouse interaction had

See Also:
Constant Field Values

MOUSE_ENTERED

public static final int MOUSE_ENTERED
constant that tells about what effect a mouse interaction had

See Also:
Constant Field Values

MOUSE_EXITED

public static final int MOUSE_EXITED
constant that tells about what effect a mouse interaction had

See Also:
Constant Field Values

MOUSE_CLICKED

public static final int MOUSE_CLICKED
constant that tells about what effect a mouse interaction had

See Also:
Constant Field Values

CURSOR_HOTSPOT

public static final int CURSOR_HOTSPOT
constant that tells about the hotspot that should be used for mouse interactions

See Also:
Constant Field Values

BOUNDINGBOX_HOTSPOT

public static final int BOUNDINGBOX_HOTSPOT
constant that tells about the hotspot that should be used for mouse interactions

See Also:
Constant Field Values

ACT_NOTHING

public static final int ACT_NOTHING
constant that tells about what effect an interaction had

See Also:
Constant Field Values

ACT_SELECTED

public static final int ACT_SELECTED
constant that tells about what effect an interaction had

See Also:
Constant Field Values

ACT_MOVED_SINGLE

public static final int ACT_MOVED_SINGLE
constant that tells about what effect an interaction had

See Also:
Constant Field Values

ACT_MOVED_MULTI

public static final int ACT_MOVED_MULTI
constant that tells about what effect an interaction had

See Also:
Constant Field Values

ACT_MANIPULATED

public static final int ACT_MANIPULATED
constant that tells about what effect an interaction had

See Also:
Constant Field Values

ACT_MANIPULATED_LINEBEGIN

public static final int ACT_MANIPULATED_LINEBEGIN
constant that tells about what effect an interaction had

See Also:
Constant Field Values

ACT_MANIPULATED_LINEEND

public static final int ACT_MANIPULATED_LINEEND
constant that tells about what effect an interaction had

See Also:
Constant Field Values

POST_ACT_NOTHING

public static final int POST_ACT_NOTHING
See Also:
Constant Field Values

SELECT_NOTHING

public static final int SELECT_NOTHING
constant that tells about what effect a selection had

See Also:
Constant Field Values

SELECT_SELECTED

public static final int SELECT_SELECTED
constant that tells about what effect a selection had

See Also:
Constant Field Values

SELECT_UNSELECTED

public static final int SELECT_UNSELECTED
constant that tells about what effect a selection had

See Also:
Constant Field Values

SELECT_KEEPS_SELECTION

public static final int SELECT_KEEPS_SELECTION
constant that tells about what effect a selection had

See Also:
Constant Field Values

HITS_NOTHING

public static final int HITS_NOTHING
constant that tells about what has been hit

See Also:
Constant Field Values

HITS_SELECTED

public static final int HITS_SELECTED
constant that tells about what has been hit

See Also:
Constant Field Values

HITS_UNSELECTED

public static final int HITS_UNSELECTED
constant that tells about what has been hit

See Also:
Constant Field Values

MARKERALIGNMENT_CENTERED

public static final int MARKERALIGNMENT_CENTERED
See Also:
Constant Field Values

MARKERALIGNMENT_INNER

public static final int MARKERALIGNMENT_INNER
See Also:
Constant Field Values

MARKERALIGNMENT_OUTER

public static final int MARKERALIGNMENT_OUTER
See Also:
Constant Field Values

LINE_ACTIONMODE_UNKNOWN

public static final int LINE_ACTIONMODE_UNKNOWN
See Also:
Constant Field Values

LINE_ACTIONMODE_BEGIN

public static final int LINE_ACTIONMODE_BEGIN
See Also:
Constant Field Values

LINE_ACTIONMODE_END

public static final int LINE_ACTIONMODE_END
See Also:
Constant Field Values
Method Detail

markeralignment2String

public static final java.lang.String markeralignment2String(int markeralignment)
Converts the marker alignment constant given by markeralignment into a string representation.

Parameters:
markeralignment - marker alignment constant to convert
Returns:
String string representation for the given marker alignment constant

markeralignment2Constant

public static final int markeralignment2Constant(java.lang.String markeralignment)
Converts the marker alignment string representation given by markeralignment into the corresponding constant.

Parameters:
markeralignment - the string representation of a marker alignment to convert
Returns:
int the corresponding marker alignment constant

action2String

public static final java.lang.String action2String(int action)
Converts the action constant given by action into a string representation.

Parameters:
action - action constant to convert
Returns:
String string representation for the given action constant

postaction2String

public static final java.lang.String postaction2String(int postaction)
Converts the post action constant given by postaction into a string representation.

Parameters:
postaction - post action constant to convert
Returns:
String string representation for the given post action constant

selection2String

public static final java.lang.String selection2String(int selection)
Converts the selection constant given by selection into a String represenation.

Parameters:
selection - selection constant to convert
Returns:
String string representation for the given selection constant

hit2String

public static final java.lang.String hit2String(int hit)
Converts the hit constant given by hit into a string representation.

Parameters:
hit - the hit constant to convert
Returns:
String string representation of the given hit constant

hotspot2String

public static final java.lang.String hotspot2String(int hotspot)
Converts the hotspot constant given by hotspot into a string representation.
In case the given string representation can't be converted an InvalidArgumentException is thrown.

Parameters:
hotspot - the hotspot constant to convert
Returns:
String string representation of the given hotspot constant

hotspot2Constant

public static final int hotspot2Constant(java.lang.String hotspot)
Converts the hotspot string representation given by hotspot into the corresponding constant.
In case the given string representation can't be converted an InvalidArgumentException is thrown.

Parameters:
hotspot - the hotspot string representation to convert
Returns:
int the corresponding constant for the hotspot string representation


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.