|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject uk.ac.kcl.cch.rdb2java.dynData.BaseObject uk.ac.kcl.cch.jb.pliny.model.Resource uk.ac.kcl.cch.jb.pliny.pdfAnnot.model.PdfResource
an extension on the Pliny
Resource
that
contains special data for PDF files. Most of the extra image data is
stored in the Resource's attributes
field, packed
in via the
AttributedResourceHandler
.
The Page number is not stored in the Resource, and is therefore not persistent from here. This is because, of course, any particular page number is not really a part of the resource. It is provided here as a convenient way for the various classes that need to know the current page number being displayed can get at it.
Nested Class Summary |
Nested classes inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject |
BaseObject.ListItemData |
Field Summary | |
static String |
CURRENTPAGE_EVENT
|
static String |
SCALECHANGE_EVENT
|
Fields inherited from class uk.ac.kcl.cch.jb.pliny.model.Resource |
ATTRIBUTES_PROP, FAVOURITES_PROP, FULLNAME_PROP, IDENTIFIER_PROP, IDSTART_PROP, INITCHAR_PROP, myCache, MYDISPLAYEDITEMS_PROP, MYSOURCEROLES_PROP, MYSURROGATES_PROP, MYTARGETROLES_PROP, NAME_PROP, OBJECTTYPEKEY_PROP, resourceKey |
Constructor Summary | |
PdfResource()
|
|
PdfResource(boolean empty)
|
Method Summary | |
int |
getCacheNumber()
gets the image cache ID for this image. |
int |
getCurrentPage()
|
String |
getMyCachedPdfFilename()
returns the full path filename for the cached PDF file that is associated with this resource. |
FKReferenceList |
getMyPagedDisplayedItems()
returns the set of LinkableObject s that should be displayed
on the current page as reference objects. |
org.jpedal.PdfDecoder |
getMyPdfDecoder()
returns the PdfDecoder which currently is working with
this PDF file. |
org.eclipse.jface.resource.ImageDescriptor |
getMyThumbnailDescriptor()
returns an JFace ImageDescriptor for the thumbnail image that is is associated with the PDF file associated with this resource. |
org.eclipse.swt.graphics.Image |
getPageImage()
returns a SWT Image of the current page of this PDF file. |
float |
getScale()
gets the current scale setting for the PDF page images. |
String |
getUrl()
gets the URL (as a character string) for the original version of the image referenced by this Resource. |
void |
setCacheNumber(int numb)
sets the image cache ID for this image. |
void |
setCurrentPage(int currentPage)
|
void |
setScale(float scale)
sets the current scale setting for the PDF page images. |
void |
setSwtImageFromPdf(SwtImageFromPdf maker)
|
void |
setUrl(String url)
sets the URL that points to the original version of the image referenced by this Resource. |
Methods inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject |
doSQL, getSavedID, makeWhere, updateDBboolean, updateDBboolean, updateDBint, updateDBint, updateDBString, updateDBString, updateDBTimestamp, updateDBTimestamp |
Methods inherited from class uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject |
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String CURRENTPAGE_EVENT
public static final String SCALECHANGE_EVENT
Constructor Detail |
public PdfResource()
public PdfResource(boolean empty)
Method Detail |
public int getCurrentPage()
getCurrentPage
in class Resource
public void setCurrentPage(int currentPage)
setCurrentPage
in class Resource
public FKReferenceList getMyPagedDisplayedItems()
LinkableObject
s that should be displayed
on the current page as reference objects.
getMyPagedDisplayedItems
in class Resource
public String getUrl()
getUrl
in class Resource
public void setUrl(String url)
public int getCacheNumber()
public void setCacheNumber(int numb)
public float getScale()
public void setScale(float scale)
scale
- float the current scale settingpublic String getMyCachedPdfFilename()
public org.eclipse.jface.resource.ImageDescriptor getMyThumbnailDescriptor()
public void setSwtImageFromPdf(SwtImageFromPdf maker)
public org.eclipse.swt.graphics.Image getPageImage()
public org.jpedal.PdfDecoder getMyPdfDecoder()
PdfDecoder
which currently is working with
this PDF file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |