net.sourceforge.plantuml.salt.element
Class ElementTextField

java.lang.Object
  extended by net.sourceforge.plantuml.salt.element.ElementTextField
All Implemented Interfaces:
Element

public class ElementTextField
extends Object
implements Element


Constructor Summary
ElementTextField(String text, UFont font)
           
 
Method Summary
protected  void drawText(UGraphic ug, double x, double y)
           
 void drawU(UGraphic ug, double x, double y, int zIndex, Dimension2D dimToUse)
           
 Dimension2D getPreferredDimension(StringBounder stringBounder, double x, double y)
           
protected  Dimension2D getPureTextDimension(StringBounder stringBounder)
           
protected  Dimension2D getTextDimensionAt(StringBounder stringBounder, double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementTextField

public ElementTextField(String text,
                        UFont font)
Method Detail

getPreferredDimension

public Dimension2D getPreferredDimension(StringBounder stringBounder,
                                         double x,
                                         double y)
Specified by:
getPreferredDimension in interface Element

drawU

public void drawU(UGraphic ug,
                  double x,
                  double y,
                  int zIndex,
                  Dimension2D dimToUse)
Specified by:
drawU in interface Element

drawText

protected void drawText(UGraphic ug,
                        double x,
                        double y)

getPureTextDimension

protected Dimension2D getPureTextDimension(StringBounder stringBounder)

getTextDimensionAt

protected Dimension2D getTextDimensionAt(StringBounder stringBounder,
                                         double x)


Copyright © 2011. All Rights Reserved.