/** * Returns the global configuration as extended configuration. * * @return the extended configuration. */ public synchronized ExtendedConfiguration getExtendedConfig() { if ( extWrapper == null ) { extWrapper = new ExtendedConfigurationWrapper( getGlobalConfig() ); } return extWrapper; }
final ExtendedConfigurationWrapper config = new ExtendedConfigurationWrapper( proc.getConfiguration() ); config.getIntProperty( "org.pentaho.reporting.engine.classic.core.performance.pagestates.PrimaryPoolSize", PRIMARY_MAX ); this.secondaryPoolFrequency = config.getIntProperty( "org.pentaho.reporting.engine.classic.core.performance.pagestates.SecondaryPoolFrequency", MASTERPOSITIONS_MED ); this.secondaryPoolSize = config.getIntProperty( "org.pentaho.reporting.engine.classic.core.performance.pagestates.SecondaryPoolSize", MASTER4_MAX ) + primaryPoolSize; this.tertiaryPoolFrequency = config.getIntProperty( "org.pentaho.reporting.engine.classic.core.performance.pagestates.TertiaryPoolFrequency", MASTERPOSITIONS_MAX );
/** * Returns the boolean value of a given configuration property. The boolean value true is returned, if the contained * string is equal to 'true'. * * @param name the name of the property * @return the boolean value of the property. */ public boolean getBoolProperty( final String name ) { return getBoolProperty( name, false ); }
/** * Returns a given property as int value. Zero is returned if the property value is no number or the property is not * set. * * @param name the name of the property * @return the parsed number value or zero */ public int getIntProperty( final String name ) { return getIntProperty( name, 0 ); }
/** * Returns a given property as int value. Zero is returned if the * property value is no number or the property is not set. * * @param name the name of the property * @return the parsed number value or zero */ public int getIntProperty(final String name) { return getIntProperty(name, 0); }
/** * Returns the global configuration as extended configuration. * * @return the extended configuration. */ public synchronized ExtendedConfiguration getExtendedConfig() { if (extWrapper == null) { extWrapper = new ExtendedConfigurationWrapper(getGlobalConfig()); } return extWrapper; }
/** * Returns the boolean value of a given configuration property. The boolean value true * is returned, if the contained string is equal to 'true'. * * @param name the name of the property * @return the boolean value of the property. */ public boolean getBoolProperty(final String name) { return getBoolProperty(name, false); }
public boolean initialize( final SwingGuiContext context ) { if ( context == null ) { throw new NullPointerException( "AbstractActionPlugin.initialize(..): Context parameter cannot be null" ); } if ( this.context != context ) { this.context = context; this.iconTheme = context.getIconTheme(); this.configuration = new ExtendedConfigurationWrapper( context.getConfiguration() ); this.baseResources = new ResourceBundleSupport( context.getLocale(), SwingCommonModule.BUNDLE_NAME, ObjectUtilities .getClassLoader( SwingCommonModule.class ) ); } return true; }
public void initialize( final Configuration configuration ) { super.initialize( configuration ); addFeature( OutputProcessorFeature.FAST_FONTRENDERING ); addFeature( OutputProcessorFeature.BACKGROUND_IMAGE ); addFeature( OutputProcessorFeature.PAGE_SECTIONS ); addFeature( OutputProcessorFeature.SPACING_SUPPORTED ); if ( "true" .equals( configuration .getConfigProperty( "org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.WatermarkPrinted" ) ) ) { addFeature( OutputProcessorFeature.WATERMARK_SECTION ); } final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration ); final double deviceResolution = extendedConfig.getIntProperty( "org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.DeviceResolution", 0 ); if ( deviceResolution > 0 ) { setNumericFeatureValue( OutputProcessorFeature.DEVICE_RESOLUTION, deviceResolution ); } if ( "true" .equals( configuration .getConfigProperty( "org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.AssumeOverflowX" ) ) ) { addFeature( OutputProcessorFeature.ASSUME_OVERFLOW_X ); } if ( "true" .equals( configuration .getConfigProperty( "org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.AssumeOverflowY" ) ) ) { addFeature( OutputProcessorFeature.ASSUME_OVERFLOW_Y ); } }
this.lookupKey = new FontMetricsKey(); final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration );
final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration ); final double deviceResolution = extendedConfig.getIntProperty(
final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration ); final double deviceResolution = extendedConfig.getIntProperty(
final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration ); final double deviceResolution = extendedConfig.getIntProperty(
addFeature( OutputProcessorFeature.WATERMARK_SECTION ); final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration ); final double deviceResolution = extendedConfig.getIntProperty(
final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration ); final double deviceResolution = extendedConfig.getIntProperty(
final ExtendedConfiguration extendedConfig = new ExtendedConfigurationWrapper( configuration );