com.change_vision.jude.api.inf.presentation
Class PresentationPropertyUtil

com.change_vision.jude.api.inf.presentation.PresentationPropertyUtil

public class PresentationPropertyUtil

This is a utility class for creating the property-related keys for Presentations.


Method Summary
static String createGuardXKey(int index)
          Create a key to acquire and set X coordinate of guard condition at index in CombinedFragments.
static String createGuardYKey(int index)
          Create a key to acquire and set Y coordinate of guard condition at index in CombinedFragments.
static String createOperandLengthKey(int index)
          Create a key to acquire and set the length of Operands at index in CombinedFragments.
static String createStereotypeXKey(int index)
          Create a key to acquire and set X coordinate of stereotype at index of Associations.
static String createStereotypeYKey(int index)
          Create a key to acquire and set Y coordinate of stereotype at index of Associations.
static String formatKeyWithIndex(String keyFormat, int index)
          MessageFormat.format(keyFormat, String.valueOf(index));
Replace index of the key.
 

Method Detail

createGuardXKey

public static String createGuardXKey(int index)
Create a key to acquire and set X coordinate of guard condition at index in CombinedFragments.

Parameters:
index -
Returns:
key

createGuardYKey

public static String createGuardYKey(int index)
Create a key to acquire and set Y coordinate of guard condition at index in CombinedFragments.

Parameters:
index -
Returns:
key

createOperandLengthKey

public static String createOperandLengthKey(int index)
Create a key to acquire and set the length of Operands at index in CombinedFragments.

Parameters:
index -
Returns:
key

createStereotypeXKey

public static String createStereotypeXKey(int index)
Create a key to acquire and set X coordinate of stereotype at index of Associations.

Parameters:
index -
Returns:
key

createStereotypeYKey

public static String createStereotypeYKey(int index)
Create a key to acquire and set Y coordinate of stereotype at index of Associations.

Parameters:
index -
Returns:
key

formatKeyWithIndex

public static String formatKeyWithIndex(String keyFormat,
                                        int index)
MessageFormat.format(keyFormat, String.valueOf(index));
Replace index of the key. This method is same as the following.
MessageFormat.format(keyFormat, String.valueOf(index));

Parameters:
keyFormat -
index -
Returns:
key