public class TextBlockUtils extends Object
Constructor and Description |
---|
TextBlockUtils() |
Modifier and Type | Method and Description |
---|---|
static Positionable |
asPositionable(TextBlock textBlock,
StringBounder stringBounder,
Point2D pt) |
static TextBlock |
bordered(TextBlock textBlock,
UStroke stroke,
HtmlColor borderColor,
HtmlColor backgroundColor,
double cornersize) |
static TextBlock |
empty(double width,
double height) |
static TextBlock |
fullInnerPosition(TextBlock bloc,
String display) |
static FontMetrics |
getFontMetrics(Font font) |
static FontRenderContext |
getFontRenderContext() |
static LineMetrics |
getLineMetrics(UFont font,
String text) |
static MinMax |
getMinMax(TextBlock tb,
StringBounder stringBounder) |
static boolean |
isEmpty(TextBlock text,
StringBounder dummyStringBounder) |
static TextBlock |
mergeLR(TextBlock b1,
TextBlock b2,
VerticalAlignment verticallAlignment) |
static TextBlock |
mergeTB(TextBlock b1,
TextBlock b2,
HorizontalAlignment horizontalAlignment) |
static TextBlock |
title(FontConfiguration font,
Display stringsToDisplay,
ISkinParam skinParam) |
static TextBlock |
withMargin(TextBlock textBlock,
double marginX,
double marginY) |
static TextBlock |
withMargin(TextBlock textBlock,
double marginX1,
double marginX2,
double marginY1,
double marginY2) |
static TextBlock |
withMinWidth(TextBlock textBlock,
double minWidth,
HorizontalAlignment horizontalAlignment) |
public static TextBlock bordered(TextBlock textBlock, UStroke stroke, HtmlColor borderColor, HtmlColor backgroundColor, double cornersize)
public static TextBlock title(FontConfiguration font, Display stringsToDisplay, ISkinParam skinParam)
public static TextBlock withMargin(TextBlock textBlock, double marginX1, double marginX2, double marginY1, double marginY2)
public static TextBlock withMinWidth(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment)
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, StringBounder dummyStringBounder)
public static FontRenderContext getFontRenderContext()
public static LineMetrics getLineMetrics(UFont font, String text)
public static FontMetrics getFontMetrics(Font font)
Copyright © 2017. All Rights Reserved.