Package ptolemy.actor.gui

Examples of ptolemy.actor.gui.Tableau


    /** Add a Build menu item.
     */
    protected void _addMenus() {
        super._addMenus();

        Tableau tableau = getTableau();
        if (tableau != null) {
            Effigy tableauContainer = (Effigy) tableau.getContainer();
            if (tableauContainer != null) {
                JMenu buildMenu = new JMenu("Build");
                buildMenu.setMnemonic(KeyEvent.VK_B);
                _menubar.add(buildMenu);

View Full Code Here


     */
    public boolean closeTabbedPane(Component aComp) {
        boolean answer = true;

        String name = aComp.getName();
        Tableau tableau = findComponentTableau(name);

        if (tableau != null) {
            answer = tableau.close();

            if (answer) {
                tableau.getFrame().dispose();
                removeTab(name);
            }
        }

        return answer;
View Full Code Here

     * Removes the corresponding Tab according to the Component name
     * @param tableauFullName
     */
    public void removeTab(String tableauFullName) {
        int idx = findComponentIndex(tableauFullName);
        Tableau tab = findComponentTableau(tableauFullName);

        if (tab != null) {
            Frame frame = tab.getFrame();

            if (frame instanceof NavigableActorGraphFrame) {
                NavigableActorGraphFrame navFrame = (NavigableActorGraphFrame) frame;
                NavigationPTree aTree = navFrame.getTree();

                Nameable effigy = tab.getContainer();

                if (effigy instanceof NavigableEffigy) {
                    NavigableEffigy navEff = (NavigableEffigy) effigy;
                    navEff.getNavigationModel().unRegister(aTree);
                }
View Full Code Here

    public void initialize() throws IllegalActionException {
        super.initialize();
        if (_table == null) {
            Effigy containerEffigy = Configuration.findEffigy(toplevel());
            try {
                _tableau = new Tableau(containerEffigy, "tableau");
            } catch (NameDuplicationException e) {
                throw new IllegalActionException(this, e,
                        "Failed to create tableau.");
            }
            _frame = new TableauFrame(_tableau);
View Full Code Here

        for (int i = 0; i < _viewsTabbedPane.getComponentCount(); ++i) {
            String name = _viewsTabbedPane.getComponentAt(i).getName();

            if (name != null) { //Not using

                Tableau tableau = findComponentTableau(name);

                if (tableau == null) {
                    removeTab(name);
                    --i;
                }
View Full Code Here

            if (aComp != null) {
                String name = aComp.getName();

                if ((name != null) && !name.equals("Start")) {
                    Tableau tableau = findComponentTableau(name);

                    if (tableau != null) {
                        fillMainFrame(tableau.getFrame().getJMenuBar());
                        _statusBar.setVisible(false);
                    }
                } else {
                    //on est dans le cas du start tabbedPane
                    fillMainFrame(_originalMenuBar);
View Full Code Here

     * Component contained by a Tab.
     * @param tableauFullName
     * @return the corresponding Tableau.
     */
    protected Tableau findComponentTableau(String tableauFullName) {
        Tableau answer = null;

        if (tableauFullName != null) {
            tableauFullName = tableauFullName.substring(15, tableauFullName
                    .length());

View Full Code Here

    /** Listener for build menu commands. */
    private class BuildMenuListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {
            try {
                Effigy effigy = (Effigy) getTableau().getContainer();
                Tableau tableau = new DocBuilderTableau(effigy,
                        "DocBuilderTableau");
                tableau.show();
            } catch (Throwable throwable) {
                MessageHandler.error("Cannot create build", throwable);
            }
        }
View Full Code Here

            NamedObj object = getTarget();

            try {
                BasicGraphController controller = (BasicGraphController) getController();
                BasicGraphFrame frame = controller.getFrame();
                Tableau tableau = frame.getTableau();

                // effigy is of the whole model.
                Effigy effigy = (Effigy) tableau.getContainer();

                // We want to open a new window that behaves as a
                // child of the model window.  So, we create a new text
                // effigy inside this one.  Specify model's effigy as
                // a container for this new effigy.
View Full Code Here

TOP

Related Classes of ptolemy.actor.gui.Tableau

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.