public class AxisRangeEvent extends AxisEvent
AxisRangeEvent
class describes changes in the data range or
the visible range of an IlvAxis
.
When the range is modified, a pre-notification
(see isAboutToChangeEvent()
) is sent to all the listeners to specify
what will be the new range.
At this time, listeners have the possibility
to modify the new range (for example to implement a range
filter) using the setNewMin(double)
and setNewMax(double)
methods. Then, the
axis range is modified to the event range value, and a second notification is
sent (see isChangedEvent()
) to notify listeners of the final range.
AxisListener
,
Serialized Formsource
Constructor and Description |
---|
AxisRangeEvent(IlvAxis axis,
IlvDataInterval range,
boolean aboutToChange,
boolean isAdjusting,
boolean visibleRange)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
double |
getNewMax()
Returns the new maximum bound.
|
double |
getNewMin()
Returns the new minimum bound.
|
double |
getOldMax()
Returns the previous maximum bound.
|
double |
getOldMin()
Returns the previous minimum bound.
|
IlvDataInterval |
getStoredRange()
Returns the range that is stored as non-redundant information in this
event.
|
boolean |
isAboutToChangeEvent()
Returns whether the range is about to be changed.
|
boolean |
isChangedEvent()
Returns whether the range has already been changed.
|
boolean |
isScrollEvent()
Returns whether this event is a scroll event.
|
boolean |
isVisibleRangeEvent()
Indicates whether this event describes a change in the visible range.
|
void |
setNewMax(double max)
Sets the new maximum bound.
|
void |
setNewMin(double min)
Sets the new minimum bound.
|
getAxis, isAdjusting
getSource, toString
public AxisRangeEvent(IlvAxis axis, IlvDataInterval range, boolean aboutToChange, boolean isAdjusting, boolean visibleRange)
axis
- The considered axis.range
- The new range if the change has not yet occurred, or the
previous range if the change already occurred.aboutToChange
- A boolean value indicating whether the change
already occurred.isAdjusting
- A boolean value indicating whether the event is
part of a series of several events.visibleRange
- If true
, the event describes a change
in the visible range of the axis. Otherwise, the event describes a change
in the data range of the axis.public double getOldMin()
public double getOldMax()
public void setNewMin(double min)
aboutToChangeEvent
.public double getNewMin()
public void setNewMax(double max)
aboutToChangeEvent
.public double getNewMax()
public IlvDataInterval getStoredRange()
public final boolean isVisibleRangeEvent()
true
if this event describes a change in
the visible range, and false
if it describes a change in the
data range.IlvAxis.getVisibleRange()
,
IlvAxis.getDataRange()
public final boolean isAboutToChangeEvent()
public final boolean isChangedEvent()
public final boolean isScrollEvent()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.