Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.event
Class PEMouseEvent  view PEMouseEvent download PEMouseEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byjpicedt.graphic.event.PEMouseEvent
All Implemented Interfaces:
java.io.Serializable

public class PEMouseEvent
extends java.util.EventObject

This is an enriched implementation of MouseEvent that return mouse coordinates in model-coordinates

Since:
jPicEdt 1.3.2

Field Summary
private  java.awt.event.MouseEvent awtEvent
           
private  jpicedt.graphic.PicPoint pt
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PEMouseEvent(java.awt.event.MouseEvent awtEvent, jpicedt.graphic.PECanvas source, jpicedt.graphic.PicPoint pt)
           
 
Method Summary
 java.awt.event.MouseEvent getAwtMouseEvent()
           
 jpicedt.graphic.PECanvas getCanvas()
           
 int getClickCount()
           
 int getModifiers()
           
 jpicedt.graphic.PicPoint getPicPoint()
           
 double getX()
           
 double getY()
           
 boolean isAltDown()
           
 boolean isAltGraphDown()
           
 boolean isControlDown()
           
 boolean isLeftButton()
           
 boolean isMetaDown()
           
 boolean isMiddleButton()
           
 boolean isPopupTrigger()
           
 boolean isRightButton()
           
 boolean isShiftDown()
           
 java.lang.String toString()
          Converts the event to a String.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

awtEvent

private java.awt.event.MouseEvent awtEvent

pt

private jpicedt.graphic.PicPoint pt
Constructor Detail

PEMouseEvent

public PEMouseEvent(java.awt.event.MouseEvent awtEvent,
                    jpicedt.graphic.PECanvas source,
                    jpicedt.graphic.PicPoint pt)
Method Detail

getAwtMouseEvent

public java.awt.event.MouseEvent getAwtMouseEvent()
Since:
jPicEdt 1.3.2

getCanvas

public jpicedt.graphic.PECanvas getCanvas()
Since:
jPicEdt 1.3.2

getX

public double getX()
Since:
jPicEdt 1.3.2

getY

public double getY()
Since:
jPicEdt 1.3.2

getPicPoint

public jpicedt.graphic.PicPoint getPicPoint()
Since:
jPicEdt 1.3.2

getClickCount

public int getClickCount()
Since:
jPicEdt 1.3.2

getModifiers

public int getModifiers()
Since:
jPicEdt 1.3.2

isAltDown

public boolean isAltDown()
Since:
jPicEdt 1.3.2

isAltGraphDown

public boolean isAltGraphDown()
Since:
jPicEdt 1.3.2

isControlDown

public boolean isControlDown()
Since:
jPicEdt 1.3.2

isMetaDown

public boolean isMetaDown()
Since:
jPicEdt 1.3.2

isShiftDown

public boolean isShiftDown()
Since:
jPicEdt 1.3.2

isLeftButton

public boolean isLeftButton()
Since:
jPicEdt 1.3.2

isMiddleButton

public boolean isMiddleButton()
Since:
jPicEdt 1.3.2

isRightButton

public boolean isRightButton()
Since:
jPicEdt 1.3.2

isPopupTrigger

public boolean isPopupTrigger()
Since:
jPicEdt 1.3.2

toString

public java.lang.String toString()
Description copied from class: java.util.EventObject
Converts the event to a String. The format is not specified, but by observation, the JDK uses: getClass().getName() + "[source=" + source + "]";.