Class RescalingEvent

java.lang.Object
com.compomics.util.gui.events.RescalingEvent

public class RescalingEvent
extends Object
This class implements a resizing event that occurred on a SpectrumPanel.
Version:
$Id: RescalingEvent.java,v 1.1 2007/10/22 10:09:02 lennart Exp $
Author:
Lennart Martens
  • Constructor Details

    • RescalingEvent

      public RescalingEvent​(JPanel aSource, double aMinMass, double aMaxMass)
      The constructor takes the resizing event X coordinates in mass units.
      Parameters:
      aSource - The JPanel that threw the event.
      aMinMass - The minimal mass to display after rescaling.
      aMaxMass - The maximal mass to display after rescaling.
  • Method Details

    • getMaxMass

      public double getMaxMass()
      Returns the maximum mass.
      Returns:
      the maximum mass
    • getMinMass

      public double getMinMass()
      Returns the minimum mass.
      Returns:
      the minimum mass
    • getSource

      public JPanel getSource()
      Returns the JPanel source.
      Returns:
      the JPanel source