public class PherogramFirstSeqPosChangeEvent extends PherogramModelChangeEvent
PherogramAreaModel.getFirstSeqPos() was changed.
Note that this event will only be fired by instances of PherogramAreaModel and never
by an instance of PherogramComponentModel.
| Constructor and Description |
|---|
PherogramFirstSeqPosChangeEvent(PherogramComponentModel source,
boolean moreEventsUpcoming,
int oldPosition,
int newPosition)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNewPosition()
Returns the current position in the editable sequence where the pherogram is anchored.
|
int |
getOldPosition()
Returns the previous position in the editable sequence where the pherogram was anchored.
|
getSource, isMoreEventsUpcomingpublic PherogramFirstSeqPosChangeEvent(PherogramComponentModel source, boolean moreEventsUpcoming, int oldPosition, int newPosition)
source - the model where the change occurredmoreEventsUpcoming - Specify true here if the currently terminated operation is going to
fire additional events for other affected properties or false otherwise.oldPosition - the previous position in the editable sequence where the pherogram was anchorednewPosition - the current (new) position in the editable sequence where the pherogram is anchoredpublic int getOldPosition()
public int getNewPosition()