Java Doc for cHTMLPart.java in  » Mail-Clients » columba-1.4 » org » columba » core » print » 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 » Mail Clients » columba 1.4 » org.columba.core.print 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.columba.core.print.cPrintObject
      org.columba.core.print.cHTMLPart

cHTMLPart
public class cHTMLPart extends cPrintObject (Code)
Class for representing a HTML print object. Objects of this type is intended for inclusion in cDocument objects for printing. Division into multiple pages represented by cPage is supported.
author:
   Karl Peder Olesen (karlpeder), 20030601



Constructor Summary
public  cHTMLPart()
     Creates a new empty HTML print object.
public  cHTMLPart(boolean scaleAllowed)
    

Method Summary
public  cPrintObjectbreakBlock(cUnit w, cUnit maxHeight)
     Divides (breaks) this HTML print object into a remainder (which fits inside the given max height) and the rest.
public  cSizegetSize(cUnit maxWidth)
     Returns the size of this HTML print object subject to the given width.
If scaling is allowed, and the contents can not be fitted inside the given width, the content is scaled to fit before the size is returned, i.e.
public  voidprint(Graphics2D g)
     Prints the contents of this HTML print object using the supplied Graphics2D object.
Parameters:
  g - Used for rendering (i.e.
public  voidsetHTML(HTMLDocument html)
     Sets the HTML document to be printed.
public  voidsetHTML(URL url)
     Sets the HTML document to be printed.
protected  voidsetStartY(cUnit y)
     Sets the starting position in y-direction.


Constructor Detail
cHTMLPart
public cHTMLPart()(Code)
Creates a new empty HTML print object. As default, scaling the print to fit is not allowed



cHTMLPart
public cHTMLPart(boolean scaleAllowed)(Code)
Creates a new empty HTML print object and sets whether scaling is allowed
Parameters:
  scaleAllowed - If true, the print is allowed to "scale to fit"




Method Detail
breakBlock
public cPrintObject breakBlock(cUnit w, cUnit maxHeight)(Code)
Divides (breaks) this HTML print object into a remainder (which fits inside the given max height) and the rest. The remainder is returned and "the rest" is stored by modifying this object.
Parameters:
  w - Max. allowable width this print object can occupy
Parameters:
  maxHeight - Max. allowable height before breaking The part of the print object, which fits inside the given max height
See Also:   org.columba.core.print.cPrintObject.breakBlock(org.columba.core.print.cUnitorg.columba.core.print.cUnit)



getSize
public cSize getSize(cUnit maxWidth)(Code)
Returns the size of this HTML print object subject to the given width.
If scaling is allowed, and the contents can not be fitted inside the given width, the content is scaled to fit before the size is returned, i.e. the scaled size is returned.
NB: The height returned will always be from the starting point (which could be different from the top) to the end of the current content, independent on whether everything will or can be printed on onto one page.
Parameters:
  maxWidth - Max. allowable width this print object can occupy
See Also:   org.columba.core.print.cPrintObject.getSize(org.columba.core.print.cUnit)



print
public void print(Graphics2D g)(Code)
Prints the contents of this HTML print object using the supplied Graphics2D object.
Parameters:
  g - Used for rendering (i.e. printing) this HTML print object
See Also:   org.columba.core.print.cPrintObject.print(java.awt.Graphics2D)



setHTML
public void setHTML(HTMLDocument html)(Code)
Sets the HTML document to be printed.
Parameters:
  html - HTML document to be printed



setHTML
public void setHTML(URL url) throws IOException(Code)
Sets the HTML document to be printed. Precondition: The URL given contains a HTML document
Parameters:
  url - url to file with HTML document
throws:
  IOException - if errors occur while reading HTML document from file



setStartY
protected void setStartY(cUnit y)(Code)
Sets the starting position in y-direction. A starting position != 0 is used when printing anything but the first page. This bookkeeping is usually done internally when creating pagebreaks using the method breakBlock. Therefore this method has not been made public.
Parameters:
  y - Starting position in y-direction



Fields inherited from org.columba.core.print.cPrintObject
final public static int BOTH(Code)(Java Doc)
final public static int CENTER(Code)(Java Doc)
final public static int EAST(Code)(Java Doc)
final public static int FOOTER(Code)(Java Doc)
final public static int GROUPMEMBER(Code)(Java Doc)
final public static int HEADER(Code)(Java Doc)
final public static int HORIZONTAL(Code)(Java Doc)
final public static int NONE(Code)(Java Doc)
final public static int NORMAL(Code)(Java Doc)
final public static int NORTH(Code)(Java Doc)
final public static int NORTHEAST(Code)(Java Doc)
final public static int NORTHWEST(Code)(Java Doc)
final public static int SOUTH(Code)(Java Doc)
final public static int SOUTHEAST(Code)(Java Doc)
final public static int SOUTHWEST(Code)(Java Doc)
final public static int VERTICAL(Code)(Java Doc)
final public static int WEST(Code)(Java Doc)
protected cUnit bottomMargin(Code)(Java Doc)
protected Color color(Code)(Java Doc)
protected cUnit leftMargin(Code)(Java Doc)
protected cPage page(Code)(Java Doc)
protected cUnit rightMargin(Code)(Java Doc)
protected cUnit topMargin(Code)(Java Doc)

Methods inherited from org.columba.core.print.cPrintObject
public cPrintObject breakBlock(cUnit w, cUnit maxHeight)(Code)(Java Doc)
public void computePositionAndSize()(Code)(Java Doc)
public Color getColor()(Code)(Java Doc)
public cPoint getDrawingOrigin()(Code)(Java Doc)
public cSize getDrawingSize()(Code)(Java Doc)
public cPoint getLocation()(Code)(Java Doc)
public cPage getPage()(Code)(Java Doc)
public cSize getSize()(Code)(Java Doc)
abstract public cSize getSize(cUnit maxWidth)(Code)(Java Doc)
public int getType()(Code)(Java Doc)
abstract public void print(Graphics2D g)(Code)(Java Doc)
public void setBottomMargin(cUnit m)(Code)(Java Doc)
public void setColor(Color c)(Code)(Java Doc)
public void setLeftMargin(cUnit m)(Code)(Java Doc)
public void setLocation(cPoint l)(Code)(Java Doc)
public void setOrientation(int o)(Code)(Java Doc)
public void setPage(cPage p)(Code)(Java Doc)
public void setRightMargin(cUnit m)(Code)(Java Doc)
public void setSize(cSize s)(Code)(Java Doc)
public void setSizePolicy(int sp)(Code)(Java Doc)
public void setTopMargin(cUnit m)(Code)(Java Doc)
public void setType(int type)(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.