Package ptolemy.vergil.actor

Examples of ptolemy.vergil.actor.ActorGraphModel$ExternalPortModel


            // _entity might be null, in which case we have to make an empty model.
            if (_entity == null) {
                _createBlankEntity();
            }

            ActorGraphModel graphModel = new ActorGraphModel(_entity);
            GraphPane graphPane = new GraphPane(controller, graphModel);
            _graph = new JGraph(graphPane);

            // If the model has a recorded size, use it.
            List size = _entity.attributeList(SizeAttribute.class);
View Full Code Here


    protected GraphPane _createGraphPane(NamedObj entity) {
        _controller = new EditIconGraphController();
        _controller.setConfiguration(getConfiguration());
        _controller.setFrame(this);

        ActorGraphModel graphModel = new ActorGraphModel(entity);
        return new GraphPane(_controller, graphModel);
    }
View Full Code Here

            polygon.closePath();

            Figure figure = new BasicFigure(polygon, Color.black);

            if (node != null) {
                ActorGraphModel model = (ActorGraphModel) getController()
                        .getGraphModel();
                figure
                        .setToolTipText(relation.getName(model
                                .getPtolemyModel()));
                // Old way to set the color.
                try {
                    StringAttribute colorAttr = (StringAttribute) (relation
                            .getAttribute("_color", StringAttribute.class));
View Full Code Here

            // top level is not an FSM actor.
            ActorViewerGraphController controller = new ActorViewerGraphController();

            controller.setConfiguration(_configuration);

            GraphModel model = new ActorGraphModel(_toplevel);
            pane = new GraphPane(controller, model);
        }

        JGraph modelViewer = new JGraph(pane);
View Full Code Here

        _controller.setConfiguration(getConfiguration());
        _controller.setFrame(this);

        // The cast is safe because the constructor only accepts
        // CompositeEntity.
        final ActorGraphModel graphModel = new ActorGraphModel(entity);
        return new GraphPane(_controller, graphModel);
    }
View Full Code Here

TOP

Related Classes of ptolemy.vergil.actor.ActorGraphModel$ExternalPortModel

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.