Package com.lightcrafts.ui.region

Examples of com.lightcrafts.ui.region.CurveIterator


        cutItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    RegionManager regions = (RegionManager) get("regions");
                    CurveIterator selection = (CurveIterator) get("selection");
                    regions.unShareShapes(selection);
                    put("clipboard", selection);
                    updatePasteEnabled();
                }
            }
        );
        // Enable "paste" after "copy":

        copyItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    final Object selection = get("selection");
                    put("clipboard", selection);
                    updatePasteEnabled();
                }
            }
        );

        // And "paste" does the deed:

        pasteItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    CurveIterator selection = (CurveIterator) get("clipboard");
                    RegionManager regions = (RegionManager) get("regions");
                    regions.shareShapes(selection, true);
                }
            }
        );

        pasteRefItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    CurveIterator selection = (CurveIterator) get("clipboard");
                    RegionManager regions = (RegionManager) get("regions");
                    regions.shareShapes(selection, false);
                }
            }
        );
View Full Code Here


       
        deleteItem.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    RegionManager regions = (RegionManager) get("regions");
                    CurveIterator selection = (CurveIterator) get("selection");
                    regions.unShareShapes(selection);
                }
            }
        );
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.region.CurveIterator

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.