Package com.compomics.util.gui.events
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 Summary
Constructors Constructor Description RescalingEvent(JPanel aSource, double aMinMass, double aMaxMass)
The constructor takes the resizing event X coordinates in mass units. -
Method Summary
Modifier and Type Method Description double
getMaxMass()
Returns the maximum mass.double
getMinMass()
Returns the minimum mass.JPanel
getSource()
Returns the JPanel source.
-
Constructor Details
-
RescalingEvent
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
Returns the JPanel source.- Returns:
- the JPanel source
-