Class TextBlockUtils
java.lang.Object
net.sourceforge.plantuml.klimt.shape.TextBlockUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextBlock
addBackcolor
(TextBlock text, HColor backColor) static Positionable
asPositionable
(XDimension2D dim, StringBounder stringBounder, XPoint2D pt) static Positionable
asPositionable
(TextBlock textBlock, StringBounder stringBounder, XPoint2D pt) static TextBlock
bordered
(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, ClockwiseTopRightBottomLeft margins, String id) static TextBlock
empty
(double width, double height) static TextBlock
fromUImage
(UImage image) static TextBlock
fullInnerPosition
(TextBlock bloc, String display) static MinMax
getMinMax
(UDrawable tb, StringBounder stringBounder, boolean initToZero) 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
mergeTB
(TextBlock b1, UImage image, HorizontalAlignment horizontalAlignment) static TextBlock
withMargin
(TextBlock textBlock, double marginX, double marginY) static TextBlock
withMargin
(TextBlock textBlock, double marginX1, double marginX2, double marginY1, double marginY2) static TextBlock
withMargin
(TextBlock textBlock, ClockwiseTopRightBottomLeft margins) static TextBlock
withMinWidth
(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment)
-
Field Details
-
EMPTY_TEXT_BLOCK
-
-
Constructor Details
-
TextBlockUtils
public TextBlockUtils()
-
-
Method Details
-
bordered
-
withMargin
-
withMargin
-
withMargin
-
withMinWidth
public static TextBlock withMinWidth(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment) -
empty
-
asPositionable
public static Positionable asPositionable(TextBlock textBlock, StringBounder stringBounder, XPoint2D pt) -
asPositionable
public static Positionable asPositionable(XDimension2D dim, StringBounder stringBounder, XPoint2D pt) -
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
-
fullInnerPosition
-
addBackcolor
-
fromUImage
-