Examples of requestChange()


Examples of ptolemy.kernel.util.NamedObj.requestChange()

                                        .append("<deleteProperty name=\"_highlightColor\"/>");
                                moml.append("</entity>");
                            }
                        }
                        moml.append("</group>");
                        container.requestChange(new MoMLChangeRequest(this,
                                container, moml.toString()));
                    }
                }
            } catch (IllegalActionException e1) {
                MessageHandler.error("Failed to set highlight colors", e1);
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

            NamedObj actor = getTarget();
            StringBuffer moml = new StringBuffer("<group>");
            HashSet<NamedObj> visited = new HashSet<NamedObj>();
            _addHighlights(actor, moml, visited, _forward, _clear);
            moml.append("</group>");
            actor.requestChange(new MoMLChangeRequest(this, actor
                    .getContainer(), moml.toString()));
        }

        private boolean _forward, _clear;
    }
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

                            _setAttributeName(attributeName);
                            _deferred = false;
                        }
                    };
                    _deferred = true;
                    container.requestChange(request);
                }
                _attribute = null;
            } else if (_attribute != newAttribute) {
                if (_attribute != null) {
                    _attribute.removeValueListener(this);
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

                protected void _execute() throws IllegalActionException {
                    MoveAction.move(elements, MoveAction.TO_FIRST, container);
                }
            };

            container.requestChange(request);
        }
    }

    ///////////////////////////////////////////////////////////////////
    //// MoveToFrontAction
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

                protected void _execute() throws IllegalActionException {
                    MoveAction.move(elements, MoveAction.TO_LAST, container);
                }
            };

            container.requestChange(request);
        }
    }

    ///////////////////////////////////////////////////////////////////
    //// PasteAction
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

            // Note: The source is NOT the graph model.
            MoMLChangeRequest request = new MoMLChangeRequest(this, container,
                    moml);
            request.setUndoable(true);
            container.requestChange(request);
        }
    }

    /** The model for links that connect two ports, or a port and a vertex.
     */
 
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

            moml.append("</relation>");

            MoMLChangeRequest request = new MoMLChangeRequest(this, toplevel,
                    moml.toString());
            request.setUndoable(true);
            toplevel.requestChange(request);
        }
    }

    ///////////////////////////////////////////////////////////////////
    //// RelationCreator
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

            moml.append("</group>");

            MoMLChangeRequest request = new OffsetMoMLChangeRequest(this,
                    container, moml.toString());
            container.requestChange(request);
        }
    }

    ///////////////////////////////////////////////////////////////////
    ////                         private variables                 ////
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

                            icon.setContainer(object);
                        }
                    };

                    request.setPersistent(false);
                    object.requestChange(request);
                } else if (iconList.size() >= 1) {
                    // Use only the last icon in the list.
                    EditorIcon icon = (EditorIcon) iconList
                            .get(iconList.size() - 1);
                    result = icon.createFigure();
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.requestChange()

            // Note: The source is NOT the graph model.
            MoMLChangeRequest request = new MoMLChangeRequest(this, container,
                    moml);
            request.setUndoable(true);
            container.requestChange(request);
        }
    }

    /** The model for vertexes that are contained within the relations of the
     *  ptolemy model.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.