|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.html.HtmlBuilder
net.charlesames.utility.html.DiscreteGraphBuilder
public class DiscreteGraphBuilder
Generates discrete graphs using HTML formatting tags.
| Nested Class Summary | |
|---|---|
class |
DiscreteGraphBuilder.Column
|
class |
DiscreteGraphBuilder.Row
|
| 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 | |
|---|---|
DiscreteGraphBuilder()
Constructor for DiscreteGraphBuilder instances. |
|
| Method Summary | |
|---|---|
DiscreteGraphBuilder.Column |
addColumn()
Create a new Column instance. |
DiscreteGraphBuilder.Row |
addRow(int value,
boolean occurence)
Create a new Row instance. |
java.lang.String |
build()
|
void |
clear()
Clear existing data. |
HtmlColor |
getBarColor()
|
int |
getCellWidth()
|
void |
plotRect(java.lang.String cellAttributes,
int width,
int height,
HtmlColor color)
Plot a rectangle as a table cell |
void |
plotRow(int value,
int height,
HtmlColor defaultColor)
Plot a row |
void |
plotSpacerRow()
Plot a spacer row |
void |
setBarColor(HtmlColor barColor)
|
void |
setCellWidth(int cellWidth)
|
| 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 |
|---|
public DiscreteGraphBuilder()
| Method Detail |
|---|
public void clear()
public HtmlColor getBarColor()
public void setBarColor(HtmlColor barColor)
barColor - The bar color.public int getCellWidth()
public void setCellWidth(int cellWidth)
cellWidth - The cell width.public DiscreteGraphBuilder.Column addColumn()
public DiscreteGraphBuilder.Row addRow(int value,
boolean occurence)
value - The value associated with this Row instance.occurence - Flag indicating whether something happened in this row.
public java.lang.String build()
public void plotRow(int value,
int height,
HtmlColor defaultColor)
value - The row value.height - The row height.defaultColor - The color to be used if the cell does not contain a value.public void plotSpacerRow()
public void plotRect(java.lang.String cellAttributes,
int width,
int height,
HtmlColor color)
cellAttributes - width - height - color -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||