Package mgui.interfaces.attributes.video
Class AttributeObjectVideoTask
java.lang.Object
mgui.interfaces.graphics.video.VideoTask
mgui.interfaces.attributes.video.AttributeObjectVideoTask
public class AttributeObjectVideoTask extends VideoTask
Represents a video task which modifies an
Attribute.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields Modifier and Type Field Description java.lang.Stringattributejava.lang.Objectend_valuebooleanincrementalAttributeObjectobjectjava.lang.Stringobject_classjava.lang.Stringobject_namejava.lang.Objectstart_valuedoublestepFields inherited from class mgui.interfaces.graphics.video.VideoTask
isOn, start_time, started, stop_time -
Constructor Summary
Constructors Constructor Description AttributeObjectVideoTask()AttributeObjectVideoTask(long start, long stop, AttributeObject object, java.lang.String attribute, java.lang.Object start_value)Constructs a basic set attribute task (no iteration)AttributeObjectVideoTask(long start, long stop, AttributeObject object, java.lang.String attribute, java.lang.Object start_value, java.lang.Object end_value, boolean incremental, double step)Constructs a set attribute task with possible iteration -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()protected booleando_it(InterfaceGraphic<?> g, long time)Perform this task, contingent ontime.java.lang.StringgetName()java.lang.StringgetXML(int tab)Returns this object's XML representation as a single string.static XMLObjectgetXMLInstance(org.xml.sax.Attributes attributes)java.lang.StringgetXMLSchema()Returns the XML schema for this object's XML representationvoidhandleXMLElementEnd(java.lang.String localName)Handles the end of an XML element.voidhandleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Handles the start of an XML element.voidsetFromTask(VideoTask task)voidupdateTask(InterfaceDisplayPanel panel)Methods inherited from class mgui.interfaces.graphics.video.VideoTask
compareTo, getDTD, getLocalName, getSchema, getShortXML, getShortXML, getStart, getStop, getXML, handleXMLString, isActive, perform, reset, setStart, setStop, writeXML, writeXML, writeXMLMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
object
-
attribute
public java.lang.String attribute -
start_value
public java.lang.Object start_value -
end_value
public java.lang.Object end_value -
incremental
public boolean incremental -
step
public double step -
object_name
public java.lang.String object_name -
object_class
public java.lang.String object_class
-
-
Constructor Details
-
AttributeObjectVideoTask
public AttributeObjectVideoTask() -
AttributeObjectVideoTask
public AttributeObjectVideoTask(long start, long stop, AttributeObject object, java.lang.String attribute, java.lang.Object start_value)Constructs a basic set attribute task (no iteration)- Parameters:
start-stop-object-attribute-new_value-
-
AttributeObjectVideoTask
public AttributeObjectVideoTask(long start, long stop, AttributeObject object, java.lang.String attribute, java.lang.Object start_value, java.lang.Object end_value, boolean incremental, double step)Constructs a set attribute task with possible iteration- Parameters:
start-stop-object-attribute-new_value-
-
-
Method Details
-
do_it
Description copied from class:VideoTaskPerform this task, contingent ontime.- Specified by:
do_itin classVideoTask- Returns:
- Throws:
VideoException
-
getName
public java.lang.String getName() -
setFromTask
- Specified by:
setFromTaskin classVideoTask
-
getXMLSchema
public java.lang.String getXMLSchema()Description copied from interface:XMLObjectReturns the XML schema for this object's XML representation- Returns:
-
getXML
public java.lang.String getXML(int tab)Description copied from interface:XMLObjectReturns this object's XML representation as a single string. NOTE: this is not feasible for larger objects and containers, thus may not be implemented for these objects. Use theXMLObject.writeXML(int,java.io.Writer,mgui.io.standard.xml.XMLOutputOptions,mgui.interfaces.ProgressUpdater)functions to write larger objects to file. -
handleXMLElementStart
public void handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Description copied from interface:XMLObjectHandles the start of an XML element.- Specified by:
handleXMLElementStartin interfaceXMLObject- Overrides:
handleXMLElementStartin classVideoTask- Parameters:
localName- Local name of the elementattributes- Set of element attributestype- TheXMLTypeof this element
-
handleXMLElementEnd
public void handleXMLElementEnd(java.lang.String localName)Description copied from interface:XMLObjectHandles the end of an XML element.- Specified by:
handleXMLElementEndin interfaceXMLObject- Overrides:
handleXMLElementEndin classVideoTask- Parameters:
localName- Local name of the element
-
updateTask
- Overrides:
updateTaskin classVideoTask
-
clone
public java.lang.Object clone() -
getXMLInstance
-