Class TimeHeader
- java.lang.Object
-
- net.sourceforge.plantuml.project.draw.TimeHeader
-
- Direct Known Subclasses:
TimeHeaderCalendar,TimeHeaderChronology,TimeHeaderSimple
public abstract class TimeHeader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TimeHeaderParametersthParam
-
Constructor Summary
Constructors Constructor Description TimeHeader(TimeHeaderParameters thParam, TimeScale timeScale)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected HColorclosedBackgroundColor()protected HColorclosedFontColor()protected voiddrawHline(UGraphic ug, double y)protected voiddrawRectangle(UGraphic ug, double height, double x1, double x2)abstract voiddrawTimeFooter(UGraphic ug)abstract voiddrawTimeHeader(UGraphic ug, double totalHeightWithoutFooter)protected voiddrawVline(UGraphic ug, double x, double y1, double y2)protected FontConfigurationgetFontConfiguration(UFont font, boolean bold, HColor color)abstract doublegetFullHeaderHeight(StringBounder stringBounder)protected HColorgetLineColor()protected DaygetMax()protected DaygetMin()protected TextBlockgetTextBlock(SName param, java.lang.String text, boolean bold, HColor color)abstract doublegetTimeFooterHeight(StringBounder stringBounder)abstract doublegetTimeHeaderHeight(StringBounder stringBounder)TimeScalegetTimeScale()protected booleanisBold2(Day wink)protected HColoropenFontColor()protected voidprintCentered(UGraphic ug, boolean hideIfTooBig, double start, double end, TextBlock... texts)protected voidprintCentered(UGraphic ug, TextBlock text, double start, double end)protected voidprintVerticalSeparators(UGraphic ug, double totalHeightWithoutFooter)
-
-
-
Field Detail
-
thParam
protected final TimeHeaderParameters thParam
-
-
Constructor Detail
-
TimeHeader
public TimeHeader(TimeHeaderParameters thParam, TimeScale timeScale)
-
-
Method Detail
-
isBold2
protected final boolean isBold2(Day wink)
-
getMin
protected final Day getMin()
-
getMax
protected final Day getMax()
-
closedBackgroundColor
protected final HColor closedBackgroundColor()
-
closedFontColor
protected final HColor closedFontColor()
-
openFontColor
protected final HColor openFontColor()
-
getLineColor
protected final HColor getLineColor()
-
getTimeHeaderHeight
public abstract double getTimeHeaderHeight(StringBounder stringBounder)
-
getTimeFooterHeight
public abstract double getTimeFooterHeight(StringBounder stringBounder)
-
getFullHeaderHeight
public abstract double getFullHeaderHeight(StringBounder stringBounder)
-
drawTimeHeader
public abstract void drawTimeHeader(UGraphic ug, double totalHeightWithoutFooter)
-
drawTimeFooter
public abstract void drawTimeFooter(UGraphic ug)
-
getTimeScale
public final TimeScale getTimeScale()
-
drawHline
protected final void drawHline(UGraphic ug, double y)
-
drawVline
protected final void drawVline(UGraphic ug, double x, double y1, double y2)
-
getFontConfiguration
protected final FontConfiguration getFontConfiguration(UFont font, boolean bold, HColor color)
-
getTextBlock
protected final TextBlock getTextBlock(SName param, java.lang.String text, boolean bold, HColor color)
-
printCentered
protected final void printCentered(UGraphic ug, TextBlock text, double start, double end)
-
printCentered
protected final void printCentered(UGraphic ug, boolean hideIfTooBig, double start, double end, TextBlock... texts)
-
drawRectangle
protected final void drawRectangle(UGraphic ug, double height, double x1, double x2)
-
printVerticalSeparators
protected void printVerticalSeparators(UGraphic ug, double totalHeightWithoutFooter)
-
-