Package g3.project.elements
Class ImageElement
- java.lang.Object
-
- nu.xom.Node
-
- nu.xom.ParentNode
-
- nu.xom.Element
-
- g3.project.elements.VisualElement
-
- g3.project.elements.ImageElement
-
- All Implemented Interfaces:
Includable
,Scriptable
public class ImageElement extends VisualElement implements Includable
- Author:
- Group 3
-
-
Field Summary
-
Fields inherited from interface g3.project.elements.Includable
INCLUDE_ATTR
-
-
Constructor Summary
Constructors Constructor Description ImageElement(java.lang.String name)
Constructor.ImageElement(java.lang.String name, java.lang.String uri)
Constructor.ImageElement(java.lang.String name, java.lang.String uri, java.lang.String sourcePath)
Constructor with Source location.ImageElement(nu.xom.Element element)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(DocIO resIO)
Delete the element and sub-elements.java.util.Optional<java.lang.String>
getSourceLoc()
Get the image's source path or URL.-
Methods inherited from class g3.project.elements.VisualElement
addScriptFile, derefAttribute, getAllProps, getAlpha, getByID, getDelaySecs, getDurationSecs, getEvalRequired, getFillColour, getID, getOrigin, getPage, getParentElementScriptingBindings, getParentScriptable, getRealType, getScriptEl, getScriptingBindings, getSize, getStateVariable, getStroke, getVisibility, getVisualProps, getZInd, hasUpdated, makeAttrWithNS, putStateVariable, setAlpha, setDelaySecs, setDurationSecs, setEvalRequired, setFillColour, setID, setOriginXY, setOriginXY, setProps, setSize, setSize, setVisibility, setZInd
-
Methods inherited from class nu.xom.Element
addAttribute, addNamespaceDeclaration, appendChild, copy, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeValue, getAttributeValue, getBaseURI, getChildElements, getChildElements, getChildElements, getFirstChildElement, getFirstChildElement, getLocalName, getNamespaceDeclarationCount, getNamespacePrefix, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getQualifiedName, getValue, insertChild, removeAttribute, removeChildren, removeNamespaceDeclaration, setBaseURI, setLocalName, setNamespacePrefix, setNamespaceURI, shallowCopy, toString, toXML
-
Methods inherited from class nu.xom.ParentNode
appendChild, getChild, getChildCount, indexOf, insertChild, removeChild, removeChild, replaceChild
-
-
-
-
Constructor Detail
-
ImageElement
public ImageElement(java.lang.String name)
Constructor.- Parameters:
name
- Element name.
-
ImageElement
public ImageElement(java.lang.String name, java.lang.String uri)
Constructor.- Parameters:
name
- Element name.uri
- Element URI.
-
ImageElement
public ImageElement(nu.xom.Element element)
Constructor.- Parameters:
element
- Element.
-
ImageElement
public ImageElement(java.lang.String name, java.lang.String uri, java.lang.String sourcePath)
Constructor with Source location.- Parameters:
name
- Element name.uri
- Element URI.sourcePath
- Source Path.
-
-
Method Detail
-
delete
public void delete(DocIO resIO)
Description copied from class:VisualElement
Delete the element and sub-elements.- Specified by:
delete
in classVisualElement
- Parameters:
resIO
- Resource handler to remove resources on delete.
-
getSourceLoc
public final java.util.Optional<java.lang.String> getSourceLoc()
Get the image's source path or URL.- Specified by:
getSourceLoc
in interfaceIncludable
- Returns:
- Location string.
-
-