Package mgui.interfaces.plots.sgt
Class SgtLine
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.plots.InterfacePlotObject
mgui.interfaces.plots.sgt.SgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
mgui.interfaces.plots.sgt.SgtLine
- All Implemented Interfaces:
AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
public class SgtLine extends SgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
A plotted line in a Scientific Graphics Toolkit (SGT) plot. Holds attributes for the
line such as colour and stroke, etc. TODO: curve function, etc.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.interfaces.plots.sgt.SgtPlotObject
sgt_attribute, 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 SgtLine()
-
Method Summary
Modifier and Type Method Description void
attributeUpdated(AttributeEvent e)
Called when an Attribute's value has been updated.void
setColour(java.awt.Color colour)
void
setStroke(java.awt.Stroke stroke)
protected void
updateSgtAttribute()
Update SGT attribute from object attributes.Methods inherited from class mgui.interfaces.plots.sgt.SgtPlotObject
getSgtAttribute, getSgtData, getUnitX, getUnitY, setSgtData, setTreeNode, setUnitX, setUnitY
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
-
Constructor Details
-
SgtLine
public SgtLine()
-
-
Method Details
-
setColour
public void setColour(java.awt.Color colour)- Specified by:
setColour
in classSgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
-
setStroke
public void setStroke(java.awt.Stroke stroke) -
attributeUpdated
Description copied from interface:AttributeListener
Called when an Attribute's value has been updated.- Specified by:
attributeUpdated
in interfaceAttributeListener
- Overrides:
attributeUpdated
in classSgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
-
updateSgtAttribute
protected void updateSgtAttribute()Description copied from class:SgtPlotObject
Update SGT attribute from object attributes.- Specified by:
updateSgtAttribute
in classSgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
-