de.betabeans.scroogexhtml.translator
Class Stylesheet

java.lang.Object
  extended by de.betabeans.scroogexhtml.translator.Stylesheet

public abstract class Stylesheet
extends java.lang.Object

CSS support class (abstract).

Author:
Michael Justin

Method Summary
static java.lang.String getCharacterStyles(ParagraphProperties pp, CharacterProperties cp, boolean transitional, byte fontSizeUnit)
          Returns the character styles value.
static java.lang.String getFontSizeStyle(int pt, byte fontSizeUnit)
          Returns the font size style value.
static java.lang.String getIndentAndDirectionStyle(ParagraphProperties pp)
          Builds a CSS style string which represents the margins and text direction of the paragraph object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIndentAndDirectionStyle

public static java.lang.String getIndentAndDirectionStyle(ParagraphProperties pp)
Builds a CSS style string which represents the margins and text direction of the paragraph object.

Parameters:
pp - The paragraph object.
Returns:
The CSS style string.

getFontSizeStyle

public static final java.lang.String getFontSizeStyle(int pt,
                                                      byte fontSizeUnit)
Returns the font size style value.

Parameters:
pt - int The font size in point.
fontSizeUnit - byte The font size unit.
Returns:
String The "font-size:..." style definition.

getCharacterStyles

public static java.lang.String getCharacterStyles(ParagraphProperties pp,
                                                  CharacterProperties cp,
                                                  boolean transitional,
                                                  byte fontSizeUnit)
Returns the character styles value.

Parameters:
pp - ParagraphProperties
cp - CharacterProperties
transitional - boolean
fontSizeUnit - byte
Returns:
String


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.