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 TextBlock
EMPTY_TEXT_BLOCK
-
Constructor Summary
Constructors Constructor Description TextBlockUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextBlockBackcolored
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 TextLayout
createTextLayout(UFont font, String string)
static TextLayout
createTextLayout(UText shape)
static TextBlock
empty(double width, double height)
static TextBlock
fromUImage(UImage image)
static TextBlock
fullInnerPosition(TextBlock bloc, String display)
static FontRenderContext
getFontRenderContext()
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 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, ClockwiseTopRightBottomLeft margins, String id)
-
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, XPoint2D pt)
-
asPositionable
public static Positionable asPositionable(XDimension2D dim, StringBounder stringBounder, XPoint2D 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)
-
-