public class ImageFormat extends Object
| Constructor and Description |
|---|
ImageFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlt() |
String |
getCaption() |
String |
getFilename() |
int |
getHeight()
Get the height of the image in pixel (example: "600px")
|
String |
getHeightStr()
Get the height of the image as a string
|
static ImageFormat |
getImageFormat(String rawImageLink,
String imageNamespace) |
String |
getLink()
Get the "e;link="e; attribute from the [[Image:...]] wiki link.
|
String |
getLocation() |
String |
getNamespace() |
String |
getType() |
int |
getWidth()
Get the width of the image in pixel (example: "600px")
|
String |
getWidthStr()
Get the width of the image as a string
|
void |
setAlt(String alt) |
void |
setCaption(String caption) |
void |
setFilename(String filename) |
void |
setLink(String link) |
void |
setLocation(String location) |
void |
setNamespace(String namespace) |
void |
setSize(String size)
Set the size of the image in pixel.
|
void |
setType(String type) |
void |
setWidth(int width)
Set the width of the image in pixel.
|
public static ImageFormat getImageFormat(String rawImageLink, String imageNamespace)
public String getAlt()
public String getCaption()
public String getFilename()
public String getLocation()
public String getNamespace()
public String getLink()
public int getWidth()
size - -1 if no width is specifiedpublic String getWidthStr()
size - null if no width is specifiedpublic int getHeight()
size - -1 if no width is specifiedpublic String getHeightStr()
size - null if no width is specifiedpublic String getType()
public void setAlt(String alt)
public void setCaption(String caption)
public void setFilename(String filename)
public void setLocation(String location)
public void setNamespace(String namespace)
public void setLink(String link)
public void setSize(String size)
size - public void setType(String type)
public void setWidth(int width)
width - AbstractWikiModel.setDefaultThumbWidth(ImageFormat)Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.