|
|||||||||
| Home >> All >> org >> modama >> gui >> [ mgraph overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.modama.gui.mgraph
Class MApp

java.lang.Objectorg.modama.gui.mgraph.MApp
- public class MApp
- extends java.lang.Object
The main application its contains some methods to gain access to the currently opened document and JGraph so its possible to implement additional functionality to enable MDI support the app registers to each JGraph its own MarqueeHandler, where mouse events are caught and processed in some different way.
| Field Summary | |
(package private) org.modama.gui.mgraph.actions.AbstractDefaultAction[] |
actions
Define all actions here |
private MDocument |
currDoc
the current document TODO MDI: make this to an array. |
private MMarqueeHandler |
marqueeHandler
the marquee handler |
private java.awt.Point |
popupPosition
if one executes a popupaction, the position where the popupmenu is located is lost so we have to save it to this var |
| Constructor Summary | |
MApp()
constructor |
|
| Method Summary | |
MDocument |
createDoc()
creates a new document |
javax.swing.JPopupMenu |
createPopupMenu(java.awt.Point p,
java.lang.Object cell)
|
MDocument |
getCurrentDoc()
getter for the current document |
MGraph |
getCurrentGraph()
getter for the current graph |
MMarqueeHandler |
getMarqueeHandler()
getter for the marquee handler |
java.awt.Point |
getPopupPosition()
getter for popuppos |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
actions
org.modama.gui.mgraph.actions.AbstractDefaultAction[] actions
- Define all actions here
marqueeHandler
private MMarqueeHandler marqueeHandler
- the marquee handler
currDoc
private MDocument currDoc
- the current document
TODO MDI: make this to an array. introduce new index to current doc
popupPosition
private java.awt.Point popupPosition
- if one executes a popupaction, the position where the popupmenu is located is lost
so we have to save it to this var
| Constructor Detail |
MApp
public MApp()
- constructor
| Method Detail |
createPopupMenu
public javax.swing.JPopupMenu createPopupMenu(java.awt.Point p, java.lang.Object cell)
createDoc
public MDocument createDoc()
- creates a new document
getMarqueeHandler
public MMarqueeHandler getMarqueeHandler()
- getter for the marquee handler
getCurrentDoc
public MDocument getCurrentDoc()
- getter for the current document
getCurrentGraph
public MGraph getCurrentGraph()
- getter for the current graph
getPopupPosition
public java.awt.Point getPopupPosition()
- getter for popuppos
main
public static void main(java.lang.String[] args)
|
|||||||||
| Home >> All >> org >> modama >> gui >> [ mgraph overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.modama.gui.mgraph.MApp