public class XMLExtendedImage extends XMLImage
| Modifier and Type | Field and Description |
|---|---|
static short |
CATEGORY_REFERENCE
Tags a category reference extended image.
|
static short |
EXTERNAL_LINK
Tags an external link extended image.
|
static short |
IMAGE_MAP
Tags an image Map extended image.
|
static short |
REFERENCE
Tags a reference extended image.
|
HEIGHT_ABSOLUTE, HEIGHT_RELATIVE, HEIGHT_TEXTTYPE_NONE| Constructor and Description |
|---|
XMLExtendedImage(org.docgene.model.globals.XMLRootElement element,
java.io.File href)
Constructor.
|
XMLExtendedImage(org.docgene.model.globals.XMLRootElement element,
java.lang.String id,
java.lang.String pack)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptExtension()
Return true if the image accept an extension (whichc an be an ImageMap, a reference, or an external link).
|
void |
addArea(org.docgene.model.ImageMap.Area area)
Add an active area in the image.
|
void |
addCategoryReference(XMLCategoryReference catRef)
Add a category reference on the image.
|
void |
addExternalLink(XMLExternalLink link)
Add an external link on the image.
|
void |
addReference(XMLReference ref)
Add a reference on the image.
|
XMLExtendedImage |
createExtendedImage()
Return this extended image.
|
XMLCategoryReference |
getCategoryReference()
Return the category reference on the image.
|
short |
getExtensionType()
Return the extension type.
|
XMLExternalLink |
getExternalLink()
Return the external link on the image.
|
org.docgene.model.ImageMap |
getImageMap()
Return the image image Map (can be null).
|
XMLReference |
getReference()
Return the reference on the image.
|
boolean |
hasExtensionType()
Return true if an extension type is defined on this image.
|
boolean |
hasImageMap()
Return true if the image has an image Map.
|
boolean |
isExtendedImage()
Return true if the image is an extended image.
|
bind, getAlignment, getBorderType, getCaption, getConcreteImage, getDeclaration, getElement, getHeight, getHeightType, getHRef, getImage, getImageDimension, getImageID, getImageReferenceDimension, getInputFile, getInputURL, getLineNumber, getMargin, getPackage, getVerticalAlignment, getWidth, hasBorder, hasCaption, hasConcreteImage, hasHeight, hasHRef, hasID, hasImageDefinition, hasImageReference, hasShadow, hasSize, hasWidth, isFloat, isRelativeHeight, isRelativeWidth, isUsingMaximumSize, setAbsoluteWidth, setAlignment, setBorderType, setCaption, setFirstInLine, setFloat, setHeight, setHeightAsText, setID, setLineNumber, setMargin, setRelativeWidth, setVerticalAlignment, setWidth, useMaximumSize, useTextHeightgetCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStyle, hasInlinedStyle, setCustomStylespublic static final short IMAGE_MAP
public static final short REFERENCE
public static final short CATEGORY_REFERENCE
public static final short EXTERNAL_LINK
public XMLExtendedImage(org.docgene.model.globals.XMLRootElement element,
java.lang.String id,
java.lang.String pack)
element - the element which use the imageid - the image reference IDpack - the packagepublic XMLExtendedImage(org.docgene.model.globals.XMLRootElement element,
java.io.File href)
element - the element which use the imagehref - the href Filepublic boolean isExtendedImage()
isExtendedImage in class XMLImagepublic XMLExtendedImage createExtendedImage()
createExtendedImage in class XMLImagepublic void addArea(org.docgene.model.ImageMap.Area area)
public void addReference(XMLReference ref)
addReference in class XMLImageref - the referencepublic void addCategoryReference(XMLCategoryReference catRef)
addCategoryReference in class XMLImagecatRef - the category referencepublic void addExternalLink(XMLExternalLink link)
addExternalLink in class XMLImagelink - the external linkpublic boolean acceptExtension()
acceptExtension in class XMLImagepublic boolean hasExtensionType()
public short getExtensionType()
IMAGE_MAP for an Image mapREFERENCE for a referenceCATEGORY_REFERENCE for a category referenceEXTERNAL_LINK for an external linkgetExtensionType in class XMLImagepublic boolean hasImageMap()
hasImageMap in class XMLImagepublic org.docgene.model.ImageMap getImageMap()
getImageMap in class XMLImagepublic XMLReference getReference()
getReference in class XMLImagepublic XMLCategoryReference getCategoryReference()
getCategoryReference in class XMLImagepublic XMLExternalLink getExternalLink()
getExternalLink in class XMLImageCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence