java.lang.Object
com.inductiveautomation.ignition.designer.util.LabelUtil

public class LabelUtil extends Object
  • Method Details

    • collapseFront

      public static String collapseFront(String text, FontMetrics metrics, int availableWidth)
      Returns:
      text, shortened with "..." in the front if the available width is exceeded using the given metrics.
    • collapseMiddle

      public static String collapseMiddle(String text, FontMetrics metrics, int availableWidth)
      Returns:
      text, shortened with "..." in the middle if the available width is exceeded using the given metrics.
    • collapseEnd

      public static String collapseEnd(String text, FontMetrics metrics, int availableWidth)
      Returns:
      text, shortened with "..." at the end if the available width is exceeded using the given metrics.