public class VisibleDurationChangedEvent extends EventObject
VisibleDurationChangedEvent
instance is used to notify
time scroll listeners
when the
visible duration or the
minimum visible duration
of a time scrollable has been changed.source
Constructor and Description |
---|
VisibleDurationChangedEvent(IlvTimeScrollable scrollable,
IlvDuration duration)
Creates a new
VisibleDurationChangedEvent instance that is
generated by the specified scrollable object. |
VisibleDurationChangedEvent(IlvTimeScrollable scrollable,
IlvDuration duration,
boolean viewResized)
Creates a new
VisibleDurationChangedEvent that is generated
by the specified scrollable object. |
Modifier and Type | Method and Description |
---|---|
IlvDuration |
getDuration()
Returns the new duration value.
|
IlvTimeScrollable |
getTimeScrollable()
Returns the time scrollable object where the event originated.
|
boolean |
isViewResized()
Tests if the duration change is the result of a gui component that has
resized and changed its duration to maintain a constant zoom factor.
|
String |
toString()
Returns a
String representation of this event. |
getSource
public VisibleDurationChangedEvent(IlvTimeScrollable scrollable, IlvDuration duration, boolean viewResized)
VisibleDurationChangedEvent
that is generated
by the specified scrollable
object.scrollable
- The time scrollable object where the event originated.duration
- The new duration value.viewResized
- Set to true
if the duration change is the
result of a gui component that has resized and has
changed its duration to maintain a constant zoom factor.public VisibleDurationChangedEvent(IlvTimeScrollable scrollable, IlvDuration duration)
VisibleDurationChangedEvent
instance that is
generated by the specified scrollable object.
Note: if the time scrollable object is a user
interface component that has been resized, it must use the VisibleDurationChangedEvent(IlvTimeScrollable, IlvDuration, boolean)
constructor instead and set viewResized=true
.
scrollable
- The time scrollable object where the event originated.duration
- The new duration value.public IlvTimeScrollable getTimeScrollable()
IlvTimeScrollable
.public IlvDuration getDuration()
IlvDuration
value.public boolean isViewResized()
true
is returned.public String toString()
String
representation of this event.toString
in class EventObject
String
representation of this event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.