Package mgui.interfaces.plots
Class InterfacePlotObject
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.plots.InterfacePlotObject
- All Implemented Interfaces:
AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject
- Direct Known Subclasses:
SgtPlotObject
public abstract class InterfacePlotObject extends AbstractInterfaceObject implements AttributeObject, AttributeListener
Abstract representation of a plottable object; allows objects to be represented generically
as interface objects.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected AttributeListattributesFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description InterfacePlotObject() -
Method Summary
Modifier and Type Method Description Attribute<?>getAttribute(java.lang.String name)Returns a specific attribute for this object.AttributeListgetAttributes()Returns the list of current attributes for this object.java.lang.ObjectgetAttributeValue(java.lang.String name)Gets the value of attributename, ornullif it does not exist.voidsetAttribute(java.lang.String name, java.lang.Object value)Sets a value for a specific attribute.voidsetAttributes(AttributeList attributes)Sets the list of attributes for this object.Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mgui.interfaces.attributes.AttributeListener
attributeUpdatedMethods inherited from interface mgui.interfaces.NamedObject
getName, setName
-
Field Details
-
attributes
-
-
Constructor Details
-
InterfacePlotObject
public InterfacePlotObject()
-
-
Method Details
-
getAttribute
Description copied from interface:AttributeObjectReturns a specific attribute for this object.- Specified by:
getAttributein interfaceAttributeObject- Returns:
-
getAttributes
Description copied from interface:AttributeObjectReturns the list of current attributes for this object.- Specified by:
getAttributesin interfaceAttributeObject- Returns:
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:AttributeObjectSets a value for a specific attribute.- Specified by:
setAttributein interfaceAttributeObject
-
setAttributes
Description copied from interface:AttributeObjectSets the list of attributes for this object.- Specified by:
setAttributesin interfaceAttributeObject
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)Description copied from interface:AttributeObjectGets the value of attributename, ornullif it does not exist.- Specified by:
getAttributeValuein interfaceAttributeObject- Parameters:
name- Name of the attribute- Returns:
- the value of attribute
name, ornullif it does not exist
-