net.sourceforge.plantuml.skin
Class AbstractTextualComponent

java.lang.Object
  extended by net.sourceforge.plantuml.skin.AbstractComponent
      extended by net.sourceforge.plantuml.skin.AbstractTextualComponent
All Implemented Interfaces:
Component
Direct Known Subclasses:
AbstractComponentBlueModernArrow, AbstractComponentRoseArrow, ComponentBlueModernActor, ComponentBlueModernDelayText, ComponentBlueModernDivider, ComponentBlueModernEnglober, ComponentBlueModernGroupingHeader, ComponentBlueModernNote, ComponentBlueModernParticipant, ComponentRoseActor, ComponentRoseDelayText, ComponentRoseDivider, ComponentRoseEnglober, ComponentRoseGroupingElse, ComponentRoseGroupingHeader, ComponentRoseNote, ComponentRoseParticipant, ComponentRoseTitle

public abstract class AbstractTextualComponent
extends AbstractComponent


Constructor Summary
AbstractTextualComponent(CharSequence label, Color fontColor, Font font, HorizontalAlignement horizontalAlignement, int marginX1, int marginX2, int marginY)
           
AbstractTextualComponent(List<? extends CharSequence> strings, Color fontColor, Font font, HorizontalAlignement horizontalAlignement, int marginX1, int marginX2, int marginY)
           
 
Method Summary
protected  Font getFont()
           
protected  Color getFontColor()
           
protected  List<? extends CharSequence> getLabels()
           
protected  int getMarginX1()
           
protected  int getMarginX2()
           
protected  int getMarginY()
           
protected  double getPureTextWidth(StringBounder stringBounder)
           
protected  TextBlock getTextBlock()
           
protected  double getTextHeight(StringBounder stringBounder)
           
 double getTextWidth(StringBounder stringBounder)
           
 
Methods inherited from class net.sourceforge.plantuml.skin.AbstractComponent
drawBackgroundInternalU, drawInternalU, drawU, getPaddingX, getPaddingY, getPreferredHeight, getPreferredWidth, stroke, stroke, stroke, stroke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTextualComponent

public AbstractTextualComponent(CharSequence label,
                                Color fontColor,
                                Font font,
                                HorizontalAlignement horizontalAlignement,
                                int marginX1,
                                int marginX2,
                                int marginY)

AbstractTextualComponent

public AbstractTextualComponent(List<? extends CharSequence> strings,
                                Color fontColor,
                                Font font,
                                HorizontalAlignement horizontalAlignement,
                                int marginX1,
                                int marginX2,
                                int marginY)
Method Detail

getTextBlock

protected final TextBlock getTextBlock()

getPureTextWidth

protected final double getPureTextWidth(StringBounder stringBounder)

getTextWidth

public final double getTextWidth(StringBounder stringBounder)

getTextHeight

protected final double getTextHeight(StringBounder stringBounder)

getLabels

protected final List<? extends CharSequence> getLabels()

getMarginX1

protected final int getMarginX1()

getMarginX2

protected final int getMarginX2()

getMarginY

protected final int getMarginY()

getFont

protected final Font getFont()

getFontColor

protected Color getFontColor()


Copyright © 2011. All Rights Reserved.