public class TextBlockUtils extends Object
Constructor and Description |
---|
TextBlockUtils() |
public static TextBlock withMinWidth(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment)
public static TextBlock withMargin(TextBlock textBlock, double marginX1, double marginX2, double marginY1, double marginY2)
public static TextBlock empty(double width, double height)
public static Positionable asPositionable(TextBlock textBlock, StringBounder stringBounder, Point2D pt)
public static TextBlock mergeLR(TextBlock b1, TextBlock b2, VerticalAlignment verticallAlignment)
public static TextBlock mergeTB(TextBlock b1, TextBlock b2, HorizontalAlignment horizontalAlignment)
public static MinMax getMinMax(TextBlock tb, StringBounder stringBounder)
public static boolean isEmpty(TextBlock text)
public static StringBounder getDummyStringBounder()
public static FontRenderContext getFontRenderContext()
public static Dimension2D getDimension(TextBlock tb)
public static LineMetrics getLineMetrics(UFont font, String text)
public static FontMetrics getFontMetrics(Font font)
Copyright © 2015. All Rights Reserved.