|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebImage
public final class WebImage
Web server implementation of image definition.
Image| Method Summary | |
|---|---|
static WebImage |
createScaledImage(WebImage pImage)
Creates a scaled image. |
String |
getAsString()
Gets this Object as String. |
byte[] |
getData()
Gets the image stream. |
int |
getHeight()
Determines the height of the image. |
static WebImage |
getImage(String pImageName)
Creates a new instance of WebImage with a specific image name. |
static WebImage |
getImage(String pImageName,
byte[] pData)
Creates a new instance of WebImage for specific byte data
and an image name. |
static WebImage |
getImageFromURI(String pRequestURI)
Gets the WebImage from a given request URI. |
static String |
getImageMapping(String pMappingName)
Gets the image name for the given mapping name. |
static String[] |
getImageMappingNames()
Gets all used mapping names. |
String |
getImageName()
Gets the image name. |
static String |
getImageURI(String pImageName)
Gets the URL for the given image name. |
static String |
getImageURI(String pImageName,
byte[] pData)
Gets the URL for the given image name and data. |
InputStream |
getInputStream()
Gets the image stream. |
static String |
getURLPrefix()
Gets the url prefix. |
int |
getWidth()
Determines the width of the image. |
void |
saveAs(String pFileName)
Saves the current image as file. |
static void |
setImageMapping(String pMappingName,
String pImageName)
Sets the image name for the given mapping name. |
static void |
setURLPrefix(String pUrlPrefix)
Sets the url prefix. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, setAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Method Detail |
|---|
public String getAsString()
getAsString in class WebResourcepublic int getWidth()
-1.
getWidth in interface IImage-1
if the width is not yet known.Image.getHeight(java.awt.image.ImageObserver)public int getHeight()
-1.
getHeight in interface IImage-1
if the height is not yet known.Image.getWidth(java.awt.image.ImageObserver)
public void saveAs(String pFileName)
throws IOException
saveAs in interface IImagepFileName - the filename
IOException - if the image can not be savedpublic static WebImage getImage(String pImageName)
WebImage with a specific image name.
pImageName - the Image name.
IImage
public static WebImage getImage(String pImageName,
byte[] pData)
WebImage for specific byte data
and an image name.
pImageName - the name of the image specified with byDatapData - the image data
public InputStream getInputStream()
public String getImageName()
public byte[] getData()
public static String getImageURI(String pImageName)
pImageName - the image name.
public static String getImageURI(String pImageName,
byte[] pData)
pImageName - the image name.pData - the data.
public static WebImage getImageFromURI(String pRequestURI)
pRequestURI - the request URI.
public static String getImageMapping(String pMappingName)
pMappingName - the mapping name.
public static void setImageMapping(String pMappingName,
String pImageName)
pMappingName - the mapping name.pImageName - the image name.public static String[] getImageMappingNames()
public static String getURLPrefix()
public static void setURLPrefix(String pUrlPrefix)
pUrlPrefix - the url prefix.public static WebImage createScaledImage(WebImage pImage)
pImage - the image to scale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||