Examples of Nameable


Examples of ptolemy.kernel.util.Nameable

     @see #setContainerToBe(NamedObj)
     @return The container of this object, if there is one, or
     *  if not hte container specified by setContainerToBe().
     */
    public Nameable getContainerOrContainerToBe() {
        Nameable container = getContainer();

        if (container != null) {
            return container;
        } else {
            return _containerToBe;
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

     @return A new CompositeFigure consisting of the label.
     */
    public Figure createFigure() {
        CompositeFigure background = new CompositeFigure(super
                .createBackgroundFigure());
        Nameable container = getContainer();

        if (container instanceof Settable) {
            String name = container.getDisplayName();
            String value = ((Settable) container).getExpression();
            LabelFigure label = new LabelFigure(name + ": " + value,
                    _labelFont, 1.0, SwingConstants.SOUTH_WEST);
            background.add(label);
            return background;
        } else {
            String name = container.getName();
            LabelFigure label = new LabelFigure(name, _labelFont, 1.0,
                    SwingConstants.SOUTH_WEST);
            background.add(label);
            return background;
        }
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

    public void fire() throws IllegalActionException {
        if (_debugging) {
            _debug("Director: Called fire().");
        }

        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Iterator actors = ((CompositeActor) container).deepEntityList()
                    .iterator();
            int iterationCount = 1;
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

            }
        }

        _actorsFinishedExecution = new HashSet();

        Nameable container = getContainer();
        if (container instanceof CompositeActor) {
            Nameable containersContainer = container.getContainer();

            // Initialize the current time.
            if (containersContainer instanceof CompositeActor) {
                // The container is an embedded model.
                Time currentTime = ((CompositeActor) containersContainer)
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

     *  This method simply defers to the manager, notifying it.  If there
     *  is no container, or the container is not an instance of
     *  CompositeActor, or if it has no manager, do nothing.
     */
    public void invalidateResolvedTypes() {
        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Manager manager = ((CompositeActor) container).getManager();

            if (manager != null) {
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.