1 25 package info.monitorenter.gui.chart.rangepolicies; 26 27 import info.monitorenter.util.Range; 28 29 42 public final class RangePolicyHighestValuesForcedMin extends ARangePolicy { 43 44 45 private double m_highestValueRangeToShow; 46 47 58 public RangePolicyHighestValuesForcedMin(final Range range, final double highestValueRangeToShow) { 59 super(range); 60 this.m_highestValueRangeToShow = highestValueRangeToShow; 61 } 62 63 77 public double getMax(final double chartMin, final double chartMax) { 78 return chartMax; 79 } 80 81 98 public double getMin(final double chartMin, final double chartMax) { 99 return chartMax - this.m_highestValueRangeToShow; 100 } 101 } 102 | Popular Tags |