Back to index

im-sdk  12.3.91
Package Functions | Private Attributes
sun.awt.im.iiimp.PCE.SyntaxOnOff Class Reference
Collaboration diagram for sun.awt.im.iiimp.PCE.SyntaxOnOff:
Collaboration graph
[legend]

List of all members.

Package Functions

 SyntaxOnOff (LWESyntax syntax)
LWESyntax getSyntax ()
boolean willProcess (IIIMEvent e)
boolean checkTrigger (IIIMEvent e, IIIMEvent[] triggers)
 SyntaxOnOff (LWESyntax syntax)
LWESyntax getSyntax ()
boolean willProcess (IIIMEvent e)
boolean checkTrigger (IIIMEvent e, IIIMEvent[] triggers)

Private Attributes

LWESyntax syntax
boolean on = false
boolean controlDown = false

Detailed Description

Definition at line 235 of file PCE.java.


Constructor & Destructor Documentation

Definition at line 245 of file PCE.java.

                                     {
           this.syntax = syntax;
           on = false;
       }

Definition at line 245 of file PCE.java.

                                     {
           this.syntax = syntax;
           on = false;
       }

Member Function Documentation

boolean sun.awt.im.iiimp.PCE.SyntaxOnOff.checkTrigger ( IIIMEvent  e,
IIIMEvent[]  triggers 
) [inline, package]

Definition at line 262 of file PCE.java.

                                                               {
           AWTEvent ae = e.getAWTEvent();
           if (ae != null && ae instanceof KeyEvent) {
              KeyEvent ke = (KeyEvent)ae;
              int id = ke.getID();
              for (int i = 0; i < triggers.length; i++) {
                  if (triggers[i] instanceof IIIMKeyEvent) {
                     if (((IIIMKeyEvent)triggers[i]).match(ke)) {
                         e.consume();
                         if (id == KeyEvent.KEY_RELEASED) {
                            on = !on;
                         }
                         break;
                     }
                  }
              }
           }
           return on;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

boolean sun.awt.im.iiimp.PCE.SyntaxOnOff.checkTrigger ( IIIMEvent  e,
IIIMEvent[]  triggers 
) [inline, package]

Definition at line 262 of file PCE.java.

                                                               {
           AWTEvent ae = e.getAWTEvent();
           if (ae != null && ae instanceof KeyEvent) {
              KeyEvent ke = (KeyEvent)ae;
              int id = ke.getID();
              for (int i = 0; i < triggers.length; i++) {
                  if (triggers[i] instanceof IIIMKeyEvent) {
                     if (((IIIMKeyEvent)triggers[i]).match(ke)) {
                         e.consume();
                         if (id == KeyEvent.KEY_RELEASED) {
                            on = !on;
                         }
                         break;
                     }
                  }
              }
           }
           return on;
       }

Here is the call graph for this function:

Definition at line 250 of file PCE.java.

                             {
           return syntax;
       }

Definition at line 250 of file PCE.java.

                             {
           return syntax;
       }
boolean sun.awt.im.iiimp.PCE.SyntaxOnOff.willProcess ( IIIMEvent  e) [inline, package]

Definition at line 254 of file PCE.java.

                                        {
           if (on) {
              return checkTrigger(e, triggerOffs);
           } else {
              return checkTrigger(e, triggerOns);
           }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

boolean sun.awt.im.iiimp.PCE.SyntaxOnOff.willProcess ( IIIMEvent  e) [inline, package]

Definition at line 254 of file PCE.java.

                                        {
           if (on) {
              return checkTrigger(e, triggerOffs);
           } else {
              return checkTrigger(e, triggerOns);
           }
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 243 of file PCE.java.

boolean sun.awt.im.iiimp.PCE.SyntaxOnOff.on = false [private]

Definition at line 238 of file PCE.java.

Definition at line 237 of file PCE.java.


The documentation for this class was generated from the following files: