Package dataMap

Class DataStreamPanel

All Implemented Interfaces:
DataMapObserver, ImageObserver, MenuContainer, Serializable, Accessible

public class DataStreamPanel extends JPanel implements DataMapObserver
Panelette to go into the main DataPanel to show the data for a single data stream

The outer panel will be a borderlayout with a NORTH and CENTER component.

These will be allowed to size to the full size of the container panel, which does not in itself scroll. SCrolling is handled by a custom scroll bar which will send instruction to each component to redraw if it's moved.

Author:
Doug Gillespie
See Also:
  • Field Details

    • startTimeArrow

      public Polygon startTimeArrow
    • endTimeArrow

      public Polygon endTimeArrow
  • Constructor Details

  • Method Details

    • getPanel

      public JPanel getPanel()
    • getDataGraph

      public DataStreamPanel.DataGraph getDataGraph()
      Returns:
      the dataGraph
    • getDataName

      public dataMap.DataStreamPanel.DataName getDataName()
      Returns:
      the dataName
    • autoHide

      public void autoHide()
    • wheelMoved

      public void wheelMoved(MouseWheelEvent mwe)
    • showGraphMenu

      public void showGraphMenu(MouseEvent e)
    • isGraphVisible

      public boolean isGraphVisible()
    • scrollChanged

      public void scrollChanged()
    • isLogScale

      public boolean isLogScale()
      Returns:
      the logScale
    • getYScaleMin

      public double getYScaleMin()
      Returns:
      the yScaleMin
    • getYScaleMax

      public double getYScaleMax()
      Returns:
      the yScaleMax
    • getScaleUnits

      public String getScaleUnits()
    • getScaleType

      public int getScaleType()
    • setAxis

      public void setAxis(PamAxis yAxis)
      Need to know the axis since the axis can easily calculate a value based on the coordinate of the cursor for the tooltips.
      Parameters:
      yAxis -
    • repaintAll

      public void repaintAll()
      Repaint everything, including the output border panel
    • updateDataMap

      public void updateDataMap(OfflineDataMap dataMap, OfflineDataMapPoint dataMapPoint)
      Specified by:
      updateDataMap in interface DataMapObserver