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 class
GTFrameController.GTActorGraphModel
static class
GTFrameController.GTFSMGraphModel
static interface
GTFrameController.UpdateController
-
Constructor Summary
Constructors Modifier Constructor Description protected
GTFrameController(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()
CompositeEntity
getActiveModel()
int
getActiveTabIndex()
Configuration
getConfiguration()
RunnableGraphController
getGraphController()
java.util.List<GraphPane>
getGraphPanes()
JGraph
getJGraph()
Return the JGraph instance that this view uses to represent the ptolemy model.java.util.List<JGraph>
getJGraphs()
javax.swing.JTabbedPane
getTabbedPane()
TransformationRule
getTransformationRule()
boolean
hasTabs()
boolean
isTableActive()
void
keyPressed(java.awt.event.KeyEvent e)
void
keyReleased(java.awt.event.KeyEvent e)
void
keyTyped(java.awt.event.KeyEvent e)
void
stateChanged(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:
keyPressed
in interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interfacejava.awt.event.KeyListener
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in 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:
stateChanged
in 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()
-
-