|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Image
public class Image
Generates the <ing> tag to display a graphical element.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
Image()
Creates an empty image tag. |
|
Image(java.lang.String imageSource)
Add an image to the page. |
|
Image(java.lang.String imageSource,
int height,
int width)
Add an image to the page. |
|
Image(java.lang.String imageSource,
int height,
int width,
int borderWidth)
Add an image to the page. |
|
Image(java.lang.String imageSource,
int height,
int width,
int borderWidth,
java.lang.String alternateText)
Add an image to the page. |
|
Image(java.lang.String imageSource,
int height,
int width,
java.lang.String alternateText)
Add an image to the page. |
|
Image(java.lang.String imageSource,
int borderWidth,
java.lang.String alternateText)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width,
int borderWidth)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width,
int borderWidth,
java.lang.String alternateText)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width,
java.lang.String alternateText)
Add an image to the page. |
|
Image(java.lang.String imageSource,
java.lang.String height,
java.lang.String width)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width,
int borderWidth)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width,
int borderWidth,
java.lang.String alternateText)
Add an image to the page. |
|
Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width,
java.lang.String alternateText)
Add an image to the page. |
|
| Method Summary | |
|---|---|
void |
addContent(java.lang.String content)
Adds additional alternate text. |
java.lang.String |
getAlignment()
Gets the alignment of the image with respect to other text and images. |
java.lang.String |
getAlternateText()
Gets the alternate text to be displayed before the image is loaded. |
java.lang.Integer |
getBorderWidth()
Gets the width of the border around the image. |
java.lang.String |
getHeight()
Gets the height of the image. |
java.lang.Integer |
getHorizontalSpace()
Gets the number of pixels of extra space to leave between the image and the text on the left and right sides of the image. |
java.lang.String |
getImageMapToUse()
Returns the client-side image map that will define the coordinates and related hyperlinks. |
java.lang.String |
getImageSource()
Gets the source attribute of this image. |
java.lang.String |
getLowResolutionImageSource()
Gets the alternate low resolution image. |
java.lang.String |
getName()
Gets the name attribute of this image. |
java.lang.Integer |
getVerticalSpace()
Gets the number of pixels of extra space to leave between the image and the text on the top and bottom of the image. |
boolean |
isImageMap()
Indicates whether this image is an image map. |
Image |
setAlignment(java.lang.String alignment)
Sets the alignment of the image with respect to other text and images. |
Image |
setAlternateText(java.lang.String alternateText)
Sets the alternate text to be displayed before the image is loaded. |
protected void |
setAttribute(TagAttribute attribute)
Adds the specified attribute. |
Image |
setBorderWidth(int borderWidth)
Sets the width of the border around the image. |
void |
setContent(java.lang.String text)
Sets the alternate text. |
Image |
setHeight(java.lang.String height)
Sets the height of the image. |
Image |
setHorizontalSpace(int pixels)
Sets the number of pixels of extra space to leave between the image and the text on the left and right sides of the image. |
Image |
setImageMap(boolean isMap)
Indicates whether this image is an image map. |
Image |
setImageMapToUse(java.lang.String map)
Specifies the client-side image map that will define the coordinates and related hyperlinks. |
Image |
setImageSource(java.lang.String imageSource)
Sets the source attribute of this image. |
Image |
setLowResolutionImageSource(java.lang.String imageSource)
Sets the alternate low resolution image. |
Image |
setName(java.lang.String name)
Sets the name attribute of this image. |
Image |
setVerticalSpace(int pixels)
Sets the number of pixels of extra space to leave between the image and the text on the top and bottom of the image. |
Image |
setWidth(java.lang.String width)
Sets the width of the image. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Image()
public Image(java.lang.String imageSource)
imageSource - the source URL of the image. Eg. "images/picture.jpg"
public Image(java.lang.String imageSource,
int height,
int width)
imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels.width - the width of the image in pixels.
public Image(java.lang.String imageSource,
int height,
int width,
int borderWidth)
imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.borderWidth - the width of the border around the image.
public Image(java.lang.String imageSource,
int height,
int width,
int borderWidth,
java.lang.String alternateText)
imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.borderWidth - the width of the border around the image.alternateText - the text displayed before the image is loaded.
public Image(java.lang.String imageSource,
int height,
int width,
java.lang.String alternateText)
imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.alternateText - the text displayed before the image is loaded.
public Image(java.lang.String imageSource,
int borderWidth,
java.lang.String alternateText)
imageSource - the source URL of the image. Eg. "images/picture.jpg"borderWidth - the width of the border around the image.alternateText - the text displayed before the image is loaded.
public Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.
public Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width,
int borderWidth)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.borderWidth - the width of the border around the image.
public Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width,
int borderWidth,
java.lang.String alternateText)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.borderWidth - the width of the border around the image.alternateText - the text displayed before the image is loaded.
public Image(java.lang.String name,
java.lang.String imageSource,
int height,
int width,
java.lang.String alternateText)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.alternateText - the text displayed before the image is loaded.
public Image(java.lang.String imageSource,
java.lang.String height,
java.lang.String width)
imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.
public Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.
public Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width,
int borderWidth)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.borderWidth - the width of the border around the image.
public Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width,
int borderWidth,
java.lang.String alternateText)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.borderWidth - the width of the border around the image.alternateText - the text displayed before the image is loaded.
public Image(java.lang.String name,
java.lang.String imageSource,
java.lang.String height,
java.lang.String width,
java.lang.String alternateText)
name - the name attribute of this image.imageSource - the source URL of the image. Eg. "images/picture.jpg"height - the height of the image in pixels or a percent.width - the width of the image in pixels or a percent.alternateText - the text displayed before the image is loaded.| Method Detail |
|---|
public void addContent(java.lang.String content)
addContent in interface HTMLaddContent in class Tagcontent - is the additional alternate text.setAlternateText(java.lang.String),
setContent(java.lang.String)public java.lang.String getAlignment()
public java.lang.String getAlternateText()
public java.lang.Integer getBorderWidth()
public java.lang.String getHeight()
public java.lang.Integer getHorizontalSpace()
public java.lang.String getImageMapToUse()
public java.lang.String getImageSource()
public java.lang.String getLowResolutionImageSource()
public java.lang.String getName()
public java.lang.Integer getVerticalSpace()
public boolean isImageMap()
public Image setAlignment(java.lang.String alignment)
alignment - the alignment of the image.
public Image setAlternateText(java.lang.String alternateText)
alternateText - the text displayed before the image is loaded.
public Image setBorderWidth(int borderWidth)
borderWidth - the width of the border around the image.
public void setContent(java.lang.String text)
setContent in interface HTMLsetContent in class Tagtext - the alternate text.setAlternateText(java.lang.String)public Image setHeight(java.lang.String height)
height - the height of the image in pixels or a percent.
public Image setHorizontalSpace(int pixels)
pixels - the number of pixels of extra space to leave between the image
and the text on the left and right sides of the image.
public Image setImageMap(boolean isMap)
isMap - if true, this image is an image map.
public Image setImageMapToUse(java.lang.String map)
setImageMap(true).
map - the image map that defines the coordinates and related
hyperlinks.
public Image setImageSource(java.lang.String imageSource)
imageSource - the source URL of the image. Eg. "images/picture.jpg"
public Image setLowResolutionImageSource(java.lang.String imageSource)
imageSource - the source URL of the image. Eg. "images/picture.jpg"
public Image setName(java.lang.String name)
name - the name attribute value.
public Image setVerticalSpace(int pixels)
pixels - the number of pixels of extra space to leave between the image
and the text on the top and bottom of the image.
public Image setWidth(java.lang.String width)
width - the width of the image in pixels or a percent.
protected void setAttribute(TagAttribute attribute)
Tag
setAttribute in class Tagattribute - The attribute.Tag.setAttribute(org.pajes.html.TagAttribute)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||