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_dataFields inherited from class mgui.interfaces.plots.InterfacePlotObject
attributesFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description SgtLine() -
Method Summary
Modifier and Type Method Description voidattributeUpdated(AttributeEvent e)Called when an Attribute's value has been updated.voidsetColour(java.awt.Color colour)voidsetStroke(java.awt.Stroke stroke)protected voidupdateSgtAttribute()Update SGT attribute from object attributes.Methods inherited from class mgui.interfaces.plots.sgt.SgtPlotObject
getSgtAttribute, getSgtData, getUnitX, getUnitY, setSgtData, setTreeNode, setUnitX, setUnitYMethods 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
-
Constructor Details
-
SgtLine
public SgtLine()
-
-
Method Details
-
setColour
public void setColour(java.awt.Color colour)- Specified by:
setColourin classSgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
-
setStroke
public void setStroke(java.awt.Stroke stroke) -
attributeUpdated
Description copied from interface:AttributeListenerCalled when an Attribute's value has been updated.- Specified by:
attributeUpdatedin interfaceAttributeListener- Overrides:
attributeUpdatedin classSgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
-
updateSgtAttribute
protected void updateSgtAttribute()Description copied from class:SgtPlotObjectUpdate SGT attribute from object attributes.- Specified by:
updateSgtAttributein classSgtPlotObject<gov.noaa.pmel.sgt.dm.SimpleLine>
-