Class PlotPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible
Direct Known Subclasses:
ConvergenceVsStep, EnergyVsStep, MinPairwiseSeparation, MSEvsGenerationPlot

public class PlotPanel extends JPanel implements PropertyChangeListener
See Also:
  • Field Details

    • VERYBARE

      public static int VERYBARE
    • BARE

      public static int BARE
    • STANDARD

      public static int STANDARD
    • _toolbar

      protected BaseToolBar _toolbar
    • _decorations

      protected int _decorations
  • Constructor Details

    • PlotPanel

      public PlotPanel(PlotCanvas canvas)
      Create a plot panel for a single xy dataset with standard decorations
      Parameters:
      canvas - the plot canvas
    • PlotPanel

      public PlotPanel(PlotCanvas canvas, int decorations)
      Create a plot panel for a single xy dataset with specified decorations
      Parameters:
      canvas - the plot canvas
      decorations - the level of decorations (VERYBARE, BARE, or STANDARD)
  • Method Details

    • getInsets

      public Insets getInsets()
      Overrides:
      getInsets in class JComponent
    • getFeedbackPane

      public FeedbackPane getFeedbackPane()
      Get the feedback pane
      Returns:
      the feedback pane
    • getToolBar

      public BaseToolBar getToolBar()
      Get the toolbar
      Returns:
      the toolbar
    • getPlotCanvas

      public PlotCanvas getPlotCanvas()
      Get the underlying plot canvas
      Returns:
      the plot canvas
    • getParameters

      public PlotParameters getParameters()
      Get the plot parameters
      Returns:
      the plot parameters
    • setColor

      public void setColor(Color bg)
    • holds2DHistogram

      public boolean holds2DHistogram()
      Does this panel hold a 2D histogram?
      Returns:
      true if it holds a 2D histogram
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener