net.charlesames.utility.html
Class TimeGraphBuilder
java.lang.Object
net.charlesames.utility.html.HtmlBuilder
net.charlesames.utility.html.TimeGraphBuilder
public class TimeGraphBuilder
- extends HtmlBuilder
Generates a time graph using HTML formatting tags.
- Author:
- Charles Ames
|
Constructor Summary |
TimeGraphBuilder()
Constructor for TimeGraphBuilder instances. |
| Methods inherited from class net.charlesames.utility.html.HtmlBuilder |
addTableCell, append, appendLineBreak, beginBlockQuote, beginBody, beginCenter, beginDiv, beginHead, beginHtml, beginListItem, beginOrderedList, beginParagraph, beginSpan, beginStyle, beginStyleRule, beginTable, beginTableBody, beginTableCell, beginTableHeader, beginTableHeaderCell, beginTableRow, beginTag, beginUnorderedList, buildAttribute, buildColorDeclaration, buildLink, buildStyleDeclaration, endBlockQuote, endBody, endCenter, endDiv, endHead, endHtml, endListItem, endOrderedList, endParagraph, endSpan, endStyle, endStyleRule, endTable, endTableBody, endTableCell, endTableHeader, endTableHeaderCell, endTableRow, endTag, endUnorderedList, newline, popTag, pushTag, reset, save, tab, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeGraphBuilder
public TimeGraphBuilder()
- Constructor for TimeGraphBuilder instances.
getBarColor
public HtmlColor getBarColor()
- Returns:
- The bar color.
setBarColor
public void setBarColor(HtmlColor barColor)
- Parameters:
barColor - The bar color.
getBarWidth
public int getBarWidth()
- Returns:
- The bar width.
setBarWidth
public void setBarWidth(int barWidth)
- Parameters:
barWidth - The bar width.
addValue
public void addValue(int value)
- Parameters:
value - A value
build
public java.lang.String build()
- Returns:
- An HTML text representation of a time graph.