org.objectweb.jac.aspects.gui.web.html
Class Image
java.lang.Object
org.objectweb.jac.aspects.gui.web.html.Element
org.objectweb.jac.aspects.gui.web.html.Tag
org.objectweb.jac.aspects.gui.web.html.Image
- public class Image
- extends Tag
HTML Image Tag.
- Version:
- $Id: Image.java,v 1.1 2004/03/23 13:59:49 laurent Exp $
- Author:
- Greg Wilkins
- See Also:
Block
Fields inherited from class org.objectweb.jac.aspects.gui.web.html.Tag |
tag |
Fields inherited from class org.objectweb.jac.aspects.gui.web.html.Element |
ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
Methods inherited from class org.objectweb.jac.aspects.gui.web.html.Tag |
write |
Methods inherited from class org.objectweb.jac.aspects.gui.web.html.Element |
addCssClass, appendAttribute, 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 |
Image
public Image(String src,
String alt)
Image
public Image(String src,
String alt,
Dimension size)
Image
public Image(File gif)
- Construct from GIF file.
border
public Image border(int b)
alt
public Image alt(String alt)
setSizeFromGif
public Image setSizeFromGif(String dirname,
String pathname)
- Set the image size from the header of a GIF file.
- Parameters:
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.
setSizeFromGif
public Image setSizeFromGif(String filename)
- Set the image size from the header of a GIF file.
setSizeFromGif
public Image setSizeFromGif(File gif)
- Set the image size from the header of a GIF file.