public void deinit() { this.paragraph = null; this.suspendItem = null; this.contexts.clear(); }
public void init( final ParagraphRenderBox paragraph ) { if ( paragraph == null ) { throw new NullPointerException(); } this.paragraph = paragraph; this.contexts.clear(); this.suspendItem = null; }
public void deinitialize() { this.pageGrid = null; this.pendingElements.clear(); this.contexts.clear(); this.sequenceFill = 0; }
private void resetStates() { Arrays.fill( objects, null ); dcStack.clear(); dcStack.push( new MfDcState( this ) ); }
public void init( final StyleKeyRegistry styleKeyRegistry, final ResourceManager resourceManager, final ResourceKey source, final long version, final StyleRule parentRule ) { if ( styleKeyRegistry == null ) { throw new NullPointerException(); } if ( resourceManager == null ) { throw new NullPointerException(); } this.styleKeyRegistry = styleKeyRegistry; this.resourceManager = resourceManager; this.source = source; if ( source != null ) { this.dependencies = new DependencyCollector( source, version ); } this.parentRules.clear(); if ( parentRule != null ) { parentRules.push( parentRule ); } this.namespaces.clear(); }
public void reset() { // logger.debug("g.reset()"); groupCounts.clear(); keys.clear(); groupCounts.add( 0 ); currentGroupIndex = -1; }
public void compute( final RenderBox box, final TextElementArray cell, final RTFImageCache imageCache ) { this.context.clear(); this.context.push( new StyleContext( cell, box.getStyleSheet(), metaData ) ); this.imageCache = imageCache; super.compute( box ); }
/** * Clones the function. * <P> * Be aware, this does not create a deep copy. If you have complex strucures contained in objects, you have to * override this function. * * @return a clone of this function. * @throws CloneNotSupportedException * this should never happen. */ public final Object clone() throws CloneNotSupportedException { final DefaultOutputFunction sl = (DefaultOutputFunction) super.clone(); sl.repeatingFooterValidator = repeatingFooterValidator.clone(); sl.currentEvent = null; sl.inlineSubreports = (ArrayList<InlineSubreportMarker>) inlineSubreports.clone(); sl.outputHandlers = outputHandlers.clone(); sl.renderedCrosstabLayouts = renderedCrosstabLayouts.clone(); sl.renderedCrosstabLayouts.clear(); final int rSize = renderedCrosstabLayouts.size(); for ( int i = 0; i < rSize; i++ ) { final RenderedCrosstabLayout o = renderedCrosstabLayouts.get( i ); sl.renderedCrosstabLayouts.push( (RenderedCrosstabLayout) o.clone() ); } return sl; }
/** * Creates a cheaper version of the deep-copy of the output function. A pagebreak-derivate is created on every * possible pagebreak position and must contain all undo/rollback information to restore the state of any shared * object when a roll-back is requested. * <p/> * Any failure to implement this method correctly will be a great source of very subtle bugs. * * @return the deep clone. */ public OutputFunction deriveForPagebreak() { try { final DefaultOutputFunction sl = (DefaultOutputFunction) super.clone(); sl.repeatingFooterValidator = repeatingFooterValidator.clone(); sl.renderer = renderer.deriveForPagebreak(); sl.inlineSubreports = (ArrayList<InlineSubreportMarker>) inlineSubreports.clone(); sl.currentEvent = null; sl.pagebreakHandler = (DefaultLayoutPagebreakHandler) pagebreakHandler.clone(); sl.outputHandlers = outputHandlers.clone(); sl.renderedCrosstabLayouts = renderedCrosstabLayouts.clone(); sl.renderedCrosstabLayouts.clear(); final int rSize = renderedCrosstabLayouts.size(); for ( int i = 0; i < rSize; i++ ) { final RenderedCrosstabLayout o = renderedCrosstabLayouts.get( i ); sl.renderedCrosstabLayouts.push( o.derive() ); } return sl; } catch ( final CloneNotSupportedException e ) { throw new IllegalStateException(); } }
/** * Creates a storage-copy of the output function. A storage copy must create a deep clone of all referenced objects so * that it is guaranteed that changes to either the original or the clone do not affect the other instance. * <p/> * Any failure to implement this method correctly will be a great source of very subtle bugs. * * @return the deep clone. */ public OutputFunction deriveForStorage() { try { final DefaultOutputFunction sl = (DefaultOutputFunction) super.clone(); sl.repeatingFooterValidator = repeatingFooterValidator.clone(); sl.renderer = renderer.deriveForStorage(); sl.inlineSubreports = (ArrayList<InlineSubreportMarker>) inlineSubreports.clone(); sl.currentEvent = null; sl.pagebreakHandler = (DefaultLayoutPagebreakHandler) pagebreakHandler.clone(); sl.pagebreakHandler.setReportState( null ); sl.outputHandlers = outputHandlers.clone(); sl.renderedCrosstabLayouts = renderedCrosstabLayouts.clone(); sl.renderedCrosstabLayouts.clear(); final int rSize = renderedCrosstabLayouts.size(); for ( int i = 0; i < rSize; i++ ) { final RenderedCrosstabLayout o = renderedCrosstabLayouts.get( i ); sl.renderedCrosstabLayouts.push( o.derive() ); } return sl; } catch ( final CloneNotSupportedException e ) { throw new IllegalStateException(); } }
contexts.clear(); RenderBox firstBox = null; RenderBox box = null;
parents = new FastStack<RenderBox>(); } else { parents.clear();