public class EmbeddedImageHandle extends StructureHandle
ImageItemgives a name. Each
embedded image has the following properties:
structContextelementHandle| 构造器和说明 |
|---|
EmbeddedImageHandle(SimpleValueHandle valueHandle,
int index)
Constructs the handle of embedded image.
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getData()
Returns the byte array of image data.
|
java.lang.String |
getName()
Returns the embedded image name.
|
java.lang.String |
getQualifiedName()
Returns the qualified name of this element.
|
java.lang.String |
getType()
Returns the image type.
|
boolean |
isLibReference()
Checks whether
EmbeddedImage has reference to library
embedded image. |
void |
setData(byte[] data)
Sets the byte array of image data.
|
void |
setName(java.lang.String name)
Sets the embedded image name.
|
void |
setType(java.lang.String type)
Sets the image type.
|
drop, getContext, getDefn, getExpressionProperty, getExternalizedValue, getExternalizedValue, getIntProperty, getMember, getProperty, getPropertyDefn, getStringProperty, getStructure, isDesignTime, isLocal, iterator, setDesignTime, setExpressionProperty, setProperty, setPropertySilentlygetReferencegetDesign, getElement, getElementHandle, getModulepublic EmbeddedImageHandle(SimpleValueHandle valueHandle, int index)
valueHandle - the value handle for embedded image list of one propertyindex - the position of this embedded image in the listpublic byte[] getData()
public void setData(byte[] data)
data - the byte array to setpublic java.lang.String getName()
public void setName(java.lang.String name)
throws SemanticException
name - the embedded image name to setSemanticException - value required exceptionpublic java.lang.String getType()
DesignChoiceConstants,
and they are:
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
public void setType(java.lang.String type)
throws SemanticException
DesignChoiceConstants,
and they are:
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
type - the image type to setSemanticException - if the image type is not in the choice list.public java.lang.String getQualifiedName()
public boolean isLibReference()
EmbeddedImage has reference to library
embedded image.EmbeddedImage has reference to library image and
the reference is resolved return true else return
falseCopyright © 2008 Actuate Corp. All rights reserved.