Package ptolemy.vergil.gt
Class GTFrameController
- java.lang.Object
-
- ptolemy.vergil.gt.GTFrameController
-
- All Implemented Interfaces:
java.awt.event.KeyListener,java.util.EventListener,javax.swing.event.ChangeListener
public class GTFrameController extends java.lang.Object implements javax.swing.event.ChangeListener, java.awt.event.KeyListener- Since:
- Ptolemy II 6.1
- Version:
- $Id$
- Author:
- Thomas Huining Feng
- Pt.AcceptedRating:
- Red (tfeng)
- Pt.ProposedRating:
- Red (tfeng)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGTFrameController.GTActorGraphModelstatic classGTFrameController.GTFSMGraphModelstatic interfaceGTFrameController.UpdateController
-
Constructor Summary
Constructors Modifier Constructor Description protectedGTFrameController(GTFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractBasicGraphModel_createGraphModel(NamedObj entity)protected GraphPane_createGraphPane(NamedObj entity)protected javax.swing.JComponent_createRightComponent(NamedObj entity)protected void_removeListeners()CompositeEntitygetActiveModel()intgetActiveTabIndex()ConfigurationgetConfiguration()RunnableGraphControllergetGraphController()java.util.List<GraphPane>getGraphPanes()JGraphgetJGraph()Return the JGraph instance that this view uses to represent the ptolemy model.java.util.List<JGraph>getJGraphs()javax.swing.JTabbedPanegetTabbedPane()TransformationRulegetTransformationRule()booleanhasTabs()booleanisTableActive()voidkeyPressed(java.awt.event.KeyEvent e)voidkeyReleased(java.awt.event.KeyEvent e)voidkeyTyped(java.awt.event.KeyEvent e)voidstateChanged(javax.swing.event.ChangeEvent event)React to a change in the state of the tabbed pane.
-
-
-
Constructor Detail
-
GTFrameController
protected GTFrameController(GTFrame frame)
-
-
Method Detail
-
getActiveModel
public CompositeEntity getActiveModel()
-
getActiveTabIndex
public int getActiveTabIndex()
-
getConfiguration
public Configuration getConfiguration()
-
getGraphController
public RunnableGraphController getGraphController()
-
getGraphPanes
public java.util.List<GraphPane> getGraphPanes()
-
getJGraph
public JGraph getJGraph()
Return the JGraph instance that this view uses to represent the ptolemy model.- Returns:
- the JGraph.
- See Also:
BasicGraphFrame.getJGraph(),BasicGraphFrame.setJGraph(JGraph)
-
getJGraphs
public java.util.List<JGraph> getJGraphs()
-
getTabbedPane
public javax.swing.JTabbedPane getTabbedPane()
-
getTransformationRule
public TransformationRule getTransformationRule()
-
hasTabs
public boolean hasTabs()
-
isTableActive
public boolean isTableActive()
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent event)
React to a change in the state of the tabbed pane.- Specified by:
stateChangedin interfacejavax.swing.event.ChangeListener- Parameters:
event- The event.
-
_createGraphModel
protected AbstractBasicGraphModel _createGraphModel(NamedObj entity)
-
_createRightComponent
protected javax.swing.JComponent _createRightComponent(NamedObj entity)
-
_removeListeners
protected void _removeListeners()
-
-