Package org.jfree.layouting.output
Class AbstractOutputProcessorMetaData
- java.lang.Object
-
- org.jfree.layouting.output.AbstractOutputProcessorMetaData
-
- All Implemented Interfaces:
OutputProcessorMetaData
- Direct Known Subclasses:
GraphicsOutputProcessorMetaData,HtmlOutputProcessorMetaData,PdfOutputProcessorMetaData,PlaintextOutputMetaData
public abstract class AbstractOutputProcessorMetaData extends java.lang.Object implements OutputProcessorMetaData
Creation-Date: 02.01.2006, 18:39:46- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOutputProcessorMetaData(org.pentaho.reporting.libraries.fonts.registry.FontStorage fontStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFeature(OutputProcessorFeature.BooleanOutputProcessorFeature feature)PageSizegetDefaultPageSize()Returns the default physical page size.org.pentaho.reporting.libraries.fonts.registry.FontFamilygetFontFamilyForGenericName(CSSConstant genericName)org.pentaho.reporting.libraries.fonts.registry.FontMetricsgetFontMetrics(FontSpecification spec)protected org.pentaho.reporting.libraries.fonts.registry.FontRegistrygetFontRegistry()doublegetFontSize(CSSConstant constant)org.pentaho.reporting.libraries.fonts.registry.FontStoragegetFontStorage()Although most font systems are global, some may have some issues with caching.intgetHorizontalPageSpan()Returns the horizontal page span.java.lang.StringgetMediaType()Returns the media type of the output target.java.lang.StringgetNormalizedFontFamilyName(java.lang.String name)doublegetNumericFeatureValue(OutputProcessorFeature.NumericOutputProcessorFeature feature)java.lang.Class[]getSupportedResourceTypes()intgetVerticalPageSpan()Returns the vertical page span.booleanisFeatureSupported(OutputProcessorFeature.BooleanOutputProcessorFeature feature)booleanisValid(FontSpecification spec)protected voidsetFamilyMapping(CSSConstant family, java.lang.String name)protected voidsetNumericFeatureValue(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.jfree.layouting.output.OutputProcessorMetaData
getDefaultFontFamily, getExportDescriptor, isIterative
-
-
-
-
Method Detail
-
setFamilyMapping
protected void setFamilyMapping(CSSConstant family, java.lang.String name)
-
getFontSize
public double getFontSize(CSSConstant constant)
- Specified by:
getFontSizein interfaceOutputProcessorMetaData
-
addFeature
protected void addFeature(OutputProcessorFeature.BooleanOutputProcessorFeature feature)
-
isFeatureSupported
public boolean isFeatureSupported(OutputProcessorFeature.BooleanOutputProcessorFeature feature)
- Specified by:
isFeatureSupportedin interfaceOutputProcessorMetaData
-
setNumericFeatureValue
protected void setNumericFeatureValue(OutputProcessorFeature.NumericOutputProcessorFeature feature, double value)
-
getNumericFeatureValue
public double getNumericFeatureValue(OutputProcessorFeature.NumericOutputProcessorFeature feature)
- Specified by:
getNumericFeatureValuein interfaceOutputProcessorMetaData
-
getFontStorage
public org.pentaho.reporting.libraries.fonts.registry.FontStorage getFontStorage()
Although most font systems are global, some may have some issues with caching. OutputTargets may have to tweak the font storage system to their needs.- Specified by:
getFontStoragein interfaceOutputProcessorMetaData- Returns:
-
getNormalizedFontFamilyName
public java.lang.String getNormalizedFontFamilyName(java.lang.String name)
- Specified by:
getNormalizedFontFamilyNamein interfaceOutputProcessorMetaData
-
getFontFamilyForGenericName
public org.pentaho.reporting.libraries.fonts.registry.FontFamily getFontFamilyForGenericName(CSSConstant genericName)
- Specified by:
getFontFamilyForGenericNamein interfaceOutputProcessorMetaData
-
getFontRegistry
protected org.pentaho.reporting.libraries.fonts.registry.FontRegistry getFontRegistry()
-
getDefaultPageSize
public PageSize getDefaultPageSize()
Description copied from interface:OutputProcessorMetaDataReturns the default physical page size. If not defined otherwise, this will also be the logical size.- Specified by:
getDefaultPageSizein interfaceOutputProcessorMetaData- Returns:
-
getVerticalPageSpan
public int getVerticalPageSpan()
Returns the vertical page span. If the value is zero or negative, no- Specified by:
getVerticalPageSpanin interfaceOutputProcessorMetaData- Returns:
-
getHorizontalPageSpan
public int getHorizontalPageSpan()
Description copied from interface:OutputProcessorMetaDataReturns the horizontal page span. If the value is less than one, it will be corrected to one.- Specified by:
getHorizontalPageSpanin interfaceOutputProcessorMetaData- Returns:
-
getMediaType
public java.lang.String getMediaType()
Description copied from interface:OutputProcessorMetaDataReturns the media type of the output target. This corresponds directly to the CSS defined media types and is used as a selector.- Specified by:
getMediaTypein interfaceOutputProcessorMetaData- Returns:
- the media type of the output target.
-
isValid
public boolean isValid(FontSpecification spec)
- Specified by:
isValidin interfaceOutputProcessorMetaData
-
getFontMetrics
public org.pentaho.reporting.libraries.fonts.registry.FontMetrics getFontMetrics(FontSpecification spec)
- Specified by:
getFontMetricsin interfaceOutputProcessorMetaData
-
getSupportedResourceTypes
public java.lang.Class[] getSupportedResourceTypes()
- Specified by:
getSupportedResourceTypesin interfaceOutputProcessorMetaData
-
-