Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.html
Class Image  view Image download Image.java

java.lang.Object
  extended byorg.mortbay.html.Element
      extended byorg.mortbay.html.Tag
          extended byorg.mortbay.html.Image

public class Image
extends Tag

HTML Image Tag.

Version:
$Id: Image.java,v 1.5 2003/10/05 23:46:20 gregwilkins Exp $

Field Summary
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.mortbay.html.Tag
tag
 
Fields inherited from class org.mortbay.html.Element
ALIGN, attributeMap, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

Image

public Image(java.lang.String src)

Image

public Image(java.lang.String dirname,
             java.lang.String src)
Construct from GIF file.


Image

public Image(java.io.File gif)
Construct from GIF file.


Image

public Image(java.lang.String src,
             int width,
             int height,
             int border)
Method Detail

border

public Image border(int b)

alt

public Image alt(java.lang.String alt)

setSizeFromGif

public Image setSizeFromGif(java.lang.String dirname,
                            java.lang.String pathname)
Set the image size from the header of a GIF file.


setSizeFromGif

public Image setSizeFromGif(java.lang.String filename)
Set the image size from the header of a GIF file.


setSizeFromGif

public Image setSizeFromGif(java.io.File gif)
Set the image size from the header of a GIF file.