//Rendering all parts (not just the first) at once for the case where the parts that
//overflow should be visible.
//TODO Check if this has any unwanted side-effects. Feels a bit like a hack.
- addAreas(this.deferredAlg,
- /*1*/ this.deferredAlg.getPageBreaks().size(),
- this.deferredOriginalList, this.deferredEffectiveList);
+ this.addAreas(this.deferredAlg,
+ /*1*/ this.deferredAlg.getPageBreaks().size(),
+ this.deferredOriginalList, this.deferredEffectiveList);
}
}
protected void doPhase3(PageBreakingAlgorithm alg, int partCount,
BlockSequence originalList, BlockSequence effectiveList) {
//Directly add areas after finding the breaks
- addAreas(alg, partCount, originalList, effectiveList);
+ this.addAreas(alg, partCount, originalList, effectiveList);
if (partCount > 1) {
overflow = true;
}
context.setTemplates(context.getTransformerFactory().newTemplates(
new StreamSource(xslt)));
} catch (TransformerConfigurationException e) {
- throw new RuntimeException("Error setting up stylesheet", e);
+ // throw new RuntimeException("Error setting up stylesheet", e); // This is JDK 1.4 or later specific
+ throw new RuntimeException("Error setting up stylesheet");
}
}
BitmapProducer[] producers = getProducers(cfg.getChild("producers"));
producers[i] = (BitmapProducer)clazz.newInstance();
ContainerUtil.configure(producers[i], children[i]);
} catch (Exception e) {
- throw new RuntimeException("Error while setting up producers", e);
+ // throw new RuntimeException("Error while setting up producers", e); // This is JDK 1.4 or later specific
+ throw new RuntimeException("Error while setting up producers");
}
}
return producers;