Interface IImageContent
- All Superinterfaces:
org.eclipse.birt.report.engine.css.engine.CSSStylableElement,IContent,IElement,IStyledElement
Image content in the report.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intproperty: image expression keystatic final intproperty: image file keystatic final intproperty: image name keystatic final intDeprecated.replaced by IMAGE_URLstatic final intproperty: image URL keyFields inherited from interface org.eclipse.birt.report.engine.content.IContent
AUTOTEXT_CONTENT, CELL_CONTENT, CONTAINER_CONTENT, DATA_CONTENT, DOCUMENT_EXTENSION, FOREIGN_CONTENT, GROUP_CONTENT, IMAGE_CONTENT, LABEL_CONTENT, LAYOUT_EXTENSION, LIST_BAND_CONTENT, LIST_CONTENT, LIST_GROUP_CONTENT, PAGE_CONTENT, REPORT_CONTENT, ROW_CONTENT, SERIALIZE_CONTENT, TABLE_BAND_CONTENT, TABLE_CONTENT, TABLE_GROUP_CONTENT, TEXT_CONTENT -
Method Summary
Modifier and TypeMethodDescriptionGet the alternative textGet the alternative text keybyte[]getData()Get the dataGet the image extensionGet the help text keyGet the calculated image sizeGet the image raw sizeintGet the type of image sourceGet the MIME typeintGet the image resolutiongetURI()Get the URIdefault booleanFit the image to the wrapping containervoidsetAltText(String altText) Set the alternative textvoidsetAltTextKey(String key) Set the alternative text keyvoidsetData(byte[] data) Set the datavoidsetExtension(String extension) Set the image extensionvoidsetHelpKey(String key) Set the help text keyvoidsetImageCalculatedSize(ImageSize imageCalcSize) Set the calculated image sizevoidsetImageMap(Object map) Set the image based on full mapping objectvoidsetImageRawSize(ImageSize imageRawSize) Set the image raw sizevoidsetImageSource(int source) Set the image sourcevoidsetMIMEType(String mimeType) Set the image MIME typevoidsetResolution(int resolution) Set the image resolutionvoidSet the URIMethods inherited from interface org.eclipse.birt.report.engine.css.engine.CSSStylableElement
getComputedStyle, getCSSEngine, getStyleMethods inherited from interface org.eclipse.birt.report.engine.content.IContent
accept, cloneContent, getACL, getBookmark, getContentType, getExtension, getExtensions, getGenerateBy, getHeight, getHelpText, getHyperlinkAction, getInlineStyle, getInstanceID, getName, getReportContent, getResultSet, getTagType, getTOC, getUserProperties, getWidth, getX, getY, hasChildren, isDirectionRTL, isLastChild, isRTL, readContent, setACL, setBookmark, setExtension, setExtensions, setGenerateBy, setHasChildren, setHeight, setHelpText, setHyperlinkAction, setInlineStyle, setInstanceID, setLastChild, setName, setReportContent, setTagType, setTOC, setUserProperties, setWidth, setX, setY, writeContentMethods inherited from interface org.eclipse.birt.report.engine.content.IElement
getChildren, getParent, setParentMethods inherited from interface org.eclipse.birt.report.engine.content.IStyledElement
getComputedStyle, getStyle, getStyleClass, setStyleClass
-
Field Details
-
IMAGE_FILE
static final int IMAGE_FILEproperty: image file key- See Also:
-
IMAGE_NAME
static final int IMAGE_NAMEproperty: image name key- See Also:
-
IMAGE_EXPRESSION
static final int IMAGE_EXPRESSIONproperty: image expression key- See Also:
-
IMAGE_URL
static final int IMAGE_URLproperty: image URL key- See Also:
-
IMAGE_URI
Deprecated.replaced by IMAGE_URL- See Also:
-
-
Method Details
-
getAltText
String getAltText()Description copied from interface:IContentGet the alternative text- Specified by:
getAltTextin interfaceIContent- Returns:
- Returns the altText.
-
getAltTextKey
String getAltTextKey()Description copied from interface:IContentGet the alternative text key- Specified by:
getAltTextKeyin interfaceIContent- Returns:
- the alternative text key
-
setAltText
Description copied from interface:IContentSet the alternative text- Specified by:
setAltTextin interfaceIContent- Parameters:
altText- alternative text
-
setAltTextKey
Description copied from interface:IContentSet the alternative text key- Specified by:
setAltTextKeyin interfaceIContent- Parameters:
key- alternative text key
-
setHelpKey
Set the help text key- Parameters:
key- key of the help text
-
getHelpKey
String getHelpKey()Get the help text key- Returns:
- the help text key
-
getData
byte[] getData()Get the data- Returns:
- the data
-
setData
void setData(byte[] data) Set the data- Parameters:
data- image data
-
getExtension
String getExtension()Get the image extension- Returns:
- the image extension
-
setExtension
Set the image extension- Parameters:
extension- image extension
-
getURI
String getURI()Get the URI- Returns:
- the URI
-
setURI
Set the URI- Parameters:
uri- image URI
-
getImageSource
int getImageSource()Get the type of image source- Returns:
- the type of image source
-
setImageSource
void setImageSource(int source) Set the image source- Parameters:
source- image source
-
getImageMap
Object getImageMap()- Returns:
- the image map (null means no image map)
-
setImageMap
Set the image based on full mapping object- Parameters:
map-
-
getMIMEType
String getMIMEType()Get the MIME type- Returns:
- the MIME type
-
setMIMEType
Set the image MIME type- Parameters:
mimeType- MIME type of the image
-
getResolution
int getResolution()Get the image resolution- Returns:
- the image resolution
-
setResolution
void setResolution(int resolution) Set the image resolution- Parameters:
resolution- image resolution
-
setImageRawSize
Set the image raw size- Parameters:
imageRawSize- image raw size
-
getImageRawSize
ImageSize getImageRawSize()Get the image raw size- Returns:
- Return the image raw size
-
setImageCalculatedSize
Set the calculated image size- Parameters:
imageCalcSize- calculated image size
-
getImageCalculatedSize
ImageSize getImageCalculatedSize()Get the calculated image size- Returns:
- Return the calculated image size
-
isFitToContainer
default boolean isFitToContainer()Fit the image to the wrapping container- Returns:
- the image is fit to the wrapping container
- Since:
- 4.19
-