|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.afp.PageInstance
public abstract class PageInstance
This class encapsulates an instance of the page in a particular paper product. A page instance consists of a unique 64-bit identifier combined with an associated logical page and copy number.
Note: The getCropRegion() method is useful because it defines the
size of a paper product after it has been cut. All regions on a physical
page are likely to be inside this region.
PageAddress,
Scale,
getCropRegion()| Constructor Summary | |
|---|---|
PageInstance()
|
|
| Method Summary | |
|---|---|
int |
getCopy()
Gets the copy to which this page belongs. |
abstract Rectangle |
getCropRegion()
Returns the crop region for the page. |
abstract Document |
getDocument()
Gets the document (paper product) associated with this page instance. |
int |
getPage()
Gets the logical page number. |
long |
getPageAddress()
Gets the page address of this page. |
abstract int |
getPageHeight()
Gets the page height in Anoto Units. |
abstract int |
getPageWidth()
Gets the page width in Anoto Units. |
abstract int |
getPrintedPageNumber()
Returns the page number printed on the physical page. |
abstract Rectangle |
getTabletRegion()
Returns the tablet region for the page. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageInstance()
| Method Detail |
|---|
public final int getPage()
public final int getCopy()
public final long getPageAddress()
PageAddresspublic abstract int getPageWidth()
Note: This returns the full non-cropped page width. Most applications
will want to use getCropRegion() instead.
Scale,
getCropRegion()public abstract int getPageHeight()
Note: This returns the full non cropped page height. Most applications
will want to use getCropRegion() instead.
Scale,
getCropRegion()public abstract Rectangle getCropRegion()
For example, an A5 spiral-bound notebook has pages that are
148×210 mm. Let's say that they are printed 6 mm
larger. The page size (getPageWidth()/getPageHeight())
will be 154×216 mm and the crop region will be
148×210 mm.
Additionally, the top left corner will be offset by an appropriate amount. In the A5 example above, the top-left corner of the crop region would be at 6 mm×6 mm.
Scalepublic abstract Rectangle getTabletRegion()
Often, a notebook may have spiral bindings and/or holes in it. The tablet region will exist inside an area having no holes.
Additionally, this region will have its top-left corner somewhere greater than (0,0) for the same reasons as the crop region.
null if it does not
exist.Scale,
getCropRegion()public abstract int getPrintedPageNumber()
This will return -1 if the printed page does not have a page number or if it cannot be determined.
public abstract Document getDocument()
Document representing the associated paper product.Document
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||