Class SgtPlotObject<T extends gov.noaa.pmel.sgt.dm.SGTData>

java.lang.Object
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 Details

    • sgt_attribute

      protected gov.noaa.pmel.sgt.Attribute sgt_attribute
    • sgt_data

      protected T extends gov.noaa.pmel.sgt.dm.SGTData sgt_data
  • Constructor Details

    • SgtPlotObject

      public SgtPlotObject()
  • Method Details

    • setColour

      public abstract void setColour​(java.awt.Color colour)
    • attributeUpdated

      public void attributeUpdated​(AttributeEvent e)
      Description copied from interface: AttributeListener
      Called when an Attribute's value has been updated.
      Specified by:
      attributeUpdated in interface AttributeListener
    • 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

      public T getSgtData()
      Returns the SGT data object for this object
      Returns:
    • setSgtData

      public void setSgtData​(T data)
      Sets the SGT data for this object
      Parameters:
      object -
    • setTreeNode

      public void setTreeNode​(InterfaceTreeNode node)
      Description copied from interface: TreeObject
      Sets the children for this node's InterfaceTreeNode.
      Specified by:
      setTreeNode in interface TreeObject
      Overrides:
      setTreeNode in class AbstractInterfaceObject
    • getUnitX

      public Unit getUnitX()
      Returns the unit for the X values of this object.
      Returns:
    • setUnitX

      public void setUnitX​(Unit unit)
      Sets the unit for the X values of this object.
      Parameters:
      unit -
    • getUnitY

      public Unit getUnitY()
      Returns the unit for the Y values of this object.
      Returns:
    • setUnitY

      public void setUnitY​(Unit unit)
      Sets the unit for the Y values of this object.
      Parameters:
      unit -