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 TimeHeaderParameters
thParam
-
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 HColor
closedBackgroundColor()
protected HColor
closedFontColor()
protected void
drawHline(UGraphic ug, double y)
protected void
drawRectangle(UGraphic ug, double height, double x1, double x2)
abstract void
drawTimeFooter(UGraphic ug)
abstract void
drawTimeHeader(UGraphic ug, double totalHeightWithoutFooter)
protected void
drawVline(UGraphic ug, double x, double y1, double y2)
protected FontConfiguration
getFontConfiguration(UFont font, boolean bold, HColor color)
abstract double
getFullHeaderHeight(StringBounder stringBounder)
protected HColor
getLineColor()
protected Day
getMax()
protected Day
getMin()
protected Pragma
getPragma()
protected TextBlock
getTextBlock(SName param, java.lang.String text, boolean bold, HColor color)
abstract double
getTimeFooterHeight(StringBounder stringBounder)
abstract double
getTimeHeaderHeight(StringBounder stringBounder)
TimeScale
getTimeScale()
protected boolean
isBold2(Day wink)
protected HColor
openFontColor()
protected void
printCentered(UGraphic ug, boolean hideIfTooBig, double start, double end, TextBlock... texts)
protected void
printCentered(UGraphic ug, TextBlock text, double start, double end)
protected void
printVerticalSeparators(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)
-
getPragma
protected Pragma getPragma()
-
-