|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jfree.report.modules.output.table.html.HtmlStyleCollection
The HtmlStyleCollection is used to create HtmlCellStyles and to convert these cell styles into Cascading StyleSheet code.
The collection reuses previously generated styles to create optimized code. Created StyleSheets are stored in the collection and can be used as keys to lookup the name of that style in the global style sheet.
| Constructor Summary | |
HtmlStyleCollection()
Creates a new HtmlStyleCollection. |
|
| Method Summary | |
java.lang.String |
addCellStyle(HtmlTableCellStyle style)
|
java.lang.String |
addContentStyle(HtmlContentStyle style)
Adds the given style to the cache, if not already contained in the cache. |
java.lang.String |
addRowStyle(HtmlTableRowStyle style)
|
void |
clear()
Removes all registered styles. |
static java.lang.String |
getColorString(java.awt.Color color)
Creates the color string for the given AWT color. |
java.util.Iterator |
getDefinedStyles()
Gets a enumeration of all defined styles. |
HtmlTableCellStyle |
getEmptyCellStyle()
|
java.lang.String |
getPublicName(HtmlStyle style)
|
java.util.TreeMap |
getSortedStyleMap()
|
boolean |
isRegistered(HtmlStyle style)
Checks, whether the given style is contained in the cache. |
java.lang.String |
lookupName(HtmlStyle style)
Try to find the registered name of the given style. |
HtmlStyle |
lookupStyle(java.lang.String name)
Try to find the registered name of the given style. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public HtmlStyleCollection()
| Method Detail |
public java.lang.String addContentStyle(HtmlContentStyle style)
style - the generated style, that should be added to the style cache.public boolean isRegistered(HtmlStyle style)
style - the style, that should be checked.public java.util.Iterator getDefinedStyles()
public java.util.TreeMap getSortedStyleMap()
public HtmlStyle lookupStyle(java.lang.String name)
name - the name of the style, that should be looked up.isRegistered(org.jfree.report.modules.output.table.html.HtmlStyle)public HtmlTableCellStyle getEmptyCellStyle()
public java.lang.String lookupName(HtmlStyle style)
style - the style, which should be looked up.isRegistered(org.jfree.report.modules.output.table.html.HtmlStyle)public java.lang.String getPublicName(HtmlStyle style)
public void clear()
public static java.lang.String getColorString(java.awt.Color color)
color - the AWTColor that should be translated.public java.lang.String addRowStyle(HtmlTableRowStyle style)
public java.lang.String addCellStyle(HtmlTableCellStyle style)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||