Class TDGraph.GraphPlotPanel

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

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

    • GraphPlotPanel

      public GraphPlotPanel(int plotNumber)
  • Method Details

    • fillDataImage

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

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

      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

      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

      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

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

      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

      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

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

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

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