|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel net.clackrouter.gui.ClackFramework
public class ClackFramework
Core Clack class, which implements the main Clack panel. Based on GPGraphad.
A ClackGraphpad is created by the ClackFramework object and contains the menus, as well as the tabbed pane that contains ClackTabs.
Nested Class Summary | |
---|---|
protected class |
ClackFramework.AppCloser
To shutdown when run as an application. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected java.applet.Applet |
applet
|
static javax.swing.ImageIcon |
applicationIcon
|
protected static java.lang.String |
appTitle
|
protected ClackBarFactory |
barFactory
|
protected RouterGraphHelper |
clackGraphHelper
|
protected javax.swing.ActionMap |
currentActionMap
|
protected javax.swing.ActionMap |
defaultActionMap
|
protected javax.swing.Action[] |
defaultActions
Actions defined by the ClackGraphpad class This is much reduced from the huge number of actions available in JGraphpad |
protected java.util.Hashtable |
doc2tab
|
protected static int |
entrySize
|
protected ErrorConsole |
errorConsole
|
protected static GPGraphTools |
graphTools
|
protected boolean |
isSimpleGraph
|
protected GPLogConsole |
logger
|
protected static javax.swing.ImageIcon |
logoIcon
|
javax.swing.JPanel |
mainPanel
|
protected ApplicationManager |
mAppManager
|
protected ClackMarqueeHandler |
marqueeHandler
|
protected boolean |
mDebug
|
protected java.util.Hashtable<java.lang.Integer,ClackDocument> |
mDocMap
|
protected javax.swing.JMenuBar |
menubar
|
protected TimeManager |
mTimeManager
|
static java.lang.String |
PARAM_STRING
|
protected GPTabbedPane |
tabbedPane
|
protected javax.swing.JPanel |
toolBarInnerPanel
|
protected javax.swing.JPanel |
toolBarMainPanel
|
protected boolean |
toolBarsVisible
|
protected TopologyManager |
topologyManager
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ClackFramework(java.applet.Applet applet)
Creates a new instance with the parsed parameters and parent applet. |
Method Summary | |
---|---|
void |
addAdditionalComponent(java.lang.String menuName,
java.lang.String fullClassName)
|
void |
addClackApplication(java.lang.String cmd,
java.lang.String classname)
|
void |
addClackTab(ClackTab t)
Adds a new ClackTab to the ClackGraphpad |
void |
addTabbedPaneContainerListener(java.awt.event.ContainerListener listener)
|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
Attempts to update the doc based on a resize of the entire frame. |
void |
componentShown(java.awt.event.ComponentEvent e)
|
protected javax.swing.JFrame |
createFrame()
Creates a frame for this Graphpad panel |
void |
error(java.lang.String message)
Show a dialog with the given error message. |
void |
exit(boolean full_exit)
Called on exit by FileExit action |
void |
fillDefaultActionMap()
|
ClackDocument[] |
getAllDocuments()
Returns all of the documents. |
ClackTab[] |
getAllTabs()
|
static javax.swing.ImageIcon |
getApplicationIcon()
Returns the applicationIcon. |
ApplicationManager |
getApplicationManager()
|
ClackBarFactory |
getBarFactory()
Returns the barFactory. |
RouterGraphHelper |
getClackGraphHelper()
|
javax.swing.ActionMap |
getCurrentActionMap()
Returns the current Action Map |
ClackDocument |
getCurrentDocument()
Returns the currently selected document. |
RouterGraph |
getCurrentRouterGraph()
Returns the current graph, that is, the one in the current document. |
ClackTab |
getCurrentTab()
Returns the currently active and visible ClackTab. |
ClackDocument |
getDocumentForTopology(int topo)
adds a new document in a ClackTab |
AbstractActionDefault |
getEditRedoAction()
Returns the redoAction. |
AbstractActionDefault |
getEditUndoAction()
Returns the undoAction. |
ErrorConsole |
getErrorConsole()
|
java.awt.Frame |
getFrame()
Find the hosting frame, for the file-chooser dialog. |
GPLogConsole |
getLogConsole()
|
ClackMarqueeHandler |
getMarqueeHandler()
Returns the marqueeHandler. |
javax.swing.JMenuBar |
getMenubar()
|
TimeManager |
getTimeManager()
|
TopologyManager |
getTopologyManager()
|
void |
initializeAndShow()
|
boolean |
isApplet()
Adds a new Document based on the GraphModelProvider. |
boolean |
isDebug()
|
boolean |
isSimpleGraph()
|
boolean |
isToolBarsVisible()
|
void |
removeClackTab(ClackTab t)
|
void |
removeDocument(ClackDocument doc)
Remove a ClackDocument |
void |
removeTabbedPaneContainerListener(java.awt.event.ContainerListener listener)
|
static void |
setApplicationIcon(javax.swing.ImageIcon applicationIcon)
Sets the applicationIcon. |
void |
setBarFactory(ClackBarFactory barFactory)
Sets the barFactory. |
void |
setDebug(boolean b)
|
void |
setIsSimpleGraph(boolean b)
|
protected void |
setMe4Actions()
|
void |
setParentActionMap(javax.swing.ActionMap map)
|
void |
setToolBarsVisible(boolean state)
|
void |
update()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_STRING
public static javax.swing.ImageIcon applicationIcon
protected static javax.swing.ImageIcon logoIcon
protected static java.lang.String appTitle
protected static int entrySize
protected java.applet.Applet applet
protected boolean toolBarsVisible
protected static GPGraphTools graphTools
protected GPLogConsole logger
protected GPTabbedPane tabbedPane
protected java.util.Hashtable doc2tab
protected ClackBarFactory barFactory
protected javax.swing.JPanel toolBarMainPanel
protected javax.swing.JPanel toolBarInnerPanel
protected javax.swing.JMenuBar menubar
protected javax.swing.ActionMap defaultActionMap
public javax.swing.JPanel mainPanel
protected javax.swing.ActionMap currentActionMap
protected ClackMarqueeHandler marqueeHandler
protected boolean isSimpleGraph
protected RouterGraphHelper clackGraphHelper
protected TopologyManager topologyManager
protected ErrorConsole errorConsole
protected ApplicationManager mAppManager
protected TimeManager mTimeManager
protected java.util.Hashtable<java.lang.Integer,ClackDocument> mDocMap
protected boolean mDebug
protected javax.swing.Action[] defaultActions
Constructor Detail |
---|
public ClackFramework(java.applet.Applet applet)
Method Detail |
---|
public void addAdditionalComponent(java.lang.String menuName, java.lang.String fullClassName)
public void initializeAndShow()
protected javax.swing.JFrame createFrame()
public RouterGraphHelper getClackGraphHelper()
public TopologyManager getTopologyManager()
public boolean isSimpleGraph()
public void setIsSimpleGraph(boolean b)
public void addClackApplication(java.lang.String cmd, java.lang.String classname)
public void fillDefaultActionMap()
protected void setMe4Actions()
public javax.swing.ActionMap getCurrentActionMap()
public java.awt.Frame getFrame()
public javax.swing.JMenuBar getMenubar()
public ApplicationManager getApplicationManager()
public void error(java.lang.String message)
public RouterGraph getCurrentRouterGraph()
public ClackTab getCurrentTab()
public ClackDocument getCurrentDocument()
public ClackDocument[] getAllDocuments()
null
if no documentspublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public AbstractActionDefault getEditUndoAction()
public AbstractActionDefault getEditRedoAction()
public GPLogConsole getLogConsole()
public boolean isToolBarsVisible()
public void setToolBarsVisible(boolean state)
public void addClackTab(ClackTab t)
public void removeClackTab(ClackTab t)
public void exit(boolean full_exit)
public boolean isApplet()
public ClackDocument getDocumentForTopology(int topo)
public void removeDocument(ClackDocument doc)
public void update()
public ClackBarFactory getBarFactory()
public void setBarFactory(ClackBarFactory barFactory)
barFactory
- The barFactory to setpublic ErrorConsole getErrorConsole()
public ClackTab[] getAllTabs()
public void setParentActionMap(javax.swing.ActionMap map)
public static javax.swing.ImageIcon getApplicationIcon()
public static void setApplicationIcon(javax.swing.ImageIcon applicationIcon)
applicationIcon
- The applicationIcon to setpublic ClackMarqueeHandler getMarqueeHandler()
public TimeManager getTimeManager()
public void addTabbedPaneContainerListener(java.awt.event.ContainerListener listener)
public void removeTabbedPaneContainerListener(java.awt.event.ContainerListener listener)
public boolean isDebug()
public void setDebug(boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |