fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media
Class CSSTextFormatter
java.lang.Object
fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter
- public class CSSTextFormatter
- extends java.lang.Object
Reads in a style string and formats a text component (font, color).
- Author:
- Kari Pihkala, Mikko Honkala
|
Field Summary |
protected fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter.CSSStyleDeclaration |
cssStyle
|
|
Method Summary |
void |
formatComponent(java.awt.Component comp)
|
java.awt.Font |
getFont()
Returns the Font accoring to the cssStyle variable. |
fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter.CSSValue |
getProperty(java.lang.String property)
Returns the specified property's CSSValue. |
void |
setStyle(fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter.CSSStyleDeclaration style)
|
void |
setStyle(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cssStyle
protected fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter.CSSStyleDeclaration cssStyle
CSSTextFormatter
public CSSTextFormatter()
setStyle
public void setStyle(fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter.CSSStyleDeclaration style)
setStyle
public void setStyle(java.lang.String s)
formatComponent
public void formatComponent(java.awt.Component comp)
getProperty
public fi.hut.tml.xsmiles.mlfc.smil.viewer.havi.media.CSSTextFormatter.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