a few standard externals (textbutton, tab, etc….) feature a text truncation attribute that allows the user to truncate text that does not fit in the object box. Usually the truncation options are to truncate from the right, from the left or from the middle of the word or sentence.
I love Max/MSP
I love M… [truncate from the right]
I lo…/MSP [truncate from the middle]
…Max/MSP [truncate from the left]
I haven’t found any such feature built in the JGraphics API nor in textfield or textlayout, with the only exception of a TEXT_JUSTIFICATION_USEELLIPSIS flag which just allows truncation from the right.
I am wondering if there are other techniques or other not documented flags that allow to easily implement the above mentioned behavior.