com.tensegrity.graphics.interaction
Class InteractionConfiguration

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

public final class InteractionConfiguration
extends java.lang.Object

The InteractionConfiguration class holds the information that configures the interaction environment of the graphics API.
NOTICE:Currently this information is stored globally (means the interaction environment is actually configurable within the scope of a java runtime environment) but this will be changed in a former release of the graphics API such that this information is stored application wide.

Version:
$Id: InteractionConfiguration.java,v 1.7 2005/09/26 08:45:35 MichaelKegel Exp $
Author:
MKegel

Method Summary
static java.lang.Object get(java.lang.String name)
           
static int getSelectionMarkerAlignment()
          Returns a constant that defines the current alignment for the selection markers.
static int getSelectionMarkerBorder()
          Returns the current border color that is used to draw a selection marker.
static int getSelectionMarkerColor()
          Returns the current color that is used to draw a selection marker.
static int getSelectionMarkerSize()
          Returns half of the current size for a selection marker.
static void put(java.lang.String name, java.lang.Object value)
           
static java.lang.Object remove(java.lang.String name)
           
static void setSelectionMarkerAlignment(int alignment)
          Sets the alignment for the selection markers to the constant given by alignment.
static void setSelectionMarkerBorder(int color)
          Sets the border color that is used to draw a selection marker to the color given by color.
static void setSelectionMarkerColor(int color)
          Sets the color that is used to draw a selection marker to the color given by color.
static void setSelectionMarkerSize(int size)
          Sets the size for a selection marker to the value given by size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSelectionMarkerSize

public static final int getSelectionMarkerSize()
Returns half of the current size for a selection marker.
NOTICE:The size is given in pixels.

Returns:
int half of the currently size for a selection marker

setSelectionMarkerSize

public static final void setSelectionMarkerSize(int size)
Sets the size for a selection marker to the value given by size. The given value makes up half of the size for a selection marker. This is because the full size of a selection marker must be even.
NOTICE:The size should be given in pixels.

Parameters:
size - the new value for half the size of a selection marker

getSelectionMarkerAlignment

public static final int getSelectionMarkerAlignment()
Returns a constant that defines the current alignment for the selection markers.

Returns:
int the current alignment for the selection markers

setSelectionMarkerAlignment

public static final void setSelectionMarkerAlignment(int alignment)
Sets the alignment for the selection markers to the constant given by alignment.

Parameters:
alignment - the new value for the alignment of the selection markers

getSelectionMarkerColor

public static final int getSelectionMarkerColor()
Returns the current color that is used to draw a selection marker.

Returns:
int the color that is currently used to draw a selection marker

setSelectionMarkerColor

public static final void setSelectionMarkerColor(int color)
Sets the color that is used to draw a selection marker to the color given by color.
NOTICE:Alpha values of the given color are ignored. Means a selection marker cannot be transparent.

Parameters:
color - the new color that should be used to draw a selection marker

getSelectionMarkerBorder

public static final int getSelectionMarkerBorder()
Returns the current border color that is used to draw a selection marker.

Returns:
int the border color that is currently used to draw a selection marker

setSelectionMarkerBorder

public static final void setSelectionMarkerBorder(int color)
Sets the border color that is used to draw a selection marker to the color given by color.
NOTICE:Alpha values of the given color are ignored. Means a selection marker cannot be transparent.

Parameters:
color - the new border color that should be used to draw a selection marker

put

public static final void put(java.lang.String name,
                             java.lang.Object value)

get

public static final java.lang.Object get(java.lang.String name)

remove

public static final java.lang.Object remove(java.lang.String name)


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