Back to index

im-sdk  12.3.91
Public Member Functions | Public Attributes | Package Functions | Static Package Functions | Package Attributes | Static Package Attributes | Private Attributes
sun.awt.im.iiimp.CompositeWindow Class Reference
Inheritance diagram for sun.awt.im.iiimp.CompositeWindow:
Inheritance graph
[legend]
Collaboration diagram for sun.awt.im.iiimp.CompositeWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CompositeWindow ()
void setStyle (String style)
String getStyle ()
void setLocation (int x, int y)
void calculatePosition ()
void lookupStart (IIIMLookupEvent e)
void lookupDone (IIIMLookupEvent e)
void lookupDraw (IIIMLookupEvent e)
void lookupProcess (IIIMLookupEvent e)
void dispatchEvent (IIIMLookupEvent e)
void statusStart (IIIMStatusEvent e)
void statusDone (IIIMStatusEvent e)
void statusDraw (IIIMStatusEvent e)
void dispatchEvent (IIIMStatusEvent e)
 CompositeWindow ()
void setStyle (String style)
String getStyle ()
void setLocation (int x, int y)
void calculatePosition ()
void lookupStart (IIIMLookupEvent e)
void lookupDone (IIIMLookupEvent e)
void lookupDraw (IIIMLookupEvent e)
void lookupProcess (IIIMLookupEvent e)
void dispatchEvent (IIIMLookupEvent e)
void statusStart (IIIMStatusEvent e)
void statusDone (IIIMStatusEvent e)
void statusDraw (IIIMStatusEvent e)
void dispatchEvent (IIIMStatusEvent e)

Public Attributes

Window window

Package Functions

void init ()
void init ()
synchronized void hide ()
synchronized void hide ()
synchronized void show ()
synchronized void show ()

Static Package Functions

 [static initializer]
 [static initializer]

Package Attributes

int columHeight
int columWidth
FontMetrics fm
LookupPane lookupPane
StatusPane statusPane
int offset = 24

Static Package Attributes

static int screenHeight
static int screenWidth

Private Attributes

String style

Detailed Description

Definition at line 53 of file CompositeWindow.java.


Constructor & Destructor Documentation

Definition at line 66 of file CompositeWindow.java.

                             {
       // Add the LookupChoiceWindow and StatusWindow
       style = Manager.getProperty("iiimf.preedit.style");
       
       init();
    }

Here is the call graph for this function:

Definition at line 66 of file CompositeWindow.java.

                             {
       // Add the LookupChoiceWindow and StatusWindow
       style = Manager.getProperty("iiimf.preedit.style");
       
       init();
    }

Here is the call graph for this function:


Member Function Documentation

sun.awt.im.iiimp.IIIMWindow.[static initializer] ( ) [inline, static, package, inherited]
sun.awt.im.iiimp.IIIMWindow.[static initializer] ( ) [inline, static, package, inherited]

Definition at line 109 of file CompositeWindow.java.

                                    {
        Component component = getClientComponent();
        
        Component frame = component;
        Insets inset = window.getInsets();
        
        while(!(frame instanceof Frame)) frame = frame.getParent();
        
        if(style.equals("BELOWSPOT") 
            && component instanceof InputMethodRequests) {
                Rectangle rect = 
                    ((InputMethodRequests)component).getTextLocation(TextHitInfo.leading(0));
                Point point = new Point();
                point.x = rect.x;
                point.y = rect.x + (int)rect.getHeight() + offset;
                // Leave space for Preedit window
                point.y += (inset.top + inset.bottom + fm.getHeight());
                window.setLocation(point);                 
        }
        else {
            // For "ROOTWINDOW" style and component isn't InputMethodRequests
            // Place the window on the left-corner of client component
            
            Point point = frame.getLocation();
            Dimension size = frame.getSize();     

            double x = point.getX();
            // It must leave the position for PreeditWindow
            double y = point.getY() + size.getHeight() 
                + inset.top + inset.bottom + fm.getHeight();
            
            window.setLocation((int)x, (int)y);        
        }                
    }

Definition at line 109 of file CompositeWindow.java.

                                    {
        Component component = getClientComponent();
        
        Component frame = component;
        Insets inset = window.getInsets();
        
        while(!(frame instanceof Frame)) frame = frame.getParent();
        
        if(style.equals("BELOWSPOT") 
            && component instanceof InputMethodRequests) {
                Rectangle rect = 
                    ((InputMethodRequests)component).getTextLocation(TextHitInfo.leading(0));
                Point point = new Point();
                point.x = rect.x;
                point.y = rect.x + (int)rect.getHeight() + offset;
                // Leave space for Preedit window
                point.y += (inset.top + inset.bottom + fm.getHeight());
                window.setLocation(point);                 
        }
        else {
            // For "ROOTWINDOW" style and component isn't InputMethodRequests
            // Place the window on the left-corner of client component
            
            Point point = frame.getLocation();
            Dimension size = frame.getSize();     

            double x = point.getX();
            // It must leave the position for PreeditWindow
            double y = point.getY() + size.getHeight() 
                + inset.top + inset.bottom + fm.getHeight();
            
            window.setLocation((int)x, (int)y);        
        }                
    }
void sun.awt.im.iiimp.CompositeWindow.dispatchEvent ( IIIMLookupEvent  e) [inline]

Definition at line 150 of file CompositeWindow.java.

                                                 {
        lookupPane.handleEvent(e);
        window.doLayout();
        window.show();
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.CompositeWindow.dispatchEvent ( IIIMLookupEvent  e) [inline]

Definition at line 150 of file CompositeWindow.java.

                                                 {
        lookupPane.handleEvent(e);
        window.doLayout();
        window.show();
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.CompositeWindow.dispatchEvent ( IIIMStatusEvent  e) [inline]

Definition at line 160 of file CompositeWindow.java.

                                                 {
        statusPane.handleEvent(e);
        window.doLayout();
        window.show();
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.CompositeWindow.dispatchEvent ( IIIMStatusEvent  e) [inline]

Definition at line 160 of file CompositeWindow.java.

                                                 {
        statusPane.handleEvent(e);
        window.doLayout();
        window.show();
    }

Here is the call graph for this function:

Definition at line 101 of file CompositeWindow.java.

                             {
        return style;
    }

Definition at line 101 of file CompositeWindow.java.

                             {
        return style;
    }
synchronized void sun.awt.im.iiimp.IIIMWindow.hide ( ) [inline, package, inherited]

Definition at line 61 of file IIIMWindow.java.

                             {
        if(window != null)
            window.setVisible(false);
    }
synchronized void sun.awt.im.iiimp.IIIMWindow.hide ( ) [inline, package, inherited]

Definition at line 61 of file IIIMWindow.java.

                             {
        if(window != null)
            window.setVisible(false);
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.CompositeWindow.init ( ) [inline, package]

Definition at line 73 of file CompositeWindow.java.

                {
        window = new Dialog(new Frame(""));
        ((Dialog)window).setResizable(true);
        ((Dialog)window).setTitle("Input Window");
        
       Font font = new Font("Monospaced", Font.PLAIN, 12);
       
       fm = window.getFontMetrics(font);
        int fontHeight = fm.getHeight();
        int fontWidth = fm.getMaxAdvance();
        int fontAscent = fm.getAscent();
        columWidth = fontWidth ;
        columHeight = fontHeight + 2;
              
        window.setFont(font);
        
        lookupPane = new LookupPane();
        window.add(lookupPane);
        statusPane = new StatusPane();
        window.add(statusPane);
        
        window.pack();        
    }
void sun.awt.im.iiimp.CompositeWindow.init ( ) [inline, package]

Definition at line 73 of file CompositeWindow.java.

                {
        window = new Dialog(new Frame(""));
        ((Dialog)window).setResizable(true);
        ((Dialog)window).setTitle("Input Window");
        
       Font font = new Font("Monospaced", Font.PLAIN, 12);
       
       fm = window.getFontMetrics(font);
        int fontHeight = fm.getHeight();
        int fontWidth = fm.getMaxAdvance();
        int fontAscent = fm.getAscent();
        columWidth = fontWidth ;
        columHeight = fontHeight + 2;
              
        window.setFont(font);
        
        lookupPane = new LookupPane();
        window.add(lookupPane);
        statusPane = new StatusPane();
        window.add(statusPane);
        
        window.pack();        
    }

Here is the caller graph for this function:

void sun.awt.im.iiimp.CompositeWindow.lookupDone ( IIIMLookupEvent  e) [inline]

Definition at line 146 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupDone ( IIIMLookupEvent  e) [inline]

Definition at line 146 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupDraw ( IIIMLookupEvent  e) [inline]

Definition at line 147 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupDraw ( IIIMLookupEvent  e) [inline]

Definition at line 147 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupProcess ( IIIMLookupEvent  e) [inline]

Definition at line 148 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupProcess ( IIIMLookupEvent  e) [inline]

Definition at line 148 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupStart ( IIIMLookupEvent  e) [inline]

Definition at line 145 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.lookupStart ( IIIMLookupEvent  e) [inline]

Definition at line 145 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.setLocation ( int  x,
int  y 
) [inline]

Definition at line 105 of file CompositeWindow.java.

                                          {
        window.setLocation(x,y);
    }
void sun.awt.im.iiimp.CompositeWindow.setLocation ( int  x,
int  y 
) [inline]

Definition at line 105 of file CompositeWindow.java.

                                          {
        window.setLocation(x,y);
    }
void sun.awt.im.iiimp.CompositeWindow.setStyle ( String  style) [inline]

Definition at line 97 of file CompositeWindow.java.

                                       {
        this.style = style;
    }
void sun.awt.im.iiimp.CompositeWindow.setStyle ( String  style) [inline]

Definition at line 97 of file CompositeWindow.java.

                                       {
        this.style = style;
    }
synchronized void sun.awt.im.iiimp.IIIMWindow.show ( ) [inline, package, inherited]

Reimplemented in sun.awt.im.iiimp.LookupWindow, and sun.awt.im.iiimp.LookupWindow.

Definition at line 66 of file IIIMWindow.java.

                             {
        if(window != null)
            window.setVisible(true);
    }
synchronized void sun.awt.im.iiimp.IIIMWindow.show ( ) [inline, package, inherited]

Reimplemented in sun.awt.im.iiimp.LookupWindow, and sun.awt.im.iiimp.LookupWindow.

Definition at line 66 of file IIIMWindow.java.

                             {
        if(window != null)
            window.setVisible(true);
    }
void sun.awt.im.iiimp.CompositeWindow.statusDone ( IIIMStatusEvent  e) [inline]

Definition at line 157 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.statusDone ( IIIMStatusEvent  e) [inline]

Definition at line 157 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.statusDraw ( IIIMStatusEvent  e) [inline]

Definition at line 158 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.statusDraw ( IIIMStatusEvent  e) [inline]

Definition at line 158 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.statusStart ( IIIMStatusEvent  e) [inline]

Definition at line 156 of file CompositeWindow.java.

{}
void sun.awt.im.iiimp.CompositeWindow.statusStart ( IIIMStatusEvent  e) [inline]

Definition at line 156 of file CompositeWindow.java.

{}

Member Data Documentation

Definition at line 57 of file CompositeWindow.java.

Definition at line 57 of file CompositeWindow.java.

FontMetrics sun.awt.im.iiimp.CompositeWindow.fm [package]

Definition at line 58 of file CompositeWindow.java.

Definition at line 60 of file CompositeWindow.java.

Definition at line 63 of file CompositeWindow.java.

static int sun.awt.im.iiimp.IIIMWindow.screenHeight [static, package, inherited]

Definition at line 52 of file IIIMWindow.java.

static int sun.awt.im.iiimp.IIIMWindow.screenWidth [static, package, inherited]

Definition at line 53 of file IIIMWindow.java.

Definition at line 61 of file CompositeWindow.java.

Definition at line 55 of file CompositeWindow.java.

Definition at line 51 of file IIIMWindow.java.


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