Class AbstractComponent

java.lang.Object
net.sourceforge.plantuml.skin.AbstractComponent
All Implemented Interfaces:
Component, Styleable, WithStyle
Direct Known Subclasses:
AbstractTextualComponent, ComponentRoseActiveLine, ComponentRoseDelayLine, ComponentRoseDestroy, ComponentRoseLine, ComponentRoseNewpage

public abstract class AbstractComponent extends Object implements Component
  • Constructor Details

    • AbstractComponent

      public AbstractComponent(Style style, ISkinParam skinParam)
  • Method Details

    • getUsedStyles

      public final Style[] getUsedStyles()
      Specified by:
      getUsedStyles in interface WithStyle
    • getStyleSignature

      public StyleSignatureBasic getStyleSignature()
      Specified by:
      getStyleSignature in interface Styleable
    • getStyle

      protected final Style getStyle()
    • getSkinParam

      protected final ISkinParam getSkinParam()
    • getIHtmlColorSet

      protected HColorSet getIHtmlColorSet()
    • getSymbolContext

      protected final Fashion getSymbolContext()
    • getSymbolContext

      protected final Fashion getSymbolContext(Colors colors)
    • getColorFont

      protected final HColor getColorFont()
    • getColorLine

      protected final HColor getColorLine()
    • getColorBackGround

      protected final HColor getColorBackGround()
    • getRoundCorner

      protected final double getRoundCorner()
    • getDiagonalCorner

      protected final double getDiagonalCorner()
    • getStroke

      protected final UStroke getStroke()
    • getShadowing

      protected final double getShadowing()
    • getUFont

      protected final UFont getUFont()
    • getFontConfiguration

      protected final FontConfiguration getFontConfiguration()
    • getHorizontalAlignment

      protected final HorizontalAlignment getHorizontalAlignment()
    • 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
    • getPreferredDimension

      public final XDimension2D getPreferredDimension(StringBounder stringBounder)
      Specified by:
      getPreferredDimension in interface Component