com.compomics.util.gui.events
Class RescalingEvent

java.lang.Object
  extended by 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
RescalingEvent(JPanel aSource, double aMinMass, double aMaxMass)
          The constructor takes the resizing event X coordinates in mass units.
 
Method Summary
 double getMaxMass()
          Returns the maximum mass.
 double getMinMass()
          Returns the minimum mass.
 JPanel getSource()
          Returns the JPanel source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2012. All Rights Reserved.