fi.hut.tml.xsmiles.csslayout
Class Adapter

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.Adapter

public class Adapter
extends java.lang.Object

Author:
Alessandro TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
protected  int heightCont
           
protected  CSSRenderer renderer
           
protected  int widthCont
           
 
Constructor Summary
Adapter(CSSRenderer renderer)
           
 
Method Summary
 java.awt.Font getCSSFontObj(View view, org.w3c.dom.css.CSSStyleDeclaration style)
           
 int getImageSize(int orig)
           
 int getMeasure(org.w3c.dom.css.CSSValue v)
           
 int getMeasure(View view, org.w3c.dom.css.CSSStyleDeclaration style, java.lang.String what)
           
 int getScaledSize(View view, int orig)
           
 java.lang.String getStringValue(View view, org.w3c.dom.css.CSSStyleDeclaration style, java.lang.String what)
           
 boolean isPercentageValue(View view, org.w3c.dom.css.CSSStyleDeclaration style, java.lang.String property)
           
 java.awt.Color parseColor(View view, org.w3c.dom.css.CSSValue color)
           
 void setFontZoom(double zoom)
           
 void setWSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

protected CSSRenderer renderer

widthCont

protected int widthCont

heightCont

protected int heightCont
Constructor Detail

Adapter

public Adapter(CSSRenderer renderer)
Method Detail

setFontZoom

public void setFontZoom(double zoom)

setWSize

public void setWSize()

getStringValue

public java.lang.String getStringValue(View view,
                                       org.w3c.dom.css.CSSStyleDeclaration style,
                                       java.lang.String what)

getMeasure

public int getMeasure(org.w3c.dom.css.CSSValue v)

getMeasure

public int getMeasure(View view,
                      org.w3c.dom.css.CSSStyleDeclaration style,
                      java.lang.String what)

getImageSize

public int getImageSize(int orig)

getScaledSize

public int getScaledSize(View view,
                         int orig)

isPercentageValue

public boolean isPercentageValue(View view,
                                 org.w3c.dom.css.CSSStyleDeclaration style,
                                 java.lang.String property)

getCSSFontObj

public java.awt.Font getCSSFontObj(View view,
                                   org.w3c.dom.css.CSSStyleDeclaration style)

parseColor

public java.awt.Color parseColor(View view,
                                 org.w3c.dom.css.CSSValue color)


X-Smiles 1.2