Class TextEllipsisCalculator


  • public class TextEllipsisCalculator
    extends java.lang.Object
    Utility to calculate the size of a text and add an elipsis of '...' at the end, so everything can be displayed.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Mar 07, 2015
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String calculateEllipsis​(javafx.scene.text.Font font, java.lang.String text, double maxWidth)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextEllipsisCalculator

        public TextEllipsisCalculator()
    • Method Detail

      • calculateEllipsis

        public java.lang.String calculateEllipsis​(javafx.scene.text.Font font,
                                                  java.lang.String text,
                                                  double maxWidth)