Java Doc for JROdtFrameExporter.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » export » oasis » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine.export.oasis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.JRAbstractExporter
      net.sf.jasperreports.engine.export.oasis.JROdtFrameExporter

JROdtFrameExporter
public class JROdtFrameExporter extends JRAbstractExporter (Code)
Exports a JasperReports document to ODF format. It has character output type and exports the document to a grid-based layout.
author:
   Teodor Danciu (teodord@users.sourceforge.net)
version:
   $Id: JROdtFrameExporter.java 1745 2007-06-11 15:13:18Z teodord $


Field Summary
final public static  StringIMAGE_NAME_PREFIX
    
final protected static  intIMAGE_NAME_PREFIX_LEGTH
    
final protected static  StringJR_PAGE_ANCHOR_PREFIX
    
final public static  StringVERSION
    
protected  Stringencoding
    
protected  MapfontMap
    
protected  JRHyperlinkProducerFactoryhyperlinkProducerFactory
    
protected  MapimageMaps
    
protected  ListimagesToProcess
    
protected  booleanisWrapBreakWord
    
protected  intpageIndex
    
protected  JRExportProgressMonitorprogressMonitor
    
protected  MaprendererToImagePathMap
    
protected  intreportIndex
    
protected  inttableIndex
    
protected  WritertempBodyWriter
    
protected  WritertempStyleWriter
    

Constructor Summary
public  JROdtFrameExporter()
    

Method Summary
protected  voidexportElements(Collection elements)
    
protected  voidexportEllipse(JRPrintEllipse ellipse)
    
protected  voidexportLine(JRPrintLine line)
    
protected  voidexportPage(JRPrintPage page)
    
protected  voidexportRectangle(JRPrintRectangle rectangle)
    
public  voidexportReport()
    
protected  voidexportReportToOasisZip(OutputStream os)
    
protected  voidexportStyledText(JRStyledText styledText)
    
protected  voidexportStyledTextRun(Map attributes, String text)
    
protected  voidexportText(JRPrintText text)
    
protected  voidsetHyperlinkProducerFactory()
    

Field Detail
IMAGE_NAME_PREFIX
final public static String IMAGE_NAME_PREFIX(Code)



IMAGE_NAME_PREFIX_LEGTH
final protected static int IMAGE_NAME_PREFIX_LEGTH(Code)



JR_PAGE_ANCHOR_PREFIX
final protected static String JR_PAGE_ANCHOR_PREFIX(Code)



VERSION
final public static String VERSION(Code)



encoding
protected String encoding(Code)



fontMap
protected Map fontMap(Code)



hyperlinkProducerFactory
protected JRHyperlinkProducerFactory hyperlinkProducerFactory(Code)



imageMaps
protected Map imageMaps(Code)



imagesToProcess
protected List imagesToProcess(Code)



isWrapBreakWord
protected boolean isWrapBreakWord(Code)



pageIndex
protected int pageIndex(Code)



progressMonitor
protected JRExportProgressMonitor progressMonitor(Code)



rendererToImagePathMap
protected Map rendererToImagePathMap(Code)



reportIndex
protected int reportIndex(Code)



tableIndex
protected int tableIndex(Code)



tempBodyWriter
protected Writer tempBodyWriter(Code)



tempStyleWriter
protected Writer tempStyleWriter(Code)




Constructor Detail
JROdtFrameExporter
public JROdtFrameExporter()(Code)




Method Detail
exportElements
protected void exportElements(Collection elements) throws IOException, JRException(Code)



exportEllipse
protected void exportEllipse(JRPrintEllipse ellipse) throws IOException(Code)



exportLine
protected void exportLine(JRPrintLine line) throws IOException(Code)



exportPage
protected void exportPage(JRPrintPage page) throws JRException, IOException(Code)



exportRectangle
protected void exportRectangle(JRPrintRectangle rectangle) throws IOException(Code)



exportReport
public void exportReport() throws JRException(Code)



exportReportToOasisZip
protected void exportReportToOasisZip(OutputStream os) throws JRException, IOException(Code)
public static JRPrintImage getImage(List jasperPrintList, String imageName) { return getImage(jasperPrintList, getPrintElementIndex(imageName)); } public static JRPrintImage getImage(List jasperPrintList, JRPrintElementIndex imageIndex) { JasperPrint report = (JasperPrint)jasperPrintList.get(imageIndex.getReportIndex()); JRPrintPage page = (JRPrintPage)report.getPages().get(imageIndex.getPageIndex()); Integer[] elementIndexes = imageIndex.getElementIndexes(); Object element = page.getElements().get(elementIndexes[0].intValue()); for (int i = 1; i < elementIndexes.length; ++i) { JRPrintFrame frame = (JRPrintFrame) element; element = frame.getElements().get(elementIndexes[i].intValue()); } return (JRPrintImage) element; } /**



exportStyledText
protected void exportStyledText(JRStyledText styledText) throws IOException(Code)
protected void exportText(TableBuilder tableBuilder, JRPrintText text, JRExporterGridCell gridCell) throws IOException { tableBuilder.buildCellStyleHeader(text); tableBuilder.buildCellBackcolorStyle(text); tableBuilder.buildCellBorderStyle(text, text); tableBuilder.buildCellAlignmentStyle(text); tableBuilder.buildCellStyleFooter(); tableBuilder.buildCellHeader(gridCell.colSpan, gridCell.rowSpan); JRStyledText styledText = getStyledText(text); int textLength = 0; if (styledText != null) { textLength = styledText.length(); } StringBuffer paragraphStyleIdBuffer = new StringBuffer(); String verticalAlignment = VERTICAL_ALIGN_TOP; switch (text.getVerticalAlignment()) { case JRAlignment.VERTICAL_ALIGN_BOTTOM : { verticalAlignment = VERTICAL_ALIGN_BOTTOM; break; } case JRAlignment.VERTICAL_ALIGN_MIDDLE : { verticalAlignment = VERTICAL_ALIGN_MIDDLE; break; } case JRAlignment.VERTICAL_ALIGN_TOP : default : { verticalAlignment = VERTICAL_ALIGN_TOP; } } paragraphStyleIdBuffer.append(verticalAlignment); String runDirection = null; if (text.getRunDirection() == JRPrintText.RUN_DIRECTION_RTL) { runDirection = "rl"; } paragraphStyleIdBuffer.append(runDirection); String horizontalAlignment = HORIZONTAL_ALIGN_LEFT; switch (text.getHorizontalAlignment()) { case JRAlignment.HORIZONTAL_ALIGN_RIGHT : { horizontalAlignment = HORIZONTAL_ALIGN_RIGHT; break; } case JRAlignment.HORIZONTAL_ALIGN_CENTER : { horizontalAlignment = HORIZONTAL_ALIGN_CENTER; break; } case JRAlignment.HORIZONTAL_ALIGN_JUSTIFIED : { horizontalAlignment = HORIZONTAL_ALIGN_JUSTIFY; break; } case JRAlignment.HORIZONTAL_ALIGN_LEFT : default : { horizontalAlignment = HORIZONTAL_ALIGN_LEFT; } } paragraphStyleIdBuffer.append(horizontalAlignment); // if (isWrapBreakWord) // { // styleBuffer.append("width: " + gridCell.width + "; "); // styleBuffer.append("word-wrap: break-word; "); // } // if (text.getLineSpacing() != JRTextElement.LINE_SPACING_SINGLE) // { // styleBuffer.append("line-height: " + text.getLineSpacingFactor() + "; "); // } // if (styleBuffer.length() > 0) // { // writer.write(" style=\""); // writer.write(styleBuffer.toString()); // writer.write("\""); // } // // writer.write(">"); // if (text.getAnchorName() != null) // { // writer.write(""); // } // boolean startedHyperlink = startHyperlink(text); String paragraphStyleId = paragraphStyleIdBuffer.toString(); String paragraphStyleName = (String)paragraphStyles.get(paragraphStyleId); if (paragraphStyleName == null) { paragraphStyleName = "P" + paragraphStylesCounter++; paragraphStyles.put(paragraphStyleId, paragraphStyleName); tempStyleWriter.write("\n"); tempStyleWriter.write(" \r\n"); tempStyleWriter.write("\n"); tempStyleWriter.write("\n"); } tempBodyWriter.write(""); if (textLength > 0) { exportStyledText(styledText); } // if (startedHyperlink) // { // endHyperlink(); // } tempBodyWriter.write("\n"); tableBuilder.buildCellFooter(); } /**



exportStyledTextRun
protected void exportStyledTextRun(Map attributes, String text) throws IOException(Code)



exportText
protected void exportText(JRPrintText text) throws IOException(Code)



setHyperlinkProducerFactory
protected void setHyperlinkProducerFactory()(Code)



Fields inherited from net.sf.jasperreports.engine.JRAbstractExporter
protected ClassLoader classLoader(Code)(Java Doc)
protected boolean classLoaderSet(Code)(Java Doc)
protected Map dateFormatCache(Code)(Java Doc)
protected int endPageIndex(Code)(Java Doc)
protected int globalOffsetX(Code)(Java Doc)
protected int globalOffsetY(Code)(Java Doc)
protected boolean isModeBatch(Code)(Java Doc)
protected JasperPrint jasperPrint(Code)(Java Doc)
protected List jasperPrintList(Code)(Java Doc)
protected Map numberFormatCache(Code)(Java Doc)
protected Map parameters(Code)(Java Doc)
protected int startPageIndex(Code)(Java Doc)
final protected JRStyledTextParser styledTextParser(Code)(Java Doc)
protected URLStreamHandlerFactory urlHandlerFactory(Code)(Java Doc)
protected boolean urlHandlerFactorySet(Code)(Java Doc)

Methods inherited from net.sf.jasperreports.engine.JRAbstractExporter
protected Number defaultParseNumber(String textStr, Class valueClass)(Code)(Java Doc)
abstract public void exportReport() throws JRException(Code)(Java Doc)
protected TextValue getBooleanCellValue(JRPrintText text, String textStr)(Code)(Java Doc)
protected boolean getBooleanParameter(JRExporterParameter parameter, String property, boolean defaultValue)(Code)(Java Doc)
protected JRBox getBox(JRPrintGraphicElement element)(Code)(Java Doc)
protected TextValue getDateCellValue(JRPrintText text, String textStr) throws ParseException(Code)(Java Doc)
protected DateFormat getDateFormat(String formatFactoryClass, String pattern, Locale lc, TimeZone tz)(Code)(Java Doc)
protected int getIntegerParameter(JRExporterParameter parameter, String property, int defaultValue)(Code)(Java Doc)
protected TextValue getNumberCellValue(JRPrintText text, String textStr) throws ParseException, ClassNotFoundException(Code)(Java Doc)
protected NumberFormat getNumberFormat(String formatFactoryClass, String pattern, Locale lc)(Code)(Java Doc)
protected int getOffsetX()(Code)(Java Doc)
protected int getOffsetY()(Code)(Java Doc)
public Object getParameter(JRExporterParameter parameter)(Code)(Java Doc)
public Map getParameters()(Code)(Java Doc)
protected String getStringParameter(JRExporterParameter parameter, String property)(Code)(Java Doc)
protected String getStringParameterOrDefault(JRExporterParameter parameter, String property)(Code)(Java Doc)
protected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)(Code)(Java Doc)
protected JRStyledText getStyledText(JRPrintText textElement)(Code)(Java Doc)
protected String getTextFormatFactoryClass(JRPrintText text)(Code)(Java Doc)
protected Locale getTextLocale(JRPrintText text)(Code)(Java Doc)
protected TimeZone getTextTimeZone(JRPrintText text)(Code)(Java Doc)
protected TextValue getTextValue(JRPrintText text, String textStr)(Code)(Java Doc)
protected TextValue getTextValueString(JRPrintText text, String textStr)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
protected void resetClassLoader()(Code)(Java Doc)
protected void resetExportContext()(Code)(Java Doc)
protected void restoreElementOffsets()(Code)(Java Doc)
protected void setClassLoader()(Code)(Java Doc)
protected void setExportContext()(Code)(Java Doc)
protected void setFrameElementsOffset(JRPrintFrame frame, boolean relative)(Code)(Java Doc)
protected void setInput() throws JRException(Code)(Java Doc)
protected void setOffset()(Code)(Java Doc)
protected void setOutput()(Code)(Java Doc)
protected void setPageRange() throws JRException(Code)(Java Doc)
public void setParameter(JRExporterParameter parameter, Object value)(Code)(Java Doc)
public void setParameters(Map parameters)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.