package eu.greenlightning.hypercubepdf.page;

import java.io.IOException;

import org.apache.pdfbox.pdmodel.PDPage;

import eu.greenlightning.hypercubepdf.HCPElement;

public interface HCPPage {

	PDPage asPDPage();
	void paint(HCPElement element) throws IOException;

}

@@ -33,27 +33,25 @@
 ubepdf.page;
-%0D%0A%0D
+%0A
 %0Aimport java
@@ -66,19 +66,17 @@
 ception;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -108,19 +108,17 @@
 .PDPage;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -163,62 +163,776 @@
 ent;
-%0D%0A%0D%0Apublic interface HCPPage %7B%0D%0A%0D%0A%09PDPage asPDPage();%0D
+%0A%0A/**%0A * Wrapper class for a %7B@link PDPage%7D.%0A * %3Cp%3E%0A * %7B@link HCPPage%7Ds are the connection between PDFBox's %7B@link PDPage%7Ds and Hypercube's %7B@link HCPElement%7Ds as they%0A * allow you to paint elements (including element hierarchies stored in containers).%0A *%0A * @author Green Lightning%0A * @see HCPPages%0A */%0Apublic interface HCPPage %7B%0A%0A%09/**%0A%09 * Returns the underlying %7B@link PDPage%7D.%0A%09 * %0A%09 * @return the underlying %7B@link PDPage%7D%0A%09 */%0A%09PDPage asPDPage();%0A%0A%09/**%0A%09 * Paints an %7B@link HCPElement%7D on this page. The element will cover the whole page. This method takes into account%0A%09 * if the page is rotated.%0A%09 * %0A%09 * @param element not %7B@code null%7D%0A%09 * @throws NullPointerException if element is %7B@code null%7D%0A%09 * @throws IOException if there is an error while painting%0A%09 */
 %0A%09vo
@@ -983,11 +983,8 @@
 ion;
-%0D%0A%0D
+%0A
 %0A%7D
-%0D
 %0A

Document HCPPage.