fi.hut.tml.xsmiles.gui.components.awt
Class AWTCSSFormatter

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.CSSFormatter
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTCSSFormatter
Direct Known Subclasses:
SwingCSSFormatter

public class AWTCSSFormatter
extends CSSFormatter

CSS specific operations on components

Author:
Mikko Honkala

Field Summary
protected static CSSFormatter formatter
           
 
Constructor Summary
AWTCSSFormatter()
           
 
Method Summary
 void formatComponent(java.awt.Component comp, org.w3c.dom.css.CSSStyleDeclaration style, java.awt.Color defaultComponentColor)
          applies CSS formatting to a swing component.
 void formatComponent(java.awt.Component comp, org.w3c.dom.css.CSSStyleDeclaration style, java.awt.Color defaultComponentColor, double zoom)
          applies CSS formatting to a swing component.
static CSSFormatter getInstance()
           
static java.awt.Color getTransparentColor()
           
 void setTransparency(java.awt.Component comp, java.awt.Color bgcolor, boolean transparent)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.CSSFormatter
getCaptionSide, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatter

protected static CSSFormatter formatter
Constructor Detail

AWTCSSFormatter

public AWTCSSFormatter()
Method Detail

getInstance

public static CSSFormatter getInstance()

formatComponent

public void formatComponent(java.awt.Component comp,
                            org.w3c.dom.css.CSSStyleDeclaration style,
                            java.awt.Color defaultComponentColor)
Description copied from class: CSSFormatter
applies CSS formatting to a swing component. this could be used for AWT components as well without the Opaque - setting

Specified by:
formatComponent in class CSSFormatter

formatComponent

public void formatComponent(java.awt.Component comp,
                            org.w3c.dom.css.CSSStyleDeclaration style,
                            java.awt.Color defaultComponentColor,
                            double zoom)
Description copied from class: CSSFormatter
applies CSS formatting to a swing component. this could be used for AWT components as well without the Opaque - setting

Specified by:
formatComponent in class CSSFormatter

setTransparency

public void setTransparency(java.awt.Component comp,
                            java.awt.Color bgcolor,
                            boolean transparent)

getTransparentColor

public static java.awt.Color getTransparentColor()


X-Smiles 1.2