|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.imagery.AddeImageDescriptor
public class AddeImageDescriptor
A class to hold an image directory + the location
| Constructor Summary | |
|---|---|
AddeImageDescriptor()
Default constructor for unpersistence; does nothing |
|
AddeImageDescriptor(AddeImageDescriptor that)
Create a descriptor from another. |
|
AddeImageDescriptor(AreaDirectory directory,
String imageSource)
Create an image descriptor from the source and AreaDirectory |
|
AddeImageDescriptor(AreaDirectory directory,
String imageSource,
AddeImageInfo info)
Create an image descriptor from the source and AreaDirectory |
|
AddeImageDescriptor(int relativeIndex,
AddeImageDescriptor that)
Create a descriptor from another, but change the relative index |
|
AddeImageDescriptor(String imageSource)
Create an image descriptor from the source |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Implementation for Comparable. |
Element |
createElement(XmlEncoder encoder)
We just have this here so we can define a XmlDelegate for the AreaDirectory class |
Element |
createElement(XmlEncoder encoder,
Object object)
This is the delegate method for AreaDirectory |
Object |
createObject(XmlEncoder encoder,
Element element)
Create an image descriptor from the XML element |
boolean |
equals(Object o)
See if this AddeImageDescriptor is equal to the object in question |
AreaDirectory |
getDirectory()
Get the AreaDirectory (used by XML persistence) |
AddeImageInfo |
getImageInfo()
Get the image info of this image (used by persistence) |
DateTime |
getImageTime()
Get the time of the image |
boolean |
getIsRelative()
Get the IsRelative property. |
int |
getRelativeIndex()
Get the RelativeIndex property. |
String |
getSource()
Get the source of this image (used by persistence) |
boolean |
initFromXml(XmlEncoder encoder,
Element element)
DO nothing. |
protected boolean |
isFromFile()
Does this represent a file |
void |
setDirectory(AreaDirectory d)
Set the AreaDirectory (used by XML persistence) |
void |
setImageInfo(AddeImageInfo s)
Set the image info of this image (used by persistence) |
void |
setIsRelative(boolean value)
Set the IsRelative property. |
void |
setRelativeIndex(int value)
Set the RelativeIndex property. |
void |
setSource(String s)
Set the source of this image (used by persistence) |
String |
toString()
Get a text representation of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddeImageDescriptor()
public AddeImageDescriptor(int relativeIndex,
AddeImageDescriptor that)
relativeIndex - new relative indexthat - other image descriptorpublic AddeImageDescriptor(AddeImageDescriptor that)
that - other image descriptorpublic AddeImageDescriptor(String imageSource)
imageSource - ADDE URL
public AddeImageDescriptor(AreaDirectory directory,
String imageSource)
directory - image metadataimageSource - ADDE URL of image
public AddeImageDescriptor(AreaDirectory directory,
String imageSource,
AddeImageInfo info)
directory - image metadataimageSource - ADDE URL of imageinfo - Image info| Method Detail |
|---|
protected boolean isFromFile()
public Element createElement(XmlEncoder encoder)
createElement in interface XmlPersistableencoder - encoder to use
public Object createObject(XmlEncoder encoder,
Element element)
createObject in interface XmlDelegateencoder - encoder to useelement - XML description of this object
public boolean initFromXml(XmlEncoder encoder,
Element element)
initFromXml in interface XmlPersistableencoder - encoder for XMLelement - XML element
public Element createElement(XmlEncoder encoder,
Object object)
createElement in interface XmlDelegateencoder - XML encoder for this objectobject - an AddeImageDescriptor
public AreaDirectory getDirectory()
public void setDirectory(AreaDirectory d)
d - image metadatapublic String getSource()
public void setSource(String s)
s - the ADDE URL for this imagepublic AddeImageInfo getImageInfo()
public void setImageInfo(AddeImageInfo s)
s - the AddeImageInfo for this imagepublic void setIsRelative(boolean value)
value - The new value for IsRelativepublic boolean getIsRelative()
public void setRelativeIndex(int value)
value - The new value for RelativeIndexpublic int getRelativeIndex()
public DateTime getImageTime()
public String toString()
toString in class Objectpublic int compareTo(Object o)
compareTo in interface Comparableo - object in question
Comparablepublic boolean equals(Object o)
equals in class Objecto - object in question
o is an AddeImageDescriptor and
they area equivalent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||