net.sourceforge.plantuml.skin
Class AbstractComponent

java.lang.Object
  extended by net.sourceforge.plantuml.skin.AbstractComponent
All Implemented Interfaces:
Component
Direct Known Subclasses:
AbstractTextualComponent, ComponentBlueModernActiveLine, ComponentBlueModernDelayLine, ComponentBlueModernGroupingBody, ComponentBlueModernGroupingTail, ComponentBlueModernLine, ComponentBlueModernNewpage, ComponentRoseActiveLine, ComponentRoseDelayLine, ComponentRoseDestroy, ComponentRoseGroupingBody, ComponentRoseGroupingTail, ComponentRoseLine, ComponentRoseNewpage

public abstract class AbstractComponent
extends Object
implements Component


Constructor Summary
AbstractComponent()
           
 
Method Summary
protected  void drawBackgroundInternalU(UGraphic ug, Dimension2D dimensionToUse)
           
protected abstract  void drawInternalU(UGraphic ug, Dimension2D dimensionToUse)
           
 void drawU(UGraphic ug, Dimension2D dimensionToUse, Context2D context)
           
 double getPaddingX()
           
 double getPaddingY()
           
abstract  double getPreferredHeight(StringBounder stringBounder)
           
abstract  double getPreferredWidth(StringBounder stringBounder)
           
protected  void stroke(Graphics2D g2d, float dash)
           
protected  void stroke(Graphics2D g2d, float dash, float thickness)
           
protected  void stroke(UGraphic ug, double dashVisible, double dashSpace)
           
protected  void stroke(UGraphic ug, double dashVisible, double dashSpace, double thickness)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

stroke

protected final void stroke(Graphics2D g2d,
                            float dash,
                            float thickness)

stroke

protected final void stroke(UGraphic ug,
                            double dashVisible,
                            double dashSpace,
                            double thickness)

stroke

protected final void stroke(Graphics2D g2d,
                            float dash)

stroke

protected final void stroke(UGraphic ug,
                            double dashVisible,
                            double dashSpace)

drawInternalU

protected abstract void drawInternalU(UGraphic ug,
                                      Dimension2D dimensionToUse)

drawBackgroundInternalU

protected void drawBackgroundInternalU(UGraphic ug,
                                       Dimension2D dimensionToUse)

drawU

public final void drawU(UGraphic ug,
                        Dimension2D dimensionToUse,
                        Context2D context)
Specified by:
drawU in interface Component

getPaddingX

public double getPaddingX()

getPaddingY

public double getPaddingY()

getPreferredWidth

public abstract double getPreferredWidth(StringBounder stringBounder)
Specified by:
getPreferredWidth in interface Component

getPreferredHeight

public abstract double getPreferredHeight(StringBounder stringBounder)
Specified by:
getPreferredHeight in interface Component


Copyright © 2011. All Rights Reserved.