public class PherogramCutPositionChangeEvent extends PherogramModelChangeEvent
PherogramComponentModel
was changed.Constructor and Description |
---|
PherogramCutPositionChangeEvent(PherogramComponentModel source,
boolean moreEventsUpcoming,
int oldBaseCallIndex,
int newBaseCallIndex,
PherogramAlignmentRelation oldEditableIndex,
PherogramAlignmentRelation newEditableIndex)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getNewBaseCallIndex()
Returns the current cut position.
|
PherogramAlignmentRelation |
getNewEditableIndex()
The relation to the index of the right cut position in the editable sequence associated with the #
displaying
PherogramArea . |
int |
getOldBaseCallIndex()
Returns the previous cut position.
|
PherogramAlignmentRelation |
getOldEditableIndex()
The relation to the index of the left cut position in the editable sequence associated with the
displaying
PherogramArea . |
getSource, isMoreEventsUpcoming
public PherogramCutPositionChangeEvent(PherogramComponentModel source, boolean moreEventsUpcoming, int oldBaseCallIndex, int newBaseCallIndex, PherogramAlignmentRelation oldEditableIndex, PherogramAlignmentRelation newEditableIndex)
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.oldBaseCallIndex
- the previous cut positionnewBaseCallIndex
- the current (new) cut positionoldEditableIndex
- the relation to the index in the editable sequence corresponding to oldBaseCallIndex
newEditableIndex
- the relation to the index in the editable sequence corresponding to newBaseCallIndex
public int getOldBaseCallIndex()
public int getNewBaseCallIndex()
public PherogramAlignmentRelation getOldEditableIndex()
PherogramArea
.null
if PherogramModelChangeEvent.getSource()
is not an instance of PherogramAreaModel
public PherogramAlignmentRelation getNewEditableIndex()
PherogramArea
.null
if PherogramModelChangeEvent.getSource()
is not an instance of PherogramAreaModel