|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.xml.album.Image
public class Image
A Java bean that represents an image in the photo images XML file. Images are usually used to represent the full image as well as a thumbnail image.
© Copyright 2003 Rakesh Vidyadharan
| Field Summary | |
|---|---|
private java.lang.String |
altText
The altText property for an image. |
private java.lang.String |
fileLocation
The fileLocation attribute for an image. |
private double |
height
The height property for an image. |
private double |
width
The width property for an image. |
| Constructor Summary | |
|---|---|
private |
Image()
Default constructor. |
|
Image(java.lang.String fileLocation)
The only public constructor that is supported. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getAltText()
Returns altText. |
java.lang.String |
getFileLocation()
Returns fileLocation. |
double |
getHeight()
Returns height. |
double |
getWidth()
Returns width. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setAltText(java.lang.String altText)
Set altText. |
void |
setFileLocation(java.lang.String fileLocation)
Set fileLocation. |
void |
setHeight(double height)
Set height. |
void |
setWidth(double width)
Set width. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String fileLocation
fileLocation attribute for an image.
private double width
width property for an image.
private double height
height property for an image.
private java.lang.String altText
altText property for an image.
| Constructor Detail |
|---|
private Image()
fileLocation value.
public Image(java.lang.String fileLocation)
fileLocation to the specified value.
fileLocation - - The fileLocation value to use for
this image.| Method Detail |
|---|
public boolean equals(java.lang.Object object)
true if the specified object is an instance
of Image, and the values of fileLocation
are the same.
equals in class java.lang.Objectobject - - The object that is to be compared with
this instance.public int hashCode()
fileLocation instance variable.
hashCode in class java.lang.Objectpublic java.lang.String toString()
fileLocation.
toString in class java.lang.Objectpublic final java.lang.String getFileLocation()
fileLocation.
public final void setFileLocation(java.lang.String fileLocation)
fileLocation.
fileLocation - - The value to set.public final double getWidth()
width.
public final void setWidth(double width)
width.
width - - The value to set.public final double getHeight()
height.
public final void setHeight(double height)
height.
height - - The value to set.public final java.lang.String getAltText()
altText.
public final void setAltText(java.lang.String altText)
altText.
altText - - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||