public class RescalingEvent extends Object
Constructor and Description |
---|
RescalingEvent(JPanel aSource,
double aMinMass,
double aMaxMass)
The constructor takes the resizing event X coordinates in mass units.
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxMass()
Returns the maximum mass.
|
double |
getMinMass()
Returns the minimum mass.
|
JPanel |
getSource()
Returns the JPanel source.
|
public RescalingEvent(JPanel aSource, double aMinMass, double aMaxMass)
aSource
- The JPanel that threw the event.aMinMass
- The minimal mass to display after rescaling.aMaxMass
- The maximal mass to display after rescaling.public double getMaxMass()
public double getMinMass()
public JPanel getSource()
Copyright © 2016. All rights reserved.