Package org.apache.maven.doxia.site
Class Image
java.lang.Object
org.apache.maven.doxia.site.Image
- All Implemented Interfaces:
Serializable,Cloneable
An image. Generates an "img" element
(https://html.spec.whatwg.org/#the-img-element).
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Method clone.booleanMethod equals.getAlt()Get the alternative text to use.Get the height to use.Get where to place the image relative to the displayed name (left or right).getSrc()Get the source location.getStyle()Get the style to use.getWidth()Get the width to use.inthashCode()Method hashCode.voidSet the alternative text to use.voidSet the height to use.voidsetPosition(String position) Set where to place the image relative to the displayed name (left or right).voidSet the source location.voidSet the style to use.voidSet the width to use.toString()Method toString.
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
clone
Method clone. -
equals
Method equals. -
getAlt
Get the alternative text to use. Ends up in the "img alt" attribute (https://html.spec.whatwg.org/#alt).(.- Returns:
- String
-
getHeight
Get the height to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "height: ".- Returns:
- String
-
getPosition
Get where to place the image relative to the displayed name (left or right).- Returns:
- String
-
getSrc
Get the source location. Ends up in the "img src" attribute (https://html.spec.whatwg.org/#attr-img-src).- Returns:
- String
-
getStyle
Get the style to use. Ends up in the "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) as is.- Returns:
- String
-
getWidth
Get the width to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "width: ".- Returns:
- String
-
hashCode
public int hashCode()Method hashCode. -
setAlt
Set the alternative text to use. Ends up in the "img alt" attribute (https://html.spec.whatwg.org/#alt).(.- Parameters:
alt- a alt object.
-
setHeight
Set the height to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "height: ".- Parameters:
height- a height object.
-
setPosition
Set where to place the image relative to the displayed name (left or right).- Parameters:
position- a position object.
-
setSrc
Set the source location. Ends up in the "img src" attribute (https://html.spec.whatwg.org/#attr-img-src).- Parameters:
src- a src object.
-
setStyle
Set the style to use. Ends up in the "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) as is.- Parameters:
style- a style object.
-
setWidth
Set the width to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "width: ".- Parameters:
width- a width object.
-
toString
Method toString.
-