net.sourceforge.plantuml.graphic
Class TextBlockUtils

java.lang.Object
  extended by net.sourceforge.plantuml.graphic.TextBlockUtils

public class TextBlockUtils
extends Object


Constructor Summary
TextBlockUtils()
           
 
Method Summary
static Positionable asPositionable(TextBlock textBlock, StringBounder stringBounder, Point2D pt)
           
static TextBlock create(Display texts, FontConfiguration fontConfiguration, HorizontalAlignment horizontalAlignment, SpriteContainer spriteContainer)
           
static TextBlock create(Display texts, FontConfiguration fontConfiguration, HorizontalAlignment horizontalAlignment, SpriteContainer spriteContainer, double maxMessageSize)
           
static TextBlock empty(double width, double height)
           
static Dimension2D getDimension(TextBlock tb)
           
static MinMax getMinMax(TextBlock tb)
           
static MinMax getMinMax(TextBlock tb, StringBounder stringBounder)
           
static UGraphic getPrinted(TextBlock tb, FileFormatOption fileFormatOption, ColorMapper colorMapper, double dpiFactor, HtmlColor mybackcolor, double margin)
           
static TextBlock mergeLR(TextBlock b1, TextBlock b2, VerticalAlignment verticallAlignment)
           
static TextBlock mergeTB(TextBlock b1, TextBlock b2, 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 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
 

Constructor Detail

TextBlockUtils

public TextBlockUtils()
Method Detail

create

public static TextBlock create(Display texts,
                               FontConfiguration fontConfiguration,
                               HorizontalAlignment horizontalAlignment,
                               SpriteContainer spriteContainer)

create

public static TextBlock create(Display texts,
                               FontConfiguration fontConfiguration,
                               HorizontalAlignment horizontalAlignment,
                               SpriteContainer spriteContainer,
                               double maxMessageSize)

withMargin

public static TextBlock withMargin(TextBlock textBlock,
                                   double marginX,
                                   double marginY)

withMinWidth

public static TextBlock withMinWidth(TextBlock textBlock,
                                     double minWidth,
                                     HorizontalAlignment horizontalAlignment)

withMargin

public static TextBlock withMargin(TextBlock textBlock,
                                   double marginX1,
                                   double marginX2,
                                   double marginY1,
                                   double marginY2)

empty

public static TextBlock empty(double width,
                              double height)

asPositionable

public static Positionable asPositionable(TextBlock textBlock,
                                          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)

getMinMax

public static MinMax getMinMax(TextBlock tb,
                               StringBounder stringBounder)

getPrinted

public static UGraphic getPrinted(TextBlock tb,
                                  FileFormatOption fileFormatOption,
                                  ColorMapper colorMapper,
                                  double dpiFactor,
                                  HtmlColor mybackcolor,
                                  double margin)

getMinMax

public static MinMax getMinMax(TextBlock tb)

getDimension

public static Dimension2D getDimension(TextBlock tb)


Copyright © 2013. All Rights Reserved.