Examples of requestChange()


Examples of ptolemy.kernel.CompositeEntity.requestChange()

            // Handle what happens if the mutation fails.
            request.addChangeListener(new LinkChangeListener(link, container,
                    failmoml));

            request.setUndoable(true);
            container.requestChange(request);
        }

        /** Connect the given edge to the given tail node.
         *  This class queues a new change request with the ptolemy model
         *  to make this modification.
View Full Code Here

Examples of ptolemy.kernel.CompositeEntity.requestChange()

            // Handle what happens if the mutation fails.
            request.addChangeListener(new LinkChangeListener(link, container,
                    failmoml));

            request.setUndoable(true);
            container.requestChange(request);
        }

        /** This change listener is responsible for dispatching graph events
         *  when an edge is moved.  It works the same for heads and tails.
         */
 
View Full Code Here

Examples of ptolemy.kernel.CompositeEntity.requestChange()

            entity.exportMoML(buffer, 1);

            ChangeRequest request = new MoMLChangeRequest(entity, library,
                    buffer.toString());
            library.requestChange(request);
        } catch (IOException ex) {
            // Ignore.
        } catch (KernelException ex) {
            // Ignore.
        }
View Full Code Here

Examples of ptolemy.kernel.CompositeEntity.requestChange()

                        _configuration.openModel(entity);
                    }
                }
            };

            container.requestChange(change);
        }
    }

    /** Action to remove refinements. */
    private static class RemoveRefinementAction extends FigureAction {
View Full Code Here

Examples of ptolemy.kernel.CompositeEntity.requestChange()

                    + "\"><property name=\"refinementName\" value=\""
                    + newRefinements.toString() + "\"/></entity>" + removal
                    + "</group>";
            MoMLChangeRequest change = new MoMLChangeRequest(this, container,
                    moml);
            container.requestChange(change);
        }
    }
}
View Full Code Here

Examples of ptolemy.kernel.CompositeEntity.requestChange()

                        _configuration.openModel(entity);
                    }
                }
            };

            container.requestChange(change);
        }
    }

    /** Action to remove refinements. */
    private static class RemoveRefinementAction extends FigureAction {
View Full Code Here

Examples of ptolemy.kernel.CompositeEntity.requestChange()

                    + "\"><property name=\"refinementName\" value=\""
                    + newRefinements.toString() + "\"/></relation>" + removal
                    + "</group>";
            MoMLChangeRequest change = new MoMLChangeRequest(this, container,
                    moml);
            container.requestChange(change);
        }
    }
}
View Full Code Here

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

                        + ".SingletonConfigurableAttribute\">"
                        + "<configure><svg><text x=\"20\" "
                        + "style=\"font-size:14; font-family:sanserif; "
                        + "fill:red\" y=\"20\">" + port.getType()
                        + "</text></svg></configure></property>";
                label.requestChange(new MoMLChangeRequest(this, label, moml));
            }
        }
    }

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

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

                                + argument.getName() + "\"/>\n";

                        ChangeRequest request = new MoMLChangeRequest(this,
                                container, moml);
                        container.addChangeListener(this);
                        container.requestChange(request);
                    }
                }
            }
        } else if (buttonPressed().equals("Help")) {
            help(configuration);
View Full Code Here

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

                                moml.append(_highlightColor.exportMoML());
                                moml.append("</entity>");
                            }
                        }
                        moml.append("</group>");
                        container.requestChange(new MoMLChangeRequest(this,
                                container, moml.toString()));
                    } else {
                        // Clear all highlights.
                        StringBuffer moml = new StringBuffer("<group>");
                        for (Object entity : ((CompositeEntity) container)
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.