Examples of resetTool()


Examples of com.agifans.picedit.picture.EditStatus.resetTool()

            // we process outside of the normal processMouseClick.
            if (event.getButton() == MouseEvent.BUTTON2) {
                // Reset the current tool if line is being drawn. Doesn't make sense to keep line
                // drawing enabled while colour is being chosen.
                if (editStatus.isLineBeingDrawn()) {
                    editStatus.resetTool();
                }
               
                Point eventPoint = event.getLocationOnScreen();
                Point dialogPoint = new Point(eventPoint.x - 34, eventPoint.y - 34);
               
View Full Code Here

Examples of com.agifans.picedit.picture.EditStatus.resetTool()

                picture.putPixel(previousX, previousY);
            }
            if (editStatus.getNumOfClicks() > 0) {
                // If a tool is active (i.e. has a least one click) then right click resets
                // number of clicks, which allows the user to move to new location.
                editStatus.resetTool();
            } else {
                // If no clicks performed yet then a right click sets tool to None.
                editStatus.setTool(ToolType.NONE);
            }
        }
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.