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 get or set the X coordinate of a guard condition in a CombinedFragment.
static String createGuardYKey(int index)
          Create a key to get or set the Y coordinate of a guard condition in a CombinedFragment.
static String createOperandLengthKey(int index)
          Create a key to get or set the length of an Operand in a CombinedFragment.
static String createStereotypeXKey(int index)
          Create a key to get or set the X coordinate of a stereotype in an Association.
static String createStereotypeYKey(int index)
          Create a key to get or set the Y coordinate of a stereotype in an Association.
static String formatKeyWithIndex(String keyFormat, int index)
          Replace an index of a key.
 

Method Detail

createGuardXKey

public static String createGuardXKey(int index)
Create a key to get or set the X coordinate of a guard condition in a CombinedFragment.

Parameters:
index - index of a guard condition
Returns:
Key to get or set the X coordinate of a guard condition

createGuardYKey

public static String createGuardYKey(int index)
Create a key to get or set the Y coordinate of a guard condition in a CombinedFragment.

Parameters:
index - index of a guard condition
Returns:
Key to get or set the Y coordinate of a guard condition

createOperandLengthKey

public static String createOperandLengthKey(int index)
Create a key to get or set the length of an Operand in a CombinedFragment.

Parameters:
index - index of an Operand
Returns:
Key to get or set the length of an Operand in a combinedFragment

createStereotypeXKey

public static String createStereotypeXKey(int index)
Create a key to get or set the X coordinate of a stereotype in an Association.

Parameters:
index - index of a stereotype
Returns:
Key to get or set the X coordinate of a stereotype in an association

createStereotypeYKey

public static String createStereotypeYKey(int index)
Create a key to get or set the Y coordinate of a stereotype in an Association.

Parameters:
index - index of a stereotype
Returns:
Key to get or set the Y coordinate of a stereotype in an association

formatKeyWithIndex

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

Parameters:
keyFormat - key format
index - index number
Returns:
Formatted key