|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcreamtec.webcream.rendering.html.ColorFontMap
public class ColorFontMap
Helper class that appends formatting such as colors and fonts for a component if the component formatting is different from the Swing default.
| Constructor Summary | |
|---|---|
ColorFontMap()
|
|
| Method Summary | |
|---|---|
static void |
appendHexColor(java.lang.StringBuffer buffer,
java.awt.Color color)
Appends the hex representation of the Java color to the given string buffer. |
static void |
appendHexValue(java.lang.StringBuffer buffer,
int i)
Appends a hex value of the integer to the string buffer |
static java.lang.String |
getComponentKnownClassName(java.awt.Component comp)
Returns the known AWT/Swing class name of the component. |
static java.lang.String |
getComponentStyle(HTMLPage page,
java.awt.Component comp)
Returns an HTML representation of the component formatting properties as they should appear in "style" property |
static java.lang.String |
getContainerStyle(HTMLPage page,
java.awt.Component comp)
Returns the container formatting properties such as the background color |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorFontMap()
| Method Detail |
|---|
public static java.lang.String getComponentStyle(HTMLPage page,
java.awt.Component comp)
page - HTML Pagecomp - Component
public static java.lang.String getContainerStyle(HTMLPage page,
java.awt.Component comp)
page - HTMLPagecomp - Component
public static void appendHexColor(java.lang.StringBuffer buffer,
java.awt.Color color)
buffer - StringBuffercolor - Color
public static void appendHexValue(java.lang.StringBuffer buffer,
int i)
buffer - StringBufferi - integerpublic static java.lang.String getComponentKnownClassName(java.awt.Component comp)
comp - Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||