public class StylesheetFactoryImpl extends Object implements StylesheetFactory
| Constructor and Description |
|---|
StylesheetFactoryImpl(UserAgentCallback userAgentCallback) |
| Modifier and Type | Method and Description |
|---|---|
Stylesheet |
getStylesheet(StylesheetInfo info)
Returns a sheet by its key
null if not able to load
|
Stylesheet |
parse(Reader reader,
StylesheetInfo info) |
Ruleset |
parseStyleDeclaration(int origin,
String styleDeclaration) |
void |
setSupportCMYKColors(boolean b) |
void |
setUserAgentCallback(UserAgentCallback userAgent) |
public StylesheetFactoryImpl(UserAgentCallback userAgentCallback)
public Stylesheet parse(Reader reader, StylesheetInfo info)
parse in interface StylesheetFactorypublic Ruleset parseStyleDeclaration(int origin, String styleDeclaration)
parseStyleDeclaration in interface StylesheetFactorypublic Stylesheet getStylesheet(StylesheetInfo info)
getStylesheet in interface StylesheetFactoryinfo - The StylesheetInfo for this sheetpublic void setUserAgentCallback(UserAgentCallback userAgent)
public void setSupportCMYKColors(boolean b)
Copyright © 2004–2025. All rights reserved.