Class AbstractOutputMetaData
java.lang.Object
org.pentaho.reporting.libraries.css.dom.AbstractOutputMetaData
- All Implemented Interfaces:
LayoutOutputMetaData
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractOutputMetaData
(org.pentaho.reporting.libraries.base.config.Configuration configuration) protected
AbstractOutputMetaData
(org.pentaho.reporting.libraries.base.config.Configuration configuration, org.pentaho.reporting.libraries.fonts.registry.FontStorage fontStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
commit()
org.pentaho.reporting.libraries.base.config.Configuration
org.pentaho.reporting.libraries.fonts.registry.FontMetrics
getFontMetrics
(String fontFamily, double fontSize, boolean bold, boolean italics, String encoding, boolean embedded, boolean antiAliasing) Computes the font-metrics using the given properties.org.pentaho.reporting.libraries.fonts.registry.FontMetrics
getFontMetrics
(LayoutStyle styleSheet) Returns the font metrics for the font specified in the style sheet.protected org.pentaho.reporting.libraries.fonts.registry.FontRegistry
protected org.pentaho.reporting.libraries.fonts.registry.FontStorage
Resolve one of the built-in fonts.double
boolean
isContentSupported
(Object content) boolean
protected void
protected void
setFamilyMapping
(CSSValue family, CSSValue name) protected void
setNumericFeatureValue
(OutputProcessorFeature.NumericOutputProcessorFeature feature, double value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.reporting.libraries.css.dom.LayoutOutputMetaData
getNormalizedFontFamilyName, getNormalizedFontFamilyName
-
Constructor Details
-
AbstractOutputMetaData
protected AbstractOutputMetaData(org.pentaho.reporting.libraries.base.config.Configuration configuration) -
AbstractOutputMetaData
protected AbstractOutputMetaData(org.pentaho.reporting.libraries.base.config.Configuration configuration, org.pentaho.reporting.libraries.fonts.registry.FontStorage fontStorage)
-
-
Method Details
-
getConfiguration
public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration() -
setFamilyMapping
-
addFeature
-
removeFeature
-
isFeatureSupported
- Specified by:
isFeatureSupported
in interfaceLayoutOutputMetaData
-
setNumericFeatureValue
protected void setNumericFeatureValue(OutputProcessorFeature.NumericOutputProcessorFeature feature, double value) -
getNumericFeatureValue
- Specified by:
getNumericFeatureValue
in interfaceLayoutOutputMetaData
-
isContentSupported
- Specified by:
isContentSupported
in interfaceLayoutOutputMetaData
-
getFontRegistry
protected org.pentaho.reporting.libraries.fonts.registry.FontRegistry getFontRegistry() -
getFontStorage
protected org.pentaho.reporting.libraries.fonts.registry.FontStorage getFontStorage() -
getFontMetrics
public org.pentaho.reporting.libraries.fonts.registry.FontMetrics getFontMetrics(String fontFamily, double fontSize, boolean bold, boolean italics, String encoding, boolean embedded, boolean antiAliasing) throws IllegalArgumentException Computes the font-metrics using the given properties. This method is a implementation detail. Use it in an output target, but be aware that it may change between releases.- Parameters:
fontFamily
- the font family.fontSize
- the font size.bold
- a flag indicating whether the font should be displayed in bold.italics
- a flag indicating whether the font should be displayed in italics.encoding
- a valid font encoding, can be null to use the default.embedded
- a flag indicating whether the font is intended for embedded use.antiAliasing
- a flag indicating whether the font should be rendered in aliased mode.- Returns:
- the font metrics, never null.
- Throws:
IllegalArgumentException
- if the font family was invalid and no default family could be located.
-
getFontMetrics
public org.pentaho.reporting.libraries.fonts.registry.FontMetrics getFontMetrics(LayoutStyle styleSheet) throws IllegalArgumentException Returns the font metrics for the font specified in the style sheet. NOTE: This method will throw anIllegalArgumentException
if the specified font family can not be found and the default font family can not be found- Specified by:
getFontMetrics
in interfaceLayoutOutputMetaData
- Parameters:
styleSheet
- ths style sheet from which the font information will be extracted- Returns:
- FontMetrics for the specified font. If the font family can not be found, the FontMetrics for the default font family will be returned
- Throws:
IllegalArgumentException
- indicated the font metrics could not be determined (this is thrown since methods depending upon this method can not handle anull
return).
-
commit
public void commit() -
getDefaultPageSize
- Specified by:
getDefaultPageSize
in interfaceLayoutOutputMetaData
-
getNormalizedFontFamilyName
Resolve one of the built-in fonts.- Parameters:
name
-- Returns:
-
getDefaultFontFamily
- Specified by:
getDefaultFontFamily
in interfaceLayoutOutputMetaData
-