public class DatelineModelEvent extends EventObject
IDatelineModelListener
interface and register
themselves as listeners.IDatelineModelListener
,
IDatelineModel.addDatelineModelListener(IDatelineModelListener)
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
DatelineModelEvent.ID
An enumerator that contains values used for identifying different types
of events.
|
source
Constructor and Description |
---|
DatelineModelEvent(IDatelineModel model,
DatelineModelEvent.ID id)
Constructs a new dateline model event.
|
DatelineModelEvent(IDatelineModel model,
DatelineModelEvent.ID id,
ITimeSpan requestedVisibleTimeSpan)
Constructs a new dateline model event.
|
Modifier and Type | Method and Description |
---|---|
DatelineModelEvent.ID |
getId()
Returns the event type identifier that allows the application to
distinguish between different types of events that can occure on the
model.
|
IDatelineModel |
getModel()
Returns the dateline model that was the source of the event.
|
ITimeSpan |
getRequestedVisibleTimeSpan()
Returns the time span that was requested from the dateline model to be
visible.
|
getSource, toString
public DatelineModelEvent(IDatelineModel model, DatelineModelEvent.ID id, ITimeSpan requestedVisibleTimeSpan)
model
- the model where the event occuredid
- the type identifier that allows to distinguish between
different kinds of events (new time span, different dateline
width, ...)requestedVisibleTimeSpan
- only used after a call to
IDatelineModel.requestVisibleTimeSpan(ITimeSpan)
public DatelineModelEvent(IDatelineModel model, DatelineModelEvent.ID id)
model
- the model where the event occuredid
- the type identifier that allows to distinguish between
different kinds of events (new time span, different dateline
width, ...)public DatelineModelEvent.ID getId()
public IDatelineModel getModel()
public ITimeSpan getRequestedVisibleTimeSpan()
IDatelineModel.requestVisibleTimeSpan(ITimeSpan)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.