Class LabelUtil
java.lang.Object
com.inductiveautomation.ignition.designer.util.LabelUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
collapseEnd
(String text, FontMetrics metrics, int availableWidth) static String
collapseFront
(String text, FontMetrics metrics, int availableWidth) static String
collapseMiddle
(String text, FontMetrics metrics, int availableWidth)
-
Method Details
-
collapseFront
- Returns:
text
, shortened with "..." in the front if the available width is exceeded using the given metrics.
-
collapseMiddle
- Returns:
text
, shortened with "..." in the middle if the available width is exceeded using the given metrics.
-
collapseEnd
- Returns:
text
, shortened with "..." at the end if the available width is exceeded using the given metrics.
-