Package mgui.interfaces.plots.sgt
Class SgtPlotObject<T extends gov.noaa.pmel.sgt.dm.SGTData>
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.plots.InterfacePlotObject
mgui.interfaces.plots.sgt.SgtPlotObject<T>
- All Implemented Interfaces:
AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject
- Direct Known Subclasses:
SgtLine,SgtPointSet
public abstract class SgtPlotObject<T extends gov.noaa.pmel.sgt.dm.SGTData> extends InterfacePlotObject implements AttributeListener
A plottable object for a Scientific Graphics Toolkit (SGT) plot.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected gov.noaa.pmel.sgt.Attributesgt_attributeprotected Tsgt_dataFields inherited from class mgui.interfaces.plots.InterfacePlotObject
attributesFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description SgtPlotObject() -
Method Summary
Modifier and Type Method Description voidattributeUpdated(AttributeEvent e)Called when an Attribute's value has been updated.gov.noaa.pmel.sgt.AttributegetSgtAttribute()Returns an SGT attribute object for this objectTgetSgtData()Returns the SGT data object for this objectUnitgetUnitX()Returns the unit for the X values of this object.UnitgetUnitY()Returns the unit for the Y values of this object.abstract voidsetColour(java.awt.Color colour)voidsetSgtData(T data)Sets the SGT data for this objectvoidsetTreeNode(InterfaceTreeNode node)Sets the children for this node'sInterfaceTreeNode.voidsetUnitX(Unit unit)Sets the unit for the X values of this object.voidsetUnitY(Unit unit)Sets the unit for the Y values of this object.protected abstract voidupdateSgtAttribute()Update SGT attribute from object attributes.Methods inherited from class mgui.interfaces.plots.InterfacePlotObject
getAttribute, getAttributes, getAttributeValue, setAttribute, setAttributesMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, updateTreeNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mgui.interfaces.NamedObject
getName, setName
-
Field Details
-
sgt_attribute
protected gov.noaa.pmel.sgt.Attribute sgt_attribute -
sgt_data
-
-
Constructor Details
-
SgtPlotObject
public SgtPlotObject()
-
-
Method Details
-
setColour
public abstract void setColour(java.awt.Color colour) -
attributeUpdated
Description copied from interface:AttributeListenerCalled when an Attribute's value has been updated.- Specified by:
attributeUpdatedin interfaceAttributeListener
-
getSgtAttribute
public gov.noaa.pmel.sgt.Attribute getSgtAttribute()Returns an SGT attribute object for this object- Returns:
-
updateSgtAttribute
protected abstract void updateSgtAttribute()Update SGT attribute from object attributes. -
getSgtData
Returns the SGT data object for this object- Returns:
-
setSgtData
Sets the SGT data for this object- Parameters:
object-
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classAbstractInterfaceObject
-
getUnitX
Returns the unit for the X values of this object.- Returns:
-
setUnitX
Sets the unit for the X values of this object.- Parameters:
unit-
-
getUnitY
Returns the unit for the Y values of this object.- Returns:
-
setUnitY
Sets the unit for the Y values of this object.- Parameters:
unit-
-