|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.html.Element | +--org.mortbay.html.Tag | +--org.mortbay.html.Image
HTML Image Tag.
Block
Field Summary |
Fields inherited from class org.mortbay.html.Element |
ALIGN, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
Constructor Summary | |
Image(java.io.File gif)
Construct from GIF file. |
|
Image(java.lang.String src)
|
|
Image(java.lang.String src,
int width,
int height,
int border)
|
|
Image(java.lang.String dirname,
java.lang.String src)
Construct from GIF file. |
Method Summary | |
Image |
alt(java.lang.String alt)
|
Image |
border(int b)
|
Image |
setSizeFromGif(java.io.File gif)
Set the image size from the header of a GIF file. |
Image |
setSizeFromGif(java.lang.String filename)
Set the image size from the header of a GIF file. |
Image |
setSizeFromGif(java.lang.String dirname,
java.lang.String pathname)
Set the image size from the header of a GIF file. |
Methods inherited from class org.mortbay.html.Tag |
write |
Methods inherited from class org.mortbay.html.Element |
attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, size, style, top, toString, width, width, width, write, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Image(java.lang.String src)
public Image(java.lang.String dirname, java.lang.String src)
public Image(java.io.File gif)
public Image(java.lang.String src, int width, int height, int border)
Method Detail |
public Image border(int b)
public Image alt(java.lang.String alt)
public Image setSizeFromGif(java.lang.String dirname, java.lang.String pathname)
dirname
- The directory name, expected to be in OS formatpathname
- The image path name relative to the directory.
Expected to be in WWW format (i.e. with slashes)
and will be converted to OS format.public Image setSizeFromGif(java.lang.String filename)
public Image setSizeFromGif(java.io.File gif)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |