Java Code Examples for org.pentaho.reporting.engine.classic.core.ClassicEngineBoot#isEnforceCompatibilityFor()
The following examples show how to use
org.pentaho.reporting.engine.classic.core.ClassicEngineBoot#isEnforceCompatibilityFor() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BarLineChartExpression.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
public void reconfigureForCompatibility( final int versionTag ) { super.reconfigureForCompatibility( versionTag ); if ( ClassicEngineBoot.isEnforceCompatibilityFor( versionTag, 3, 8 ) ) { setLineAxisAutoRange( getLineRangeMinimum() == 0 && getLineRangeMaximum() == 1 ); } }
Example 2
Source File: ComputeStaticPropertiesProcessStep.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
public void initialize( final OutputProcessorMetaData metaData, final ProcessingContext processingContext ) { this.metaData = metaData; this.overflowXSupported = metaData.isFeatureSupported( OutputProcessorFeature.ASSUME_OVERFLOW_X ); this.overflowYSupported = metaData.isFeatureSupported( OutputProcessorFeature.ASSUME_OVERFLOW_Y ); this.widowsEnabled = !ClassicEngineBoot.isEnforceCompatibilityFor( processingContext.getCompatibilityLevel(), 3, 8 ); this.widowOrphanDefinitionsEncountered = false; this.designTime = metaData.isFeatureSupported( OutputProcessorFeature.DESIGNTIME ); this.resourceManager = processingContext.getResourceManager(); }
Example 3
Source File: CategoricalChartExpression.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 4 votes |
public void reconfigureForCompatibility( final int versionTag ) { if ( ClassicEngineBoot.isEnforceCompatibilityFor( versionTag, 3, 8 ) ) { setAutoRange( getRangeMinimum() == 0 && getRangeMaximum() == 1 ); } }
Example 4
Source File: XYChartExpression.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 4 votes |
public void reconfigureForCompatibility( final int versionTag ) { if ( ClassicEngineBoot.isEnforceCompatibilityFor( versionTag, 3, 8 ) ) { setRangeAxisAutoRange( getRangeMinimum() == 0 && getRangeMaximum() == 1 ); setDomainAxisAutoRange( getDomainMinimum() == 0 && getDomainMaximum() == 1 ); } }
Example 5
Source File: XYBarChartExpression.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 4 votes |
protected void configureChart( final JFreeChart chart ) { super.configureChart( chart ); final XYPlot xypl = chart.getXYPlot(); final XYItemRenderer renderer = xypl.getRenderer(); final XYBarRenderer br = (XYBarRenderer) renderer; br.setDrawBarOutline( isChartSectionOutline() ); if ( margin != null ) { br.setMargin( margin.doubleValue() ); } br.setShadowVisible( shadowVisible ); br.setShadowXOffset( shadowXOffset ); br.setShadowYOffset( shadowYOffset ); if ( ( isStacked() ) && renderPercentages && ( br instanceof StackedXYBarRenderer ) ) { final StackedXYBarRenderer sbr = (StackedXYBarRenderer) br; sbr.setRenderAsPercentages( true ); final ValueAxis rangeAxis = xypl.getRangeAxis(); final int level = getRuntime().getProcessingContext().getCompatibilityLevel(); if ( ClassicEngineBoot.isEnforceCompatibilityFor( level, 3, 8 ) ) { if ( getRangeMinimum() != 0 ) { rangeAxis.setLowerBound( getRangeMinimum() ); } if ( getRangeMaximum() != 1 ) { rangeAxis.setUpperBound( getRangeMaximum() ); } if ( getRangeMinimum() == 0 && getRangeMaximum() == 0 ) { rangeAxis.setLowerBound( 0 ); rangeAxis.setUpperBound( 1 ); rangeAxis.setAutoRange( true ); } } else { rangeAxis.setLowerBound( getRangeMinimum() ); rangeAxis.setUpperBound( getRangeMaximum() ); rangeAxis.setAutoRange( isRangeAxisAutoRange() ); } } }
Example 6
Source File: PageableRenderer.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 4 votes |
public void startReport( final ReportDefinition report, final ProcessingContext processingContext, final PerformanceMonitorContext performanceMonitorContext ) { super.startReport( report, processingContext, performanceMonitorContext ); pageCount = 0; widowsEnabled = !ClassicEngineBoot.isEnforceCompatibilityFor( processingContext.getCompatibilityLevel(), 3, 8 ); }