Save This Page
Home » jasperreports-3.0.0-project » net.sf.jasperreports.engine.export.oasis » [javadoc | source]
net.sf.jasperreports.engine.export.oasis
public class: JROdtExporter [javadoc | source]
java.lang.Object
   net.sf.jasperreports.engine.JRAbstractExporter
      net.sf.jasperreports.engine.export.oasis.JROdtExporter

All Implemented Interfaces:
    JRExporter

Exports a JasperReports document to ODF format. It has character output type and exports the document to a grid-based layout.
Field Summary
protected static final  String JR_PAGE_ANCHOR_PREFIX     
protected static final  String HORIZONTAL_ALIGN_LEFT     
protected static final  String HORIZONTAL_ALIGN_RIGHT     
protected static final  String HORIZONTAL_ALIGN_CENTER     
protected static final  String HORIZONTAL_ALIGN_JUSTIFY     
protected static final  String VERTICAL_ALIGN_TOP     
protected static final  String VERTICAL_ALIGN_MIDDLE     
protected static final  String VERTICAL_ALIGN_BOTTOM     
public static final  String IMAGE_NAME_PREFIX     
protected static final  int IMAGE_NAME_PREFIX_LEGTH     
protected  Writer tempBodyWriter     
protected  Writer tempStyleWriter     
protected  JRExportProgressMonitor progressMonitor     
protected  Map rendererToImagePathMap     
protected  Map imageMaps     
protected  List imagesToProcess     
protected  int reportIndex     
protected  int pageIndex     
protected  int tableIndex     
protected  boolean startPage     
protected  String encoding     
protected  boolean isWrapBreakWord     
protected  Map fontMap     
protected  JRHyperlinkProducerFactory hyperlinkProducerFactory     
protected  ExporterNature nature     
Fields inherited from net.sf.jasperreports.engine.JRAbstractExporter:
PROPERTY_CELL_FORMULA,  parameters,  jasperPrintList,  jasperPrint,  isModeBatch,  startPageIndex,  endPageIndex,  globalOffsetX,  globalOffsetY,  classLoader,  classLoaderSet,  urlHandlerFactory,  urlHandlerFactorySet,  fileResolver,  fileResolverSet,  filter,  dateFormatCache,  numberFormatCache
Constructor:
 public JROdtExporter() 
Method from net.sf.jasperreports.engine.export.oasis.JROdtExporter Summary:
endHyperlink,   exportEllipse,   exportFrame,   exportGrid,   exportImage,   exportLine,   exportPage,   exportRectangle,   exportReport,   exportReportToOasisZip,   exportStyledText,   exportStyledTextRun,   exportText,   getCustomHandler,   getElementIndex,   getHyperlinkTarget,   getHyperlinkURL,   getImage,   getImage,   getImageName,   getImagePath,   getPrintElementIndex,   insertPageAnchor,   restoreBackcolor,   setBackcolor,   setHyperlinkProducerFactory,   startHyperlink
Methods from net.sf.jasperreports.engine.JRAbstractExporter:
defaultParseNumber,   exportReport,   getBooleanCellValue,   getBooleanParameter,   getDateCellValue,   getDateFormat,   getIntegerParameter,   getNumberCellValue,   getNumberFormat,   getOffsetX,   getOffsetY,   getParameter,   getParameterResolver,   getParameters,   getStringParameter,   getStringParameterOrDefault,   getStyledText,   getStyledText,   getTextFormatFactoryClass,   getTextLocale,   getTextTimeZone,   getTextValue,   getTextValueString,   reset,   resetClassLoader,   resetExportContext,   restoreElementOffsets,   setClassLoader,   setExportContext,   setFrameElementsOffset,   setInput,   setOffset,   setOffset,   setOutput,   setPageRange,   setParameter,   setParameters
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.jasperreports.engine.export.oasis.JROdtExporter Detail:
 protected  void endHyperlink(boolean isText) throws IOException 
 protected  void exportEllipse(TableBuilder tableBuilder,
    JRPrintEllipse ellipse,
    JRExporterGridCell gridCell) throws IOException 
 protected  void exportFrame(TableBuilder tableBuilder,
    JRPrintFrame frame,
    JRExporterGridCell gridCell) throws IOException, JRException 
 protected  void exportGrid(JRGridLayout gridLayout,
    JRPrintElementIndex frameIndex) throws IOException, JRException 
 protected  void exportImage(TableBuilder tableBuilder,
    JRPrintImage image,
    JRExporterGridCell gridCell) throws IOException, JRException 
 protected  void exportLine(TableBuilder tableBuilder,
    JRPrintLine line,
    JRExporterGridCell gridCell) throws IOException 
 protected  void exportPage(JRPrintPage page) throws IOException, JRException 
 protected  void exportRectangle(TableBuilder tableBuilder,
    JRPrintRectangle rectangle,
    JRExporterGridCell gridCell) throws IOException 
 public  void exportReport() throws JRException 
 protected  void exportReportToOasisZip(OutputStream os) throws IOException, JRException 
 protected  void exportStyledText(JRStyledText styledText) throws IOException 
 protected  void exportStyledTextRun(Map attributes,
    String text) throws IOException 
 protected  void exportText(TableBuilder tableBuilder,
    JRPrintText text,
    JRExporterGridCell gridCell) throws IOException 
 protected JRHyperlinkProducer getCustomHandler(JRPrintHyperlink link) 
 protected JRPrintElementIndex getElementIndex(JRExporterGridCell gridCell) 
 protected String getHyperlinkTarget(JRPrintHyperlink link) 
 protected String getHyperlinkURL(JRPrintHyperlink link) 
 public static JRPrintImage getImage(List jasperPrintList,
    String imageName) 
 public static JRPrintImage getImage(List jasperPrintList,
    JRPrintElementIndex imageIndex) 
 public static String getImageName(JRPrintElementIndex printElementIndex) 
    protected void writeImageMap(String imageMapName, JRPrintHyperlink mainHyperlink, List imageMapAreas) throws IOException { writer.write("\n"); for (Iterator it = imageMapAreas.iterator(); it.hasNext();) { JRPrintImageAreaHyperlink areaHyperlink = (JRPrintImageAreaHyperlink) it.next(); JRPrintImageArea area = areaHyperlink.getArea(); writer.write(" \n"); } if (mainHyperlink.getHyperlinkType() != JRHyperlink.HYPERLINK_TYPE_NONE) { writer.write(" \n"); } writer.write("\n"); } protected void writeImageAreaCoordinates(JRPrintImageArea area) throws IOException { int[] coords = area.getCoordinates(); if (coords != null && coords.length > 0) { StringBuffer coordsEnum = new StringBuffer(coords.length * 4); coordsEnum.append(coords[0]); for (int i = 1; i < coords.length; i++) { coordsEnum.append(','); coordsEnum.append(coords[i]); } writer.write(" coords=\"" + coordsEnum + "\""); } } protected void writeImageAreaHyperlink(JRPrintHyperlink hyperlink) throws IOException { String href = getHyperlinkURL(hyperlink); if (href == null) { writer.write(" nohref=\"nohref\""); } else { writer.write(" href=\"" + href + "\""); String target = getHyperlinkTarget(hyperlink); if (target != null) { writer.write(" target=\""); writer.write(target); writer.write("\""); } } if (hyperlink.getHyperlinkTooltip() != null) { writer.write(" title=\""); writer.write(JRStringUtil.xmlEncode(hyperlink.getHyperlinkTooltip())); writer.write("\""); } } /**
 protected String getImagePath(JRRenderable renderer,
    boolean isLazy,
    JRExporterGridCell gridCell) throws IOException 
 public static JRPrintElementIndex getPrintElementIndex(String imageName) 
 protected  void insertPageAnchor() throws IOException 
 protected  void restoreBackcolor() 
 protected  void setBackcolor(Color color) 
 protected  void setHyperlinkProducerFactory() 
 protected boolean startHyperlink(JRPrintHyperlink link,
    boolean isText) throws IOException