|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.core.Structure
org.eclipse.birt.report.model.core.ReferencableStructure
org.eclipse.birt.report.model.api.elements.structures.EmbeddedImage
public class EmbeddedImage
Represents an embedded image. The class gives the name and type of the image.
Used when an image element ImageItem
gives a name. Each embedded
image has the following properties:
Field Summary | |
---|---|
static java.lang.String |
CHARSET
Encoding mode for the data member. |
protected java.lang.String |
data
String of the image data in 8859_1 encoding. |
static java.lang.String |
DATA_MEMBER
Name of the "data" property. |
static java.lang.String |
EMBEDDED_IMAGE_STRUCT
Name of this structure. |
protected java.lang.String |
name
Value of the name property. |
static java.lang.String |
NAME_MEMBER
Name of the "name" property. |
protected java.lang.String |
type
Value of the expression property. |
static java.lang.String |
TYPE_MEMBER
Name of the "type" property. |
Fields inherited from class org.eclipse.birt.report.model.core.ReferencableStructure |
---|
clients, clientStructures, LIB_REFERENCE_MEMBER, libReference |
Constructor Summary | |
---|---|
EmbeddedImage()
Default constructor. |
|
EmbeddedImage(java.lang.String name)
Constructs the image with the given name. |
|
EmbeddedImage(java.lang.String name,
java.lang.String type)
Constructs the image with the required name and type. |
Method Summary | |
---|---|
byte[] |
getData(org.eclipse.birt.report.model.core.Module module)
Returns the image data in Base64 encoding. |
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
|
java.lang.String |
getName()
Returns name of the image. |
java.lang.String |
getReferencableProperty()
|
java.lang.String |
getStructName()
Returns the name of the structure definition. |
java.lang.String |
getType(org.eclipse.birt.report.model.core.Module module)
Returns type value this node represents. |
StructureHandle |
handle(SimpleValueHandle valueHandle,
int index)
|
boolean |
isReferencableProperty(java.lang.String memberName)
|
void |
setData(byte[] data)
Sets the data of the image. |
protected void |
setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
|
void |
setName(java.lang.String name)
Sets the name of the image. |
void |
setType(java.lang.String type)
Sets the type of the image. |
java.util.List |
validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
|
Methods inherited from class org.eclipse.birt.report.model.core.ReferencableStructure |
---|
addClient, addClientStructure, broadcast, clone, dropClient, dropClientStructure, getClientList, getClientStructures, getLocalProperty, getProperty, hasReferences, isReferencable, updateReference |
Methods inherited from class org.eclipse.birt.report.model.core.Structure |
---|
copy, equals, getContext, getDefn, getElement, getHandle, getHandle, getListMemberRef, getLocalProperty, getObjectDefn, getProperty, isDesignTime, setContext, setProperty, setProperty, updateReference |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EMBEDDED_IMAGE_STRUCT
public static final java.lang.String NAME_MEMBER
public static final java.lang.String TYPE_MEMBER
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
public static final java.lang.String DATA_MEMBER
public static final java.lang.String CHARSET
protected java.lang.String name
protected java.lang.String type
protected java.lang.String data
Constructor Detail |
---|
public EmbeddedImage()
public EmbeddedImage(java.lang.String name)
DesignChoiceConstants.IMAGE_TYPE_AUTO
.
name
- name of the imagepublic EmbeddedImage(java.lang.String name, java.lang.String type)
name
- name of the imagetype
- type of the imageMethod Detail |
---|
public java.lang.String getStructName()
IStructure
protected java.lang.Object getIntrinsicProperty(java.lang.String propName)
getIntrinsicProperty
in class org.eclipse.birt.report.model.core.ReferencableStructure
protected void setIntrinsicProperty(java.lang.String propName, java.lang.Object value)
setIntrinsicProperty
in class org.eclipse.birt.report.model.core.ReferencableStructure
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getType(org.eclipse.birt.report.model.core.Module module)
IMAGE_TYPE_IMAGE_JPEG
IMAGE_TYPE_IMAGE_BMP
IMAGE_TYPE_IMAGE_GIF
IMAGE_TYPE_IMAGE_PNG
IMAGE_TYPE_IMAGE_X_PNG
module
- the module of this structure
public void setType(java.lang.String type)
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 type to setpublic byte[] getData(org.eclipse.birt.report.model.core.Module module)
module
- the module of this structure
public void setData(byte[] data)
data
- the image data to setpublic StructureHandle handle(SimpleValueHandle valueHandle, int index)
handle
in class org.eclipse.birt.report.model.core.Structure
public java.util.List validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
validate
in class org.eclipse.birt.report.model.core.ReferencableStructure
public boolean isReferencableProperty(java.lang.String memberName)
isReferencableProperty
in class org.eclipse.birt.report.model.core.ReferencableStructure
public java.lang.String getReferencableProperty()
getReferencableProperty
in class org.eclipse.birt.report.model.core.Structure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |