|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.onemind.swingweb.templaterender.helper.AwtCssEncoder
For encoding component style
| Constructor Summary | |
AwtCssEncoder()
Constructor |
|
| Method Summary | |
java.lang.StringBuffer |
encodeColor(org.onemind.commons.java.html.css.Css.Attr attr,
java.awt.Color clr,
java.lang.StringBuffer sb)
Encode the color |
java.lang.StringBuffer |
encodeCssAttr(org.onemind.commons.java.html.css.Css.Attr attr,
org.onemind.commons.java.html.css.Css.AttrValue value,
java.lang.StringBuffer sb)
Encode the css attr |
java.lang.StringBuffer |
encodeCssAttr(org.onemind.commons.java.html.css.Css.Attr attr,
java.lang.String value,
org.onemind.commons.java.html.css.Css.AttrUnit unit,
java.lang.StringBuffer sb)
Encode the css field and value |
java.lang.StringBuffer |
encodeCssAttr(org.onemind.commons.java.html.css.Css.Attr attr,
java.lang.String value,
java.lang.StringBuffer sb)
Encode the css field and value |
void |
encodeDimension(java.awt.Dimension d,
java.lang.StringBuffer sb)
Encode the dimension |
void |
encodeFont(java.awt.Font font,
java.lang.StringBuffer sb)
Encode the font style |
java.lang.StringBuffer |
encodeFontSize(int i,
java.lang.StringBuffer sb)
Encode the css field and value |
void |
encodeHeight(double height,
java.lang.StringBuffer sb)
encode the height |
void |
encodeWidth(double width,
java.lang.StringBuffer sb)
encode the width |
protected java.lang.String |
toHex(java.awt.Color clr)
To hex color string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AwtCssEncoder()
| Method Detail |
public java.lang.StringBuffer encodeColor(org.onemind.commons.java.html.css.Css.Attr attr,
java.awt.Color clr,
java.lang.StringBuffer sb)
attr - the css attributeclr - the colorsb - the buffer
public java.lang.StringBuffer encodeCssAttr(org.onemind.commons.java.html.css.Css.Attr attr,
org.onemind.commons.java.html.css.Css.AttrValue value,
java.lang.StringBuffer sb)
attr - the attributevalue - the valuesb - the StringBuffer
public java.lang.StringBuffer encodeCssAttr(org.onemind.commons.java.html.css.Css.Attr attr,
java.lang.String value,
java.lang.StringBuffer sb)
attr - the attributevalue - the valuesb - the StringBuffer
public java.lang.StringBuffer encodeFontSize(int i,
java.lang.StringBuffer sb)
i - the font sizesb - the StringBuffer
public java.lang.StringBuffer encodeCssAttr(org.onemind.commons.java.html.css.Css.Attr attr,
java.lang.String value,
org.onemind.commons.java.html.css.Css.AttrUnit unit,
java.lang.StringBuffer sb)
attr - the attributevalue - the valueunit - the unitsb - the StringBuffer
protected java.lang.String toHex(java.awt.Color clr)
clr - the color
public void encodeFont(java.awt.Font font,
java.lang.StringBuffer sb)
font - the fontsb - the string buffer
public void encodeWidth(double width,
java.lang.StringBuffer sb)
width - the widthsb - the buffer
public void encodeHeight(double height,
java.lang.StringBuffer sb)
height - the heightsb - the buffer
public void encodeDimension(java.awt.Dimension d,
java.lang.StringBuffer sb)
d - the dimensionsb - the encoded dimension
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||