|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.objects.PdfObjectWrapper<PdfArray>
org.pdfclown.documents.interaction.navigation.document.Destination
@PDF(value=PDF10) public abstract class Destination
Interaction target [PDF:1.6:8.2.1].
It represents a particular view of a document, consisting of the following items:
Nested Class Summary | |
---|---|
static class |
Destination.ModeEnum
Destination mode [PDF:1.6:8.2.1]. |
Constructor Summary | |
---|---|
protected |
Destination(Document context,
Object page,
Destination.ModeEnum mode,
Object location,
Double zoom)
Creates a new destination within the given document context. |
protected |
Destination(PdfDirectObject baseObject)
|
Method Summary | |
---|---|
Object |
getLocation()
Gets the page location. |
Destination.ModeEnum |
getMode()
Gets the destination mode. |
PdfString |
getName()
Gets the object name. |
PdfDirectObject |
getNamedBaseObject()
Gets the object name, if available; otherwise, behaves like getBaseObject() . |
abstract Object |
getPage()
Gets the target page reference. |
Double |
getZoom()
Gets the magnification factor to use when displaying the page. |
void |
setLocation(Object value)
|
void |
setMode(Destination.ModeEnum value)
|
abstract void |
setPage(Object value)
|
void |
setZoom(Double value)
|
static Destination |
wrap(PdfDirectObject baseObject)
Wraps a destination base object into a destination object. |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, clone, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pdfclown.objects.IPdfObjectWrapper |
---|
getBaseObject |
Constructor Detail |
---|
protected Destination(Document context, Object page, Destination.ModeEnum mode, Object location, Double zoom)
context
- Document context.page
- Page reference. It may be either a Page
or a page index (int).mode
- Destination mode.location
- Destination location.zoom
- Magnification factor to use when displaying the page.protected Destination(PdfDirectObject baseObject)
Method Detail |
---|
public static final Destination wrap(PdfDirectObject baseObject)
baseObject
- Destination base object.
public Object getLocation()
public Destination.ModeEnum getMode()
public abstract Object getPage()
public Double getZoom()
public void setLocation(Object value)
getLocation()
public void setMode(Destination.ModeEnum value)
getMode()
public abstract void setPage(Object value)
getPage()
public void setZoom(Double value)
getZoom()
public PdfString getName()
IPdfNamedObjectWrapper
As names are tipically loosely-coupled with their corresponding PDF objects, name retrieval implies a costly reverse lookup into the document's name tree.
getName
in interface IPdfNamedObjectWrapper
public PdfDirectObject getNamedBaseObject()
IPdfNamedObjectWrapper
getBaseObject()
.
getNamedBaseObject
in interface IPdfNamedObjectWrapper
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |