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_TEXT
TYPE_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(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.
|
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, useTextHeight
isFirstInLine
getCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasLineNumber
getStyle, hasInlinedStyle, setCustomStyles
public 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 XMLImage
public XMLExtendedImage createExtendedImage()
createExtendedImage
in class XMLImage
public void addArea(ImageMap.Area area)
public void addReference(XMLReference ref)
addReference
in class XMLImage
ref
- the referencepublic void addCategoryReference(XMLCategoryReference catRef)
addCategoryReference
in class XMLImage
catRef
- the category referencepublic void addExternalLink(XMLExternalLink link)
addExternalLink
in class XMLImage
link
- the external linkpublic boolean acceptExtension()
acceptExtension
in class XMLImage
public 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 XMLImage
public boolean hasImageMap()
hasImageMap
in class XMLImage
public ImageMap getImageMap()
getImageMap
in class XMLImage
public XMLReference getReference()
getReference
in class XMLImage
public XMLCategoryReference getCategoryReference()
getCategoryReference
in class XMLImage
public XMLExternalLink getExternalLink()
getExternalLink
in class XMLImage
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence