Package net.sourceforge.plantuml.graphic
Class TextBlockUtils
java.lang.Object
net.sourceforge.plantuml.graphic.TextBlockUtils
public class TextBlockUtils
extends java.lang.Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextBlockBackcolored
addBackcolor
(TextBlock text, HColor backColor) static Positionable
asPositionable
(Dimension2D dim, StringBounder stringBounder, java.awt.geom.Point2D pt) static Positionable
asPositionable
(TextBlock textBlock, StringBounder stringBounder, java.awt.geom.Point2D pt) static TextBlock
bordered
(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize) static TextBlock
bordered
(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, double marginX, double marginY) static TextBlock
bordered
(TextBlock textBlock, UStroke stroke, HColor borderColor, HColor backgroundColor, double cornersize, ClockwiseTopRightBottomLeft margins) static java.awt.font.TextLayout
createTextLayout
(UFont font, java.lang.String string) static java.awt.font.TextLayout
createTextLayout
(UText shape) static TextBlock
empty
(double width, double height) static TextBlock
fromUImage
(UImage image) static TextBlock
fullInnerPosition
(TextBlock bloc, java.lang.String display) static java.awt.font.FontRenderContext
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
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
withMargin
(TextBlock textBlock, ClockwiseTopRightBottomLeft margins) static TextBlock
withMinWidth
(TextBlock textBlock, double minWidth, HorizontalAlignment horizontalAlignment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, java.awt.geom.Point2D pt) -
asPositionable
public static Positionable asPositionable(Dimension2D dim, StringBounder stringBounder, java.awt.geom.Point2D 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
-
getFontRenderContext
public static java.awt.font.FontRenderContext getFontRenderContext() -
createTextLayout
-
createTextLayout
-
fullInnerPosition
-
addBackcolor
-
fromUImage
-