Class TDGraph.GraphPlotPanel

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

public class TDGraph.GraphPlotPanel extends PamPanel
See Also:
  • Constructor Details Link icon

    • GraphPlotPanel Link icon

      public GraphPlotPanel(int plotNumber)
  • Method Details Link icon

    • fillDataImage Link icon

      public void fillDataImage()
      Fill the main buffered image.
    • paint Link icon

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • findClosestUnit Link icon

      public FoundDataUnit findClosestUnit(Point pt)
      Find the closest data unit to a point on the graph.
      Parameters:
      pt - - point on the graph panel.
      Returns:
      the closest data unit.
    • findUnitsWithinMark Link icon

      public ArrayList<FoundDataUnit> findUnitsWithinMark(PlotZoomerAdapter zoomer)
      Find all data units within the current marked area on the graph panel.
      Parameters:
      zoomer - to use for the graph.
      Returns:
      an array of all data units found in the marked area. Note these are wrapped within a FoundDataUnit class which provide a bit more info on data info.
    • getDataUnitPoint Link icon

      public Point getDataUnitPoint(TDDataInfo dataInfo, PamDataUnit dataUnit)
      Get the pixel location of a data unit on the graph.
      Parameters:
      dataInfo -
      dataUnit -
      Returns:
      point of the data unit in pixels- pixels represent pixels on the tdGraph, not the entire screen.
    • getToolTipText Link icon

      public String getToolTipText(MouseEvent event)
      Overrides:
      getToolTipText in class JComponent
    • repaintHighlights Link icon

      public void repaintHighlights()
      Repaint the panel without repainting the main buffered image representing the data. This is so that highlighted data units and zoom boxes can be efficiently redrawn without doing the whole data thing.
    • repaintHighlights Link icon

      public void repaintHighlights(long tm)
      Repaint the panel without repainting the main buffered image representing the data. This is so that highlighted data units and zoom boxes can be efficiently redrawn without doing the whole data thing.
      Parameters:
      tm - paint to re-occur within tm milliseconds.
    • repaint Link icon

      public void repaint()
      Overrides:
      repaint in class Component
    • repaint Link icon

      public void repaint(int arg0, int arg1, int arg2, int arg3)
      Overrides:
      repaint in class Component
    • repaint Link icon

      public void repaint(long arg0)
      Overrides:
      repaint in class Component