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.Attribute
sgt_attribute
protected T
sgt_data
Fields inherited from class mgui.interfaces.plots.InterfacePlotObject
attributes
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description SgtPlotObject()
-
Method Summary
Modifier and Type Method Description void
attributeUpdated(AttributeEvent e)
Called when an Attribute's value has been updated.gov.noaa.pmel.sgt.Attribute
getSgtAttribute()
Returns an SGT attribute object for this objectT
getSgtData()
Returns the SGT data object for this objectUnit
getUnitX()
Returns the unit for the X values of this object.Unit
getUnitY()
Returns the unit for the Y values of this object.abstract void
setColour(java.awt.Color colour)
void
setSgtData(T data)
Sets the SGT data for this objectvoid
setTreeNode(InterfaceTreeNode node)
Sets the children for this node'sInterfaceTreeNode
.void
setUnitX(Unit unit)
Sets the unit for the X values of this object.void
setUnitY(Unit unit)
Sets the unit for the Y values of this object.protected abstract void
updateSgtAttribute()
Update SGT attribute from object attributes.Methods inherited from class mgui.interfaces.plots.InterfacePlotObject
getAttribute, getAttributes, getAttributeValue, setAttribute, setAttributes
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:AttributeListener
Called when an Attribute's value has been updated.- Specified by:
attributeUpdated
in 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:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in 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
-
-