|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.wiki.model.ImageFormat
public class ImageFormat
Represents an [[Image:....]] wiki link with all the possible attributes. Copied from Patch #1488331 sf.net user: o_rossmueller; modified by axelclk http ://sourceforge.net/tracker/index.php?func=detail&aid=1488331&group_id= 128886 &atid=713150
Constructor Summary | |
---|---|
ImageFormat()
|
Method Summary | |
---|---|
java.lang.String |
getAlt()
|
java.lang.String |
getCaption()
|
java.lang.String |
getFilename()
|
int |
getHeight()
Get the height of the image in pixel (example: "600px") |
java.lang.String |
getHeightStr()
Get the height of the image as a string |
static ImageFormat |
getImageFormat(java.lang.String rawImageLink,
java.lang.String imageNamespace)
|
java.lang.String |
getLink()
Get the "e;link="e; attribute from the [[Image:...]] wiki link. |
java.lang.String |
getLocation()
|
java.lang.String |
getNamespace()
|
java.lang.String |
getType()
|
int |
getWidth()
Get the width of the image in pixel (example: "600px") |
java.lang.String |
getWidthStr()
Get the width of the image as a string |
void |
setAlt(java.lang.String alt)
|
void |
setCaption(java.lang.String caption)
|
void |
setFilename(java.lang.String filename)
|
void |
setLink(java.lang.String link)
|
void |
setLocation(java.lang.String location)
|
void |
setNamespace(java.lang.String namespace)
|
void |
setSize(java.lang.String size)
Set the size of the image in pixel. |
void |
setType(java.lang.String type)
|
void |
setWidth(int width)
Set the width of the image in pixel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFormat()
Method Detail |
---|
public static ImageFormat getImageFormat(java.lang.String rawImageLink, java.lang.String imageNamespace)
public java.lang.String getAlt()
public java.lang.String getCaption()
public java.lang.String getFilename()
public java.lang.String getLocation()
public java.lang.String getNamespace()
public java.lang.String getLink()
public int getWidth()
size
-
-1
if no width is specifiedpublic java.lang.String getWidthStr()
size
-
null
if no width is specifiedpublic int getHeight()
size
-
-1
if no width is specifiedpublic java.lang.String getHeightStr()
size
-
null
if no width is specifiedpublic java.lang.String getType()
public void setAlt(java.lang.String alt)
public void setCaption(java.lang.String caption)
public void setFilename(java.lang.String filename)
public void setLocation(java.lang.String location)
public void setNamespace(java.lang.String namespace)
public void setLink(java.lang.String link)
public void setSize(java.lang.String size)
size
- public void setType(java.lang.String type)
public void setWidth(int width)
width
- AbstractWikiModel.setDefaultThumbWidth(ImageFormat)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |