net.charlesames.utility.html
Class TimeGraphBuilder

java.lang.Object
  extended by net.charlesames.utility.html.HtmlBuilder
      extended by net.charlesames.utility.html.TimeGraphBuilder

public class TimeGraphBuilder
extends HtmlBuilder

Generates a time graph using HTML formatting tags.

Author:
Charles Ames

Nested Class Summary
 
Nested classes/interfaces inherited from class net.charlesames.utility.html.HtmlBuilder
HtmlBuilder.Tags
 
Field Summary
 
Fields inherited from class net.charlesames.utility.html.HtmlBuilder
FILE_EXTENSION
 
Constructor Summary
TimeGraphBuilder()
          Constructor for TimeGraphBuilder instances.
 
Method Summary
 void addValue(int value)
           
 java.lang.String build()
           
 HtmlColor getBarColor()
           
 int getBarWidth()
           
 void setBarColor(HtmlColor barColor)
           
 void setBarWidth(int barWidth)
           
 
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
 

Constructor Detail

TimeGraphBuilder

public TimeGraphBuilder()
Constructor for TimeGraphBuilder instances.

Method Detail

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.