public class SequenceEvent extends java.lang.Object implements EventHierarchicalChecker
Modifier and Type | Class and Description |
---|---|
static class |
SequenceEvent.SequenceEventSourceType |
static class |
SequenceEvent.SequenceEventType |
Constructor and Description |
---|
SequenceEvent(Sequence sequence,
SequenceEvent.SequenceEventSourceType sourceType) |
SequenceEvent(Sequence sequence,
SequenceEvent.SequenceEventSourceType sourceType,
java.lang.Object source) |
SequenceEvent(Sequence sequence,
SequenceEvent.SequenceEventSourceType sourceType,
java.lang.Object source,
int param) |
SequenceEvent(Sequence sequence,
SequenceEvent.SequenceEventSourceType sourceType,
java.lang.Object source,
SequenceEvent.SequenceEventType type) |
SequenceEvent(Sequence sequence,
SequenceEvent.SequenceEventSourceType sourceType,
java.lang.Object source,
SequenceEvent.SequenceEventType type,
int param) |
SequenceEvent(Sequence sequence,
SequenceEvent.SequenceEventSourceType sourceType,
SequenceEvent.SequenceEventType type) |
Modifier and Type | Method and Description |
---|---|
int |
getParam()
Extra parameter of event.
|
Sequence |
getSequence() |
java.lang.Object |
getSource()
Source object of the event.
|
SequenceEvent.SequenceEventSourceType |
getSourceType()
SourceType define the object type of
source |
SequenceEvent.SequenceEventType |
getType()
Type define the type of event.
|
boolean |
isEventRedundantWith(EventHierarchicalChecker event) |
public SequenceEvent(Sequence sequence, SequenceEvent.SequenceEventSourceType sourceType)
public SequenceEvent(Sequence sequence, SequenceEvent.SequenceEventSourceType sourceType, java.lang.Object source)
public SequenceEvent(Sequence sequence, SequenceEvent.SequenceEventSourceType sourceType, java.lang.Object source, int param)
public SequenceEvent(Sequence sequence, SequenceEvent.SequenceEventSourceType sourceType, SequenceEvent.SequenceEventType type)
public SequenceEvent(Sequence sequence, SequenceEvent.SequenceEventSourceType sourceType, java.lang.Object source, SequenceEvent.SequenceEventType type)
public SequenceEvent(Sequence sequence, SequenceEvent.SequenceEventSourceType sourceType, java.lang.Object source, SequenceEvent.SequenceEventType type, int param)
public Sequence getSequence()
public SequenceEvent.SequenceEventSourceType getSourceType()
source
The following source types are available :
SEQUENCE_TYPE
--> source object is null
SEQUENCE_META
--> source object define the meta data id (String)
SEQUENCE_COLORMAP
--> source object is an instance of IcyColorModel
SEQUENCE_COMPONENTBOUNDS
--> source object is an instance of IcyColorModel
SEQUENCE_DATA
--> source object is an instance of IcyBufferedImage
source object can be null when severals images has been modified
SEQUENCE_ROI
--> source object is an instance of ROI
source object can be null when severals images has been modified
SEQUENCE_OVERLAY
--> source object is an instance of Overlay
source object can be null when severals images has been modified
SEQUENCE_PAINTER
--> source object is an instance of Painter
source object can be null when severals images has been modified
public java.lang.Object getSource()
sourceType
value.public SequenceEvent.SequenceEventType getType()
sourceType
is one of the following :SEQUENCE_TYPE, SEQUENCE_META, SEQUENCE_COLORMAP, SEQUENCE_COMPONENTBOUNDS
SequenceEventType.CHANGED
sourceType
is one of the following :SEQUENCE_DATA, SEQUENCE_ROI, SEQUENCE_PAINTER, SEQUENCE_OVERLAY
SequenceEventType.ADDED
or
SequenceEventType.REMOVED
source != null
) has been added or
removed from the sequence.source == null
that mean we have a global change event and some stuff need to
be recalculated.public int getParam()
sourceType
is
SEQUENCE_COLORMAP
or SEQUENCE_COMPONENTBOUNDS
(in both case source
is instance of IcyColorModel
).public boolean isEventRedundantWith(EventHierarchicalChecker event)
isEventRedundantWith
in interface EventHierarchicalChecker