info.informatica.doc.style.css.j2d
Class HeadlessStyleDatabase

java.lang.Object
  extended by info.informatica.doc.style.css.AbstractStyleDatabase
      extended by info.informatica.doc.style.css.j2d.Java2DStyleDatabase
          extended by info.informatica.doc.style.css.j2d.HeadlessStyleDatabase
All Implemented Interfaces:
StyleDatabase

public class HeadlessStyleDatabase
extends Java2DStyleDatabase

CSS style database for headless devices.

Useful for testing.


Field Summary
 
Fields inherited from class info.informatica.doc.style.css.AbstractStyleDatabase
DEFAULT_INITIAL_COLOR
 
Constructor Summary
HeadlessStyleDatabase()
           
 
Method Summary
 float getDocumentHeight()
          Gets the height of the document (or screen viewport) in the natural unit for the device.
 float getDocumentWidth()
          Gets the width of the document (or screen viewport) in the natural unit for the device.
 
Methods inherited from class info.informatica.doc.style.css.j2d.Java2DStyleDatabase
getAWTColor, getDefaultGenericFontFamily, getFontSizeFromIdentifier, getNaturalUnit, getWidthSize, isFontFamilyAvailable, setGraphicsConfiguration, setNaturalUnit
 
Methods inherited from class info.informatica.doc.style.css.AbstractStyleDatabase
floatValueConversion, floatValueConversion, getDefaultGenericFontFamily, getExSizeInPt, getInitialColor, getScrollbarWidth, setInitialColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadlessStyleDatabase

public HeadlessStyleDatabase()
Method Detail

getDocumentHeight

public float getDocumentHeight()
Description copied from interface: StyleDatabase
Gets the height of the document (or screen viewport) in the natural unit for the device.

Specified by:
getDocumentHeight in interface StyleDatabase
Overrides:
getDocumentHeight in class Java2DStyleDatabase
Returns:
the height of the document.

getDocumentWidth

public float getDocumentWidth()
Description copied from interface: StyleDatabase
Gets the width of the document (or screen viewport) in the natural unit for the device.

Specified by:
getDocumentWidth in interface StyleDatabase
Overrides:
getDocumentWidth in class Java2DStyleDatabase
Returns:
the width of the document.