public abstract class AbstractComponent extends java.lang.Object implements Component
Constructor and Description |
---|
AbstractComponent(Style style) |
Modifier and Type | Method and Description |
---|---|
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() |
XDimension2D |
getPreferredDimension(StringBounder stringBounder) |
abstract double |
getPreferredHeight(StringBounder stringBounder) |
abstract double |
getPreferredWidth(StringBounder stringBounder) |
protected Style |
getStyle() |
StyleSignatureBasic |
getStyleSignature() |
Style[] |
getUsedStyles() |
public AbstractComponent(Style style)
public final Style[] getUsedStyles()
getUsedStyles
in interface WithStyle
public StyleSignatureBasic getStyleSignature()
getStyleSignature
in interface Styleable
protected final Style getStyle()
public double getPaddingX()
public double getPaddingY()
public abstract double getPreferredWidth(StringBounder stringBounder)
getPreferredWidth
in interface Component
public abstract double getPreferredHeight(StringBounder stringBounder)
getPreferredHeight
in interface Component
public final XDimension2D getPreferredDimension(StringBounder stringBounder)
getPreferredDimension
in interface Component