com.tensegrity.graphics
Class GraphicConstantsTextConversions

java.lang.Object
  extended bycom.tensegrity.graphics.GraphicConstantsTextConversions

public class GraphicConstantsTextConversions
extends java.lang.Object

The GraphicConstantsTextConversions class provides a set of methods that convert a constant defined in GraphicConstants into its String representation and vice versa.

Version:
$Id: GraphicConstantsTextConversions.java,v 1.8 2004/02/11 08:45:57 MichaelKegel Exp $
Author:
MichaelKegel

Field Summary
static int ATTNAME_MARGINBOTTOM
          constant that tells about a name of a margin attribute name
static int ATTNAME_MARGINLEFT
          constant that tells about a name of a margin attribute name
static int ATTNAME_MARGINRIGHT
          constant that tells about a name of a margin attribute name
static int ATTNAME_MARGINTOP
          constant that tells about a name of a margin attribute name
 
Method Summary
static int cursor2Constant(java.lang.String cursor)
          Converts the String representation of one of the cursor constants given by cursor into the cooresponding cursor constant.
static java.lang.String cursor2String(int cursor)
          Converts the cursor constant given by cursor into the corresponding String representation.
static java.lang.String getMarginAttributeName(int type)
          Returns the name for a margin attribute that is specified through the identifier given by type.
static int orientation2Constant(java.lang.String orientation)
          Converts the String representation of one of the orientation constants given by orientation into the cooresponding orientation constant.
static java.lang.String orientation2String(int orientation)
          Converts the orientation constant given by orientation into the corresponding String representation.
static int side2Constant(java.lang.String side)
          Converts the String representation of one of the side constants given by side into the cooresponding side constant.
static java.lang.String side2String(int side)
          Converts the side constant given by side into the corresponding String representation.
static java.lang.String sideToString(int side)
          Converts the given side identifier into String form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTNAME_MARGINLEFT

public static final int ATTNAME_MARGINLEFT
constant that tells about a name of a margin attribute name

See Also:
Constant Field Values

ATTNAME_MARGINRIGHT

public static final int ATTNAME_MARGINRIGHT
constant that tells about a name of a margin attribute name

See Also:
Constant Field Values

ATTNAME_MARGINTOP

public static final int ATTNAME_MARGINTOP
constant that tells about a name of a margin attribute name

See Also:
Constant Field Values

ATTNAME_MARGINBOTTOM

public static final int ATTNAME_MARGINBOTTOM
constant that tells about a name of a margin attribute name

See Also:
Constant Field Values
Method Detail

side2String

public static final java.lang.String side2String(int side)
Converts the side constant given by side into the corresponding String representation.

Parameters:
side - constant to convert into the corresponding String representation
Returns:
String the String representation of the side constant

side2Constant

public static final int side2Constant(java.lang.String side)
Converts the String representation of one of the side constants given by side into the cooresponding side constant.

Parameters:
side - the String representation of one of the side constants
Returns:
int constant that defines one of the side types

sideToString

public static final java.lang.String sideToString(int side)
Converts the given side identifier into String form.

Parameters:
side - the side identifier to convert
Returns:
String the side identifier in String form

cursor2String

public static final java.lang.String cursor2String(int cursor)
Converts the cursor constant given by cursor into the corresponding String representation.

Parameters:
cursor - constant to convert into the corresponding String representation
Returns:
String the String representation of the cursor constant

cursor2Constant

public static final int cursor2Constant(java.lang.String cursor)
Converts the String representation of one of the cursor constants given by cursor into the cooresponding cursor constant.

Parameters:
cursor - the String representation of one of the cursor constants
Returns:
int constant that defines one of the cursor types

orientation2String

public static final java.lang.String orientation2String(int orientation)
Converts the orientation constant given by orientation into the corresponding String representation.

Parameters:
orientation - constant to convert into the corresponding String representation
Returns:
String the String representation of the horizontal alignment constant

orientation2Constant

public static final int orientation2Constant(java.lang.String orientation)
Converts the String representation of one of the orientation constants given by orientation into the cooresponding orientation constant.

Parameters:
orientation - the String representation of one of the orientation constants
Returns:
int constant that defines one of the orientation types

getMarginAttributeName

public static final java.lang.String getMarginAttributeName(int type)
Returns the name for a margin attribute that is specified through the identifier given by type.

Parameters:
type - identifier for the margin attribute name to return
Returns:
String name for the margin attribute


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