public final class RangePolicyMargin extends ARangePolicy
m_propertyChangeSupport
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN
Constructor and Description |
---|
RangePolicyMargin()
Creates an instance with a margin ration of 0.1.
|
RangePolicyMargin(double marginRatio,
double marginMin)
Creates an instance with the given relative margin ratio and the absolute minimum margin.
|
Modifier and Type | Method and Description |
---|---|
double |
getMax(double chartMin,
double chartMax)
Define the upper bound of the Chart2D's value range.
|
double |
getMin(double chartMin,
double chartMax)
Define the lower bound of the Chart2D's value range.
|
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRange
public RangePolicyMargin()
public RangePolicyMargin(double marginRatio, double marginMin)
marginRatio
- the ratio for the margin.marginMin
- the minimum absolute (value domain) margin.public double getMax(double chartMin, double chartMax)
IRangePolicy
AAxis
this instance is bound to.chartMin
- the minimum value of the connected Chart2D that may / should be
taken into account.chartMax
- the maximum value of the connected Chart2D that may / should be
taken into account.IRangePolicy.getMax(double, double)
public double getMin(double chartMin, double chartMax)
IRangePolicy
AAxis
this instance is bound to.chartMin
- the minimum value of the connected Chart2D that may / should be
taken into account.chartMax
- the maximum value of the connected Chart2D that may / should be
taken into account.IRangePolicy.getMin(double, double)
Copyright © 2019. All rights reserved.