Package net.sourceforge.plantuml.graphic
Class TextBlockUtils
java.lang.Object
net.sourceforge.plantuml.graphic.TextBlockUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextBlockBackcoloredaddBackcolor(TextBlock text, HColor backColor) static PositionableasPositionable(Dimension2D dim, StringBounder stringBounder, Point2D pt) static PositionableasPositionable(TextBlock textBlock, StringBounder stringBounder, Point2D pt) static TextBlockbordered(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize) static TextBlockbordered(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, double marginX, double marginY) static TextBlockbordered(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, ClockwiseTopRightBottomLeft margins) static TextLayoutcreateTextLayout(UFont font, String string) static TextLayoutcreateTextLayout(UText shape) static TextBlockempty(double width, double height) static TextBlockfromUImage(UImage image) static TextBlockfullInnerPosition(TextBlock bloc, String display) static FontRenderContextstatic MinMaxgetMinMax(UDrawable tb, StringBounder stringBounder, boolean initToZero) static booleanisEmpty(TextBlock text, StringBounder dummyStringBounder) static TextBlockmergeLR(TextBlock b1, TextBlock b2, VerticalAlignment verticallAlignment) static TextBlockmergeTB(TextBlock b1, TextBlock b2, HorizontalAlignment horizontalAlignment) static TextBlockmergeTB(TextBlock b1, UImage image, HorizontalAlignment horizontalAlignment) static TextBlocktitle(FontConfiguration font, Display stringsToDisplay, ISkinParam skinParam) static TextBlockwithMargin(TextBlock textBlock, double marginX, double marginY) static TextBlockwithMargin(TextBlock textBlock, double marginX1, double marginX2, double marginY1, double marginY2) static TextBlockwithMargin(TextBlock textBlock, ClockwiseTopRightBottomLeft margins) static TextBlockwithMinWidth(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment)
-
Field Details
-
EMPTY_TEXT_BLOCK
-
-
Constructor Details
-
TextBlockUtils
public TextBlockUtils()
-
-
Method Details
-
bordered
-
bordered
-
bordered
-
title
public static TextBlock title(FontConfiguration font, Display stringsToDisplay, ISkinParam skinParam) -
withMargin
-
withMargin
-
withMargin
-
withMinWidth
public static TextBlock withMinWidth(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment) -
empty
-
asPositionable
public static Positionable asPositionable(TextBlock textBlock, StringBounder stringBounder, Point2D pt) -
asPositionable
-
mergeLR
-
mergeTB
public static TextBlock mergeTB(TextBlock b1, TextBlock b2, HorizontalAlignment horizontalAlignment) -
mergeTB
public static TextBlock mergeTB(TextBlock b1, UImage image, HorizontalAlignment horizontalAlignment) -
getMinMax
-
isEmpty
-
getFontRenderContext
-
createTextLayout
-
createTextLayout
-
fullInnerPosition
-
addBackcolor
-
fromUImage
-