public class MinMaxGroup extends BoundedIntervalDouble
double interval. The min and
max of the interval are stored as
BoundedValueDouble. The min and max can be changed to span any non-empty
interval within the range (BoundedIntervalDouble.getRangeMin(), BoundedIntervalDouble.getRangeMax()).
This range can be modified as well.
Some ConverterSetups can be
linked. They will have their display range
set according to min and
max of the interval.
An MinMaxGroup.UpdateListener (usually a GUI component) can be notified about
changes.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MinMaxGroup.UpdateListener |
minIntervalSize| Constructor and Description |
|---|
MinMaxGroup(double fullRangeMin,
double fullRangeMax,
double rangeMin,
double rangeMax,
double currentMin,
double currentMax,
double minIntervalSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSetup(ConverterSetup setup)
Add a
ConverterSetup which will have its
display range updated to
the interval (BoundedIntervalDouble.getMinBoundedValue(),
BoundedIntervalDouble.getMaxBoundedValue()). |
double |
getFullRangeMax() |
double |
getFullRangeMin() |
boolean |
removeSetup(ConverterSetup setup)
Remove a
ConverterSetup from this group. |
void |
setUpdateListener(MinMaxGroup.UpdateListener l)
Set an
MinMaxGroup.UpdateListener (usually a GUI component). |
protected void |
updateInterval(double min,
double max)
|
getMaxBoundedValue, getMinBoundedValue, getRangeMax, getRangeMin, setRangepublic MinMaxGroup(double fullRangeMin,
double fullRangeMax,
double rangeMin,
double rangeMax,
double currentMin,
double currentMax,
double minIntervalSize)
protected void updateInterval(double min,
double max)
BoundedIntervalDoublemin or
max values change. The default
implementation does nothing but derived classes can use it to trigger UI
updates, etc.updateInterval in class BoundedIntervalDoublemin - the new minimum of the intervalmax - the new maximum of the intervalpublic double getFullRangeMin()
public double getFullRangeMax()
public void addSetup(ConverterSetup setup)
ConverterSetup which will have its
display range updated to
the interval (BoundedIntervalDouble.getMinBoundedValue(),
BoundedIntervalDouble.getMaxBoundedValue()).setup - public boolean removeSetup(ConverterSetup setup)
ConverterSetup from this group.setup - public void setUpdateListener(MinMaxGroup.UpdateListener l)
MinMaxGroup.UpdateListener (usually a GUI component).Copyright © 2015–2021 Fiji. All rights reserved.