public class GraphicUtils
extends java.lang.Object
Constructor and Description |
---|
GraphicUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFittingString(java.awt.Graphics graphics,
java.awt.Font font,
java.lang.String string,
double maxLength)
Returns the max. part of a string fitting length as specified.
|
public static java.lang.String getFittingString(java.awt.Graphics graphics, java.awt.Font font, java.lang.String string, double maxLength)
graphics
- the graphics contextfont
- the font of the string to be truncatedstring
- the string to be truncatedmaxLength
- the max length of the result stringCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de