Class LabelUtil
java.lang.Object
com.inductiveautomation.ignition.designer.util.LabelUtil
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringcollapseEnd(String text, FontMetrics metrics, int availableWidth) static StringcollapseFront(String text, FontMetrics metrics, int availableWidth) static StringcollapseMiddle(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.
 
 
-