Examples of SVGFileFilter


Examples of org.apache.batik.util.SVGFileFilter

                    close();
                }
            });

        uriChooser = new URIChooser(this, new URIChooserOKAction());
        uriChooser.setFileFilter(new SVGFileFilter());

        // Create the SVG canvas.
        canvas = new JSVGCanvas(this);

        listeners.put(OPEN_ACTION,        new OpenAction());
View Full Code Here

Examples of org.apache.batik.util.SVGFileFilter

            JFileChooser fileChooser =
                new JFileChooser(currentPath);
            fileChooser.setFileHidingEnabled(false);
            fileChooser.setFileSelectionMode
                (JFileChooser.FILES_AND_DIRECTORIES);
            fileChooser.setFileFilter(new SVGFileFilter());

            int choice = fileChooser.showOpenDialog(ViewerFrame.this);
            if (choice == JFileChooser.APPROVE_OPTION) {
                File f = fileChooser.getSelectedFile();
                try {
View Full Code Here

Examples of org.apache.flex.forks.batik.swing.svg.SVGFileFilter

    public class OpenLocationAction extends AbstractAction {
        public OpenLocationAction() {}
        public void actionPerformed(ActionEvent e) {
            if (uriChooser == null) {
                uriChooser = new URIChooser(JSVGViewerFrame.this);
                uriChooser.setFileFilter(new SVGFileFilter());
                uriChooser.pack();
                Rectangle fr = getBounds();
                Dimension sd = uriChooser.getSize();
                uriChooser.setLocation(fr.x + (fr.width  - sd.width) / 2,
                                       fr.y + (fr.height - sd.height) / 2);
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.