Class PresentationPropertyUtil

java.lang.Object
com.change_vision.jude.api.inf.presentation.PresentationPropertyUtil

public class PresentationPropertyUtil extends Object
This is a utility class for creating the property-related keys for Presentations.
Since:
6.8.0
  • Constructor Details

    • PresentationPropertyUtil

      public PresentationPropertyUtil()
  • Method Details

    • 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
      Since:
      6.8.0
    • 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
      Since:
      6.8.0
    • 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
      Since:
      6.8.0
    • 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
      Since:
      6.8.0
    • 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
      Since:
      6.8.0
    • 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
      Since:
      6.8.0