Package dataMap

Class DataStreamPanel.DataGraph

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ColorManaged
Enclosing class:
DataStreamPanel

public class DataStreamPanel.DataGraph extends JPanelWithPamKey
See Also:
  • Method Details

    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • standardPaint

      public void standardPaint(Graphics g)
      Paint effort and detections for all data maps.
    • drawEffort

      public void drawEffort(Graphics g, OfflineDataMap offlineDataMap, Color effortColour)
    • drawDataRate

      public void drawDataRate(Graphics g, OfflineDataMap offlineDataMap, Color dataColour)
    • showLoadPeriod

      public void showLoadPeriod(Graphics g)
      Draw on the chart the period of data loaded into memory.
      Parameters:
      g - graphics
    • getYCoord

      public int getYCoord(double count, long itemDuration)
      Get the item y Coordinate based on the count, the plotHeight,
      Parameters:
      count - Number of data entries
      itemDuration - duration of data map item in milliseconds.
      plotHeight - plot height in pixels
      scaleType - per second, per minute, etc.
      logScale - log scale
      Returns:
      the y coordinate (from the top of the panel)
    • getXCoord

      public int getXCoord(long value)
      Get an x coordinate from a time value.
      Parameters:
      value -
      Returns:
    • getToolTipText

      public String getToolTipText(MouseEvent me)
      Overrides:
      getToolTipText in class JComponent