|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.biojava.spice.gui.AbstractPopupFrame
a class that provides a "floating" frame that follows the position of the cursor the "content" of the panel is provided by the content Container that has to be provided by a class that extends this abstract class
| Field Summary | |
static int |
DIST
|
| Constructor Summary | |
AbstractPopupFrame()
|
|
| Method Summary | |
protected JFrame |
createFrame()
|
protected void |
dispatchFrame()
|
protected void |
disposeFrame()
usually the frame is not dispsosed, but just set to invisible! |
abstract Container |
getContent()
this class needs to be provided by implementing sub-classes. |
protected void |
hideFrame()
|
void |
interruptTimer()
|
boolean |
isShown()
return a flag if the frame is currently shown |
void |
markForHide()
set a flag that this frame will be disposed in X seconds, unless updateFramePosition is called again |
void |
mouseClicked(MouseEvent arg0)
|
void |
mouseDragged(MouseEvent arg0)
when the mouse is dragged the frame stays at the same location and is not disposed |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent arg0)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent arg0)
|
void |
mouseReleased(MouseEvent arg0)
|
void |
repaint()
|
void |
resetTimer()
|
void |
showFrame()
|
void |
updateFramePosition(MouseEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DIST
| Constructor Detail |
public AbstractPopupFrame()
| Method Detail |
public boolean isShown()
protected JFrame createFrame()
protected void dispatchFrame()
public void repaint()
public abstract Container getContent()
public void resetTimer()
public void markForHide()
protected void disposeFrame()
protected void hideFrame()
public void showFrame()
public void updateFramePosition(MouseEvent e)
public void interruptTimer()
public void mouseClicked(MouseEvent arg0)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent arg0)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent arg0)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent arg0)
mouseDragged in interface MouseMotionListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent arg0)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||