![]() WebMouse events notify when the user uses the mouse (or similar input device) to interact with a component. Obligated to do so.How to Write a Mouse Listener (The Java™ … This exception to your version of the library, but you are not If you modify this library, you may extend An independent module is a module which is not derived from Independent module, the terms and conditions of the license of that Terms of your choice, provided that you also meet, for each linked Modules, and to copy and distribute the resulting executable under Permission to link this library with independent modules to produce anĮxecutable, regardless of the license terms of these independent Thus, the terms andĬonditions of the GNU General Public License cover the wholeĪs a special exception, the copyright holders of this library give you Making a combined work based on this library. Linking this library statically or dynamically with other modules is If not, write to theįree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA You should have received a copy of the GNU General Public LicenseĪlong with GNU Classpath see the file COPYING. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. WITHOUT ANY WARRANTY without even the implied warranty of GNU Classpath is distributed in the hope that it will be useful, but The Free Software Foundation either version 2, or (at your option) It under the terms of the GNU General Public License as published by GNU Classpath is free software you can redistribute it and/or modify ObjectĬlone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, waitĬopyright (C) 1999, 2002, 2004, 2005 Free Software Foundation, Inc. AWTEventĬonsume, getID, isConsumed, paramString, setSource, toString InputEventĬonsume, getModifiers, getModifiersEx, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown TranslatePoint(int dx, int dy) Translates the event coordinates by the specified x and y offsets. ParamString() Returns a string identifying this event. IsPopupTrigger() This method tests whether or not the event is a popup menu trigger. GetY() This method returns the Y coordinate of the mouse position. GetX() This method returns the X coordinate of the mouse position. GetPoint() This method returns a Point for the x,y position of GetMouseModifiersText(int modifiers) Returns a string describing the modifiers, such as "Shift" or GetClickCount() This method returns the number of mouse clicks associated with this GetButton() Returns which button, if any, was the most recent to change state. MouseEvent( Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) Initializes a new instance of MouseEvent with the specified ![]() MouseEvent( Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) Initializes a new instance of MouseEvent with the specified AWTEventĪCTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK, consumed, idįields inherited from class java.util. ComponentEventĬOMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWNįields inherited from class java.awt. InputEventĪLT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASKįields inherited from class. NOBUTTON This indicates that no button changed state.įields inherited from class. MOUSE_WHEEL This event id indicates that the mouse wheel was rotated. MOUSE_RELEASED This event id indicates that the mouse was released. MOUSE_PRESSED This event id indicates that the mouse was pressed. MOUSE_MOVED This event id indicates that the mouse was moved. MOUSE_LAST This is the last id in the range of event ids used by this class. MOUSE_FIRST This is the first id in the range of event ids used by this class. ![]() MOUSE_EXITED This event id indicates that the mouse exited a component. MOUSE_ENTERED This event id indicates that the mouse entered a component. MOUSE_DRAGGED This event id indicates that the mouse was dragged over a component. MOUSE_CLICKED This event id indicates that the mouse was clicked. BUTTON1 This indicates that button 1 changed state.īUTTON2 This indicates that button 2 changed state.īUTTON3 This indicates that button 3 changed state.
0 Comments
Leave a Reply. |