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, HorizontalAlignement horizontalAlignement, SpriteContainer spriteContainer)
           
static TextBlock create(Display texts, FontConfiguration fontConfiguration, HorizontalAlignement horizontalAlignement, SpriteContainer spriteContainer, double maxMessageSize)
           
static TextBlock empty(double width, double height)
           
static MinMax getMinMax(TextBlock tb, StringBounder stringBounder)
           
static UGraphic getPrinted(TextBlock tb, FileFormatOption fileFormatOption, ColorMapper colorMapper, double dpiFactor, HtmlColor mybackcolor)
           
static TextBlock mergeLR(TextBlock b1, TextBlock b2, VerticallAlignement verticallAlignement)
           
static TextBlock mergeTB(TextBlock b1, TextBlock b2, HorizontalAlignement horizontalAlignement)
           
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, HorizontalAlignement horizontalAlignement)
           
 
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,
                               HorizontalAlignement horizontalAlignement,
                               SpriteContainer spriteContainer)

create

public static TextBlock create(Display texts,
                               FontConfiguration fontConfiguration,
                               HorizontalAlignement horizontalAlignement,
                               SpriteContainer spriteContainer,
                               double maxMessageSize)

withMargin

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

withMinWidth

public static TextBlock withMinWidth(TextBlock textBlock,
                                     double minWidth,
                                     HorizontalAlignement horizontalAlignement)

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,
                                VerticallAlignement verticallAlignement)

mergeTB

public static TextBlock mergeTB(TextBlock b1,
                                TextBlock b2,
                                HorizontalAlignement horizontalAlignement)

getMinMax

public static MinMax getMinMax(TextBlock tb,
                               StringBounder stringBounder)

getPrinted

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


Copyright © 2013. All Rights Reserved.