public class Image extends Media implements Comparable<Image>
| Constructor and Description |
|---|
Image(String src,
String width,
String height,
String alt) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Image o) |
String |
getAlt() |
int |
getArea()
Returns the image's area (specified by width * height), or -1 if width/height weren't both specified or could not be parsed.
|
String |
getHeight() |
String |
getSrc()
gets the src attribut from the image tag in the html source.
|
String |
getWidth() |
String |
toString() |
public String getSrc()
public String getWidth()
public String getHeight()
public String getAlt()
public int getArea()
public int compareTo(Image o)
compareTo in interface Comparable<Image>Copyright © 2013-2014. All Rights Reserved.