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, ComponentBlueModernLine, ComponentBlueModernNewpage, ComponentRoseActiveLine, ComponentRoseDelayLine, ComponentRoseDestroy, ComponentRoseLine, ComponentRoseNewpage

public abstract class AbstractComponent
extends Object
implements Component


Constructor Summary
AbstractComponent()
           
 
Method Summary
protected  void drawBackgroundInternalU(UGraphic ug, Area area)
           
protected abstract  void drawInternalU(UGraphic ug, Area area)
           
 void drawU(UGraphic ug, Area area, 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  UGraphic stroke(UGraphic ug, double dashVisible, double dashSpace)
           
protected  UGraphic 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 UGraphic stroke(UGraphic ug,
                                double dashVisible,
                                double dashSpace,
                                double thickness)

stroke

protected final void stroke(Graphics2D g2d,
                            float dash)

stroke

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

drawInternalU

protected abstract void drawInternalU(UGraphic ug,
                                      Area area)

drawBackgroundInternalU

protected void drawBackgroundInternalU(UGraphic ug,
                                       Area area)

drawU

public final void drawU(UGraphic ug,
                        Area area,
                        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 © 2013. All Rights Reserved.