public class SequenceViewerEvent
extends java.util.EventObject
| Constructor and Description |
|---|
SequenceViewerEvent(java.lang.Object source,
java.lang.Object target,
int pos,
java.awt.event.MouseEvent mouseEvent,
java.util.List path)
Construct a SequenceViewerEvent with the given source, target, mouseEvent
and path.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.event.MouseEvent |
getMouseEvent()
Get the mouse event that caused this.
|
java.util.List |
getPath()
Get the list of SequenceRenderer instances that were passed through to
produce this event
|
int |
getPos()
Get the offset within the sequence - the symbol index.
|
java.lang.Object |
getTarget()
Get the Object that was the target of the mouse gesture or null if the
mouse is not gesturing over any recognizable rendered object.
|
java.lang.String |
toString() |
public SequenceViewerEvent(java.lang.Object source,
java.lang.Object target,
int pos,
java.awt.event.MouseEvent mouseEvent,
java.util.List path)
source - the event source, presumably a GUI componenttarget - an Object that is the target of the gesture - a feature, or
{alignment, label, index} or some other structure, or null
if there is no obvious targetpos - the position (offset) within the sequencemouseEvent - the MouseEvent that caused this event to be producedpath - a List of SequenceRenderer instances passed through to reach
this event sourcepublic java.util.List getPath()
public java.lang.Object getTarget()
public int getPos()
public java.awt.event.MouseEvent getMouseEvent()
public java.lang.String toString()
toString in class java.util.EventObjectCopyright © 2018 BioJava. All Rights Reserved.