fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media
Class RealCSSTextFormatter
java.lang.Object
fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.RealCSSTextFormatter
- public class RealCSSTextFormatter
- extends java.lang.Object
Reads in a style string and formats a text component (font, color).
- Author:
- Kari Pihkala, Mikko Honkala
|
Field Summary |
protected org.w3c.dom.css.CSSStyleDeclaration |
cssStyle
|
|
Method Summary |
void |
formatComponent(java.awt.Component comp)
|
java.awt.Font |
getFont()
Returns the Font accoring to the cssStyle variable. |
org.w3c.dom.css.CSSValue |
getProperty(java.lang.String property)
Returns the specified property's CSSValue. |
void |
setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cssStyle
protected org.w3c.dom.css.CSSStyleDeclaration cssStyle
RealCSSTextFormatter
public RealCSSTextFormatter()
setStyle
public void setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
formatComponent
public void formatComponent(java.awt.Component comp)
getProperty
public org.w3c.dom.css.CSSValue getProperty(java.lang.String property)
- Returns the specified property's CSSValue.
- Parameters:
property - The name of the property to return.
- Returns:
- The specified property's CSSValue.
getFont
public java.awt.Font getFont()
- Returns the Font accoring to the cssStyle variable.
- Returns:
- The Font that should be used when painting this element.
X-Smiles 1.2