|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.event.MouseInputAdapter
apollo.gui.detailviewers.sequencealigner.AnnotationEditorMouseListener
public class AnnotationEditorMouseListener
Class to handle mouse interactions for an annotation panel NOTE: It can be hard to keep track of what coordinate system you are working in. This should probably be cleaned up...
| Field Summary | |
|---|---|
static int |
MIN_FEATURE_SIZE
|
| Constructor Summary | |
|---|---|
AnnotationEditorMouseListener(MultiTierPanel panel,
GuiCurationState curationState,
MultiSequenceAlignerPanel mainPanel)
Constructor |
|
| Method Summary | |
|---|---|
AnnotationEditor |
getAnnotationEditor()
Gets the annotation editor. |
BaseScrollable |
getScrollableObject()
Gets the scrollable object that will be affected |
int |
getTier()
Gets the current tier |
void |
mouseClicked(java.awt.event.MouseEvent e)
Handles the mouse click events Middle mouse scrolls to where clicked Left mouse selects a feature Right mouse brings up popup menu |
void |
mouseDragged(java.awt.event.MouseEvent e)
Handles the mouse drag events Left mouse dragging drags end of feature if drag type right or left boundary. |
void |
mouseMoved(java.awt.event.MouseEvent e)
makes cursor hand if at the end of an exon using mouses position, does not change pos or tier variable |
void |
mousePressed(java.awt.event.MouseEvent e)
Right mouse: highlight base. |
void |
mouseReleased(java.awt.event.MouseEvent e)
If right mouse deselect base If end of feature drag notify AnnotationEditor (endRangeChange) and recalc translation end from start |
static boolean |
notTooSmall(int start_pos,
int end_pos)
returns true if the distance between the two end points (inclusive) is greater than or equal to MIN_FEATURE_SIZE |
static void |
recalcCDS(SeqFeatureI feature)
|
protected void |
resetDragState()
|
void |
scroll(int x,
int y)
|
void |
scrollLeft()
|
void |
scrollRight()
|
int |
selectHighPos()
|
int |
selectLowPos()
|
void |
setScrollableObject(BaseScrollable scrollableObject)
|
| Methods inherited from class javax.swing.event.MouseInputAdapter |
|---|
mouseEntered, mouseExited |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int MIN_FEATURE_SIZE
| Constructor Detail |
|---|
public AnnotationEditorMouseListener(MultiTierPanel panel,
GuiCurationState curationState,
MultiSequenceAlignerPanel mainPanel)
panel - curationState - | Method Detail |
|---|
public AnnotationEditor getAnnotationEditor()
public BaseScrollable getScrollableObject()
public int getTier()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class javax.swing.event.MouseInputAdapterpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class javax.swing.event.MouseInputAdapterpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class javax.swing.event.MouseInputAdapterpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class javax.swing.event.MouseInputAdapterpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class javax.swing.event.MouseInputAdapterpublic static void recalcCDS(SeqFeatureI feature)
protected void resetDragState()
public int selectHighPos()
public int selectLowPos()
public void setScrollableObject(BaseScrollable scrollableObject)
public static boolean notTooSmall(int start_pos,
int end_pos)
public void scroll(int x,
int y)
public void scrollLeft()
public void scrollRight()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||