public class PherogramProviderChangeEvent extends PherogramModelChangeEvent
PherogramComponentModel
was replaced or its contents changed. If the contents of the previous provider changes, getOldProvider()
and getNewProvider()
would return the same instance.Constructor and Description |
---|
PherogramProviderChangeEvent(PherogramComponentModel source,
boolean moreEventsUpcoming,
PherogramProvider oldProvider,
PherogramProvider newProvider,
boolean reverseComplemented)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
PherogramProvider |
getNewProvider()
Returns the pherogram provider after before this event occurred.
|
PherogramProvider |
getOldProvider()
Returns the pherogram provider used before this event occurred.
|
boolean |
isProviderInstanceChange()
Tests if this event indicates a substitution or an edit of the pherogram provider instance referenced by
PherogramModelChangeEvent.getSource() . |
boolean |
isReverseComplemented()
Returns if this event occurred due to a reverse complement operation.
|
getSource, isMoreEventsUpcoming
public PherogramProviderChangeEvent(PherogramComponentModel source, boolean moreEventsUpcoming, PherogramProvider oldProvider, PherogramProvider newProvider, boolean reverseComplemented)
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.oldProvider
- the pherogram provider that was replaced (or edited)newProvider
- the pherogram provider that replaced the previous one or the same as oldProvider
if the contents if provider were changed and the provider instance remains the samereverseComplemented
- indicates whether this provider change occurred because the model was reverse complemented
(In that case one of the providers will usually be an instance of ReverseComplementPherogramProvider
.)public PherogramProvider getOldProvider()
public PherogramProvider getNewProvider()
public boolean isReverseComplemented()
true
if this event occurred due to a reverse complement operation, false
otherwisepublic boolean isProviderInstanceChange()
PherogramModelChangeEvent.getSource()
.true
if the source model now references a different pherogram provider instance than before or
false
if the referenced instance remains the same, but its contents changed