Package ptolemy.vergil.basic

Examples of ptolemy.vergil.basic.AbstractBasicGraphModel


                NamedObj objToHighlight = (NamedObj) actor;

                // If the object is not contained by the associated
                // composite, then find an object above it in the hierarchy
                // that is.
                AbstractBasicGraphModel graphModel = (AbstractBasicGraphModel) getGraphModel();
                NamedObj toplevel = graphModel.getPtolemyModel();

                while ((objToHighlight != null)
                        && (objToHighlight.getContainer() != toplevel)) {
                    objToHighlight = objToHighlight.getContainer();
                }
View Full Code Here


@Pt.AcceptedRating Red (tfeng)
*/
public class GTFrameController implements ChangeListener, KeyListener {

    public CompositeEntity getActiveModel() {
        AbstractBasicGraphModel graphModel =
            (AbstractBasicGraphModel) getGraphController().getGraphModel();
        return (CompositeEntity) graphModel.getPtolemyModel();
    }
View Full Code Here

    }

    protected GraphPane _createGraphPane(NamedObj entity) {
        // The cast is safe because the constructor only accepts
        // CompositeEntity.
        AbstractBasicGraphModel graphModel = _createGraphModel(entity);
        GraphPane graphPane = new GraphPane(_graphController, graphModel);
        if (_graphPanes != null) {
            _graphPanes.add(graphPane);
        }
        return graphPane;
View Full Code Here

    protected void _removeListeners() {
        if (hasTabs()) {
            for (Component tab : _tabbedPane.getComponents()) {
                if (tab instanceof JGraph) {
                    AbstractBasicGraphModel graphModel =
                        (AbstractBasicGraphModel) ((JGraph) tab).getGraphPane()
                        .getGraphModel();
                    graphModel.removeListeners();
                }
            }
        }
    }
View Full Code Here

                // composite, then find an object above it in the hierarchy
                // that is.
                DebugProfile debugProfile = getDebugProfile((Executable) objToHighlight);
                BasicGraphController graphController = debugProfile
                        .getGraphController();
                AbstractBasicGraphModel graphModel = (AbstractBasicGraphModel) graphController
                        .getGraphModel();
                NamedObj toplevel = graphModel.getPtolemyModel();

                while ((objToHighlight != null)
                        && (objToHighlight.getContainer() != toplevel)) {
                    objToHighlight = objToHighlight.getContainer();
                }
View Full Code Here

            if (dialog.buttonPressed().equals("OK")) {
                // Get the associated Ptolemy model.
                GraphController controller = getJGraph().getGraphPane()
                        .getGraphController();
                AbstractBasicGraphModel model = (AbstractBasicGraphModel) controller
                        .getGraphModel();
                NamedObj context = model.getPtolemyModel();

                _lastAttributeClassName = query.getStringValue("class");

                // Find the root for the instance name.
                String rootName = _lastAttributeClassName;
View Full Code Here

            if (dialog.buttonPressed().equals("OK")) {
                // Get the associated Ptolemy model.
                GraphController controller = getJGraph().getGraphPane()
                        .getGraphController();
                AbstractBasicGraphModel model = (AbstractBasicGraphModel) controller
                        .getGraphModel();
                NamedObj context = model.getPtolemyModel();

                _lastEntityClassName = query.getStringValue("class");
                _lastLocation = query.getStringValue("location");

                // Find the root for the instance name.
View Full Code Here

TOP

Related Classes of ptolemy.vergil.basic.AbstractBasicGraphModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.