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 WithStylepublic StyleSignatureBasic getStyleSignature()
getStyleSignature in interface Styleableprotected final Style getStyle()
public double getPaddingX()
public double getPaddingY()
public abstract double getPreferredWidth(StringBounder stringBounder)
getPreferredWidth in interface Componentpublic abstract double getPreferredHeight(StringBounder stringBounder)
getPreferredHeight in interface Componentpublic final XDimension2D getPreferredDimension(StringBounder stringBounder)
getPreferredDimension in interface Component