|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.style.css.AbstractStyleDatabase
info.informatica.doc.style.css.j2d.Java2DStyleDatabase
info.informatica.doc.style.css.j2d.HeadlessStyleDatabase
public class HeadlessStyleDatabase
CSS style database for headless devices.
Useful for testing.
| Field Summary |
|---|
| Fields inherited from class info.informatica.doc.style.css.AbstractStyleDatabase |
|---|
DEFAULT_GENERIC_FONT_FAMILY, DEFAULT_INITIAL_COLOR |
| Constructor Summary | |
|---|---|
HeadlessStyleDatabase()
|
|
| Method Summary | |
|---|---|
protected float |
cmToPixels(float cm)
Converts from centimeters to pixels. |
protected float |
deviceResolutionFactor()
This method is used to normalize sizes to a 1024x768 screen. |
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. |
protected float |
pxTocm(int px)
Converts from pixels to centimeters. |
| Methods inherited from class info.informatica.doc.style.css.j2d.Java2DStyleDatabase |
|---|
clipColorValue, clipColorValue, getAWTColor, getDefaultGenericFontFamily, getFontSizeFromIdentifier, getGraphicsConfiguration, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeadlessStyleDatabase()
| Method Detail |
|---|
protected float deviceResolutionFactor()
Java2DStyleDatabase
deviceResolutionFactor in class Java2DStyleDatabaseprotected float cmToPixels(float cm)
AbstractStyleDatabase
cmToPixels in class Java2DStyleDatabasecm - the value, in centimeters, to be converted.
protected float pxTocm(int px)
AbstractStyleDatabase
pxTocm in class Java2DStyleDatabasepx - the value, in pixels, to be converted.
public float getDocumentHeight()
StyleDatabase
getDocumentHeight in interface StyleDatabasegetDocumentHeight in class Java2DStyleDatabasepublic float getDocumentWidth()
StyleDatabase
getDocumentWidth in interface StyleDatabasegetDocumentWidth in class Java2DStyleDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||