|
|||||||||||
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.imageRes.model.ImageResource
an extension on the Pliny
Resource
that
contains special data for Images. All the extra image data is
stored in the Resource's attributes
field, packed
in via the
AttributedResourceHandler
.
Nested Class Summary |
Nested classes inherited from class uk.ac.kcl.cch.rdb2java.dynData.BaseObject |
BaseObject.ListItemData |
Field Summary |
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 | |
ImageResource()
creates a new instance of the ImageResource and stores it in the backing store DB. |
|
ImageResource(boolean empty)
creates a new instance of the ImageResource and if the parameter is true does i initially
store it in the backing store DB. |
Method Summary | |
int |
getCacheNumber()
gets the image cache ID for this image. |
String |
getExtension()
gets the filename extension (and by implication, the image type) for the image referenced by this Resource. |
String |
getIdentifier()
|
org.eclipse.draw2d.geometry.Rectangle |
getImagePosition()
returns the current Image position within the editors annotation area (as a draw2d Rectange). |
org.eclipse.jface.resource.ImageDescriptor |
getMyImageDescriptor()
gets an image descriptor handle to the image in the Image cache for this image. |
org.eclipse.jface.resource.ImageDescriptor |
getMyThumbnailDescriptor()
gets an image descriptor handle to the thumbnail version of this image (stored in the cache). |
String |
getUrl()
gets the URL (as a character string) for the original version of the image referenced by this Resource. |
int |
getZoomSize()
gets the current zoomsize for the image referenced by this Resource. |
void |
setCacheNumber(int numb)
sets the image cache ID for this image. |
void |
setExtension(String ext)
sets the filename extension (and by implication, the image type) for the image referenced by this Resource. |
void |
setImagePosition(org.eclipse.draw2d.geometry.Rectangle r)
sets the current Image position within the editors annotation area (as a draw2d Rectange) to the given value. |
void |
setUrl(String url)
sets the URL that points to the original version of the image referenced by this Resource. |
void |
setZoomSize(int zoom)
sets the current zoomsize for 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 |
Methods inherited from interface uk.ac.kcl.cch.jb.pliny.controls.IZoomableImageResource |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public ImageResource()
public ImageResource(boolean empty)
true
does i initially
store it in the backing store DB.
Method Detail |
public String getIdentifier()
getIdentifier
in class Resource
public org.eclipse.draw2d.geometry.Rectangle getImagePosition()
getImagePosition
in interface IZoomableImageResource
public void setImagePosition(org.eclipse.draw2d.geometry.Rectangle r)
public String getUrl()
getUrl
in class Resource
public void setUrl(String url)
public String getExtension()
public void setExtension(String ext)
public int getZoomSize()
getZoomSize
in interface IZoomableImageResource
public void setZoomSize(int zoom)
setZoomSize
in interface IZoomableImageResource
zoom
- int the new zoom size to save.public int getCacheNumber()
public void setCacheNumber(int numb)
public org.eclipse.jface.resource.ImageDescriptor getMyImageDescriptor()
public org.eclipse.jface.resource.ImageDescriptor getMyThumbnailDescriptor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |