net.sourceforge.plantuml.salt.element
Class ElementButton

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

public class ElementButton
extends Object
implements Element


Constructor Summary
ElementButton(String text, UFont font, SpriteContainer spriteContainer)
           
 
Method Summary
protected  void drawText(UGraphic ug, double x, double y)
           
 void drawU(UGraphic ug, double x, double y, int zIndex, Dimension2D dimToUse)
           
protected  FontConfiguration getConfig()
           
 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

ElementButton

public ElementButton(String text,
                     UFont font,
                     SpriteContainer spriteContainer)
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)

getConfig

protected final FontConfiguration getConfig()


Copyright © 2013. All Rights Reserved.