Package com.bbn.openmap.tools.drawing

Examples of com.bbn.openmap.tools.drawing.EditToolLoader


     * Fill the Face's toolbar with buttons
     */
    protected void fillFaceToolBar(JToolBar faceTB, ButtonGroup bg) {
        Iterator it = loaderList.iterator();
        while (it.hasNext()) {
            EditToolLoader loader = (EditToolLoader) it.next();
            String[] classnames = loader.getEditableClasses();

            for (int i = 0; i < classnames.length; i++) {
                ImageIcon icon = loader.getIcon(classnames[i]);
                JToggleButton btn = new JToggleButton(icon, false);
                btn.setToolTipText(loader.getPrettyName(classnames[i]));
                btn.setActionCommand(classnames[i]);
                btn.addActionListener(this);
                bg.add(btn);
                faceTB.add(btn);
            }
View Full Code Here


                    Object obj = ComponentFactory.create(loaderClassString,
                            loaderPropertyPrefix,
                            props);

                    if (obj != null && obj instanceof EditToolLoader) {
                        EditToolLoader loader = (EditToolLoader) obj;

                        if (Debug.debugging("editortool")) {
                            Debug.output("DrawingEditorTool: adding "
                                    + loaderClassString);
                        }

                        addEditToolLoader(loader);

                        if (loaderAttributeClass != null) {

                            if (Debug.debugging("editortool")) {
                                Debug.output("DrawingEditorTool: getting attributes for "
                                        + loaderAttributeClass);
                            }

                            Object daObject = ComponentFactory.create(loaderAttributeClass,
                                    loaderPropertyPrefix,
                                    props);

                            if (daObject != null
                                    && daObject instanceof DrawingAttributes) {
                                if (Debug.debugging("editortool")) {
                                    Debug.output("DrawingEditorTool: attributes from "
                                            + loaderAttributeClass);
                                }

                                String[] classnames = loader.getEditableClasses();
                                for (int i = 0; i < classnames.length; i++) {
                                    drawingAttributesTable.put(classnames[i],
                                            daObject);
                                }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.tools.drawing.EditToolLoader

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.