Examples of attributeList()


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

                    while (derivedObjects.hasNext()) {
                        NamedObj derived = (NamedObj) derivedObjects.next();

                        // See whether it has an icon.
                        EditorIcon derivedIcon = null;
                        List derivedIconList = derived
                                .attributeList(EditorIcon.class);

                        if (derivedIconList.size() > 0) {
                            // Get the last icon.
                            derivedIcon = (EditorIcon) derivedIconList
View Full Code Here

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

        NamedObj object = getTarget();

        // In theory, there should be only one.
        // But just in case, we remove all.
        Iterator icons = object.attributeList(EditorIcon.class).iterator();

        while (icons.hasNext()) {
            EditorIcon icon = (EditorIcon) icons.next();

            // An XMLIcon is not a custom icon, so don't remove it.
View Full Code Here

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

        if (effigy instanceof PtolemyEffigy) {
            NamedObj model = ((PtolemyEffigy) effigy).getModel();

            if (model != null) {
                Iterator factories = model.attributeList(TableauFactory.class)
                        .iterator();

                // If there are more than one of these, use the first
                // one that agrees to open the model.
                while (factories.hasNext() && (factory == null)) {
View Full Code Here

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

    protected void _postParse(MoMLParser parser) {
        Iterator topObjects = parser.topObjectsCreated().iterator();
        while (topObjects.hasNext()) {
            NamedObj topObject = (NamedObj) topObjects.next();
            try {
                Iterator locations = topObject.attributeList(Locatable.class)
                        .iterator();
                while (locations.hasNext()) {
                    Locatable location = (Locatable) locations.next();
                    double[] locationValue = location.getLocation();
                    for (int i = 0; i < locationValue.length; i++) {
View Full Code Here

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

            // This should only occur if DocManager has already checked that the following will work.
            // Nonetheless, we look for exceptions and report them.
            try {
                NamedObj parent = (NamedObj) ((Instantiable) _target)
                        .getParent();
                List docAttributes = parent.attributeList(DocAttribute.class);
                DocAttribute attribute = (DocAttribute) docAttributes
                        .get(docAttributes.size() - 1);
                Effigy effigy = getEffigy();
                DocEffigy newEffigy = new DocEffigy((CompositeEntity) effigy
                        .getContainer(), effigy.getContainer().uniqueName(
View Full Code Here

Examples of ptolemy.kernel.util.StringAttribute.attributeList()

            LibraryBuilder libraryBuilder = (LibraryBuilder) libraryBuilderClass
                    .newInstance();

            // Set the attributes defined in the moml to the attributes of the
            // LibraryBuilder
            libraryBuilder.addAttributes(alternateLibraryBuilderAttribute
                    .attributeList());

            try {
                library = libraryBuilder.buildLibrary(libraryContainer
                        .workspace());
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.