Package net.sourceforge.plantuml.graphic
Class TextBlockUtils
- java.lang.Object
-
- net.sourceforge.plantuml.graphic.TextBlockUtils
-
public class TextBlockUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static TextBlockEMPTY_TEXT_BLOCK
-
Constructor Summary
Constructors Constructor Description TextBlockUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 FontRenderContextgetFontRenderContext()static 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 Detail
-
EMPTY_TEXT_BLOCK
public static final TextBlock EMPTY_TEXT_BLOCK
-
-
Method Detail
-
bordered
public static TextBlock bordered(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize)
-
bordered
public static TextBlock bordered(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, double marginX, double marginY)
-
bordered
public static TextBlock bordered(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, ClockwiseTopRightBottomLeft margins)
-
title
public static TextBlock title(FontConfiguration font, Display stringsToDisplay, ISkinParam skinParam)
-
withMargin
public static TextBlock withMargin(TextBlock textBlock, ClockwiseTopRightBottomLeft margins)
-
withMargin
public static TextBlock withMargin(TextBlock textBlock, double marginX1, double marginX2, double marginY1, double marginY2)
-
withMinWidth
public static TextBlock withMinWidth(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment)
-
empty
public static TextBlock empty(double width, double height)
-
asPositionable
public static Positionable asPositionable(TextBlock textBlock, StringBounder stringBounder, Point2D pt)
-
asPositionable
public static Positionable asPositionable(Dimension2D dim, StringBounder stringBounder, Point2D pt)
-
mergeLR
public static TextBlock mergeLR(TextBlock b1, TextBlock b2, VerticalAlignment verticallAlignment)
-
mergeTB
public static TextBlock mergeTB(TextBlock b1, TextBlock b2, HorizontalAlignment horizontalAlignment)
-
mergeTB
public static TextBlock mergeTB(TextBlock b1, UImage image, HorizontalAlignment horizontalAlignment)
-
getMinMax
public static MinMax getMinMax(UDrawable tb, StringBounder stringBounder, boolean initToZero)
-
isEmpty
public static boolean isEmpty(TextBlock text, StringBounder dummyStringBounder)
-
getFontRenderContext
public static FontRenderContext getFontRenderContext()
-
createTextLayout
public static TextLayout createTextLayout(UText shape)
-
createTextLayout
public static TextLayout createTextLayout(UFont font, String string)
-
addBackcolor
public static TextBlockBackcolored addBackcolor(TextBlock text, HColor backColor)
-
-