Back to index

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

List of all members.

Public Member Functions

 StatusWindow ()
void statusStart (IIIMStatusEvent e)
void statusDone (IIIMStatusEvent e)
void statusDraw (IIIMStatusEvent e)
void setLocation (int x, int y)
 StatusWindow ()
void statusStart (IIIMStatusEvent e)
void statusDone (IIIMStatusEvent e)
void statusDraw (IIIMStatusEvent e)
void setLocation (int x, int y)

Public Attributes

Window window

Package Functions

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

Static Package Functions

 [static initializer]
 [static initializer]

Package Attributes

StatusPane pane
int columWidth
int columHeight
FontMetrics fm

Static Package Attributes

static int xMargin
static int width
static int height
static int screenHeight
static int screenWidth

Detailed Description

Definition at line 50 of file StatusWindow.java.


Constructor & Destructor Documentation

Definition at line 61 of file StatusWindow.java.

                          {
    }

Definition at line 61 of file StatusWindow.java.

                          {
    }

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 134 of file StatusWindow.java.

                             {
        double width = window.getSize().getWidth();
        
        Component component = getClientComponent();

        Component f = component;
        while(!(f instanceof Frame) && !(f instanceof Dialog)) {
            f = f.getParent();
        }
        
        Point point = f.getLocation();
        
        Dimension size = f.getSize();     
        
        double x = point.getX() + size.getWidth() - width;
        double y = point.getY() + size.getHeight();
        window.setLocation((int)x, (int)y);    
        // If window is out of screen, adjust it
        Point location = window.getLocation();
        double xl = location.getX();
        double yl = location.getY();
        Dimension dm = window.getSize();
        if((xl + dm.getWidth()) > screenWidth) 
            xl = screenWidth - dm.getWidth();
        if((yl + dm.getHeight()) > screenHeight) 
            yl = screenHeight - dm.getHeight();
        window.setLocation((int)xl, (int)yl);        
    }

Definition at line 134 of file StatusWindow.java.

                             {
        double width = window.getSize().getWidth();
        
        Component component = getClientComponent();

        Component f = component;
        while(!(f instanceof Frame) && !(f instanceof Dialog)) {
            f = f.getParent();
        }
        
        Point point = f.getLocation();
        
        Dimension size = f.getSize();     
        
        double x = point.getX() + size.getWidth() - width;
        double y = point.getY() + size.getHeight();
        window.setLocation((int)x, (int)y);    
        // If window is out of screen, adjust it
        Point location = window.getLocation();
        double xl = location.getX();
        double yl = location.getY();
        Dimension dm = window.getSize();
        if((xl + dm.getWidth()) > screenWidth) 
            xl = screenWidth - dm.getWidth();
        if((yl + dm.getHeight()) > screenHeight) 
            yl = screenHeight - dm.getHeight();
        window.setLocation((int)xl, (int)yl);        
    }

Here is the caller graph for this function:

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.StatusWindow.init ( ) [inline, package]

Definition at line 64 of file StatusWindow.java.

                {
        window = new Window(new Frame(""));
       window.enableInputMethods(false);        
       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;
              
        pane = new StatusPane();
        pane.setFont(font);
        
        window.add(pane);
    }

Here is the caller graph for this function:

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

Definition at line 64 of file StatusWindow.java.

                {
        window = new Window(new Frame(""));
       window.enableInputMethods(false);        
       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;
              
        pane = new StatusPane();
        pane.setFont(font);
        
        window.add(pane);
    }
void sun.awt.im.iiimp.StatusWindow.setLocation ( int  x,
int  y 
) [inline]

Definition at line 131 of file StatusWindow.java.

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

Definition at line 131 of file StatusWindow.java.

                                          {
    }
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.StatusWindow.statusDone ( IIIMStatusEvent  e) [inline]

Definition at line 106 of file StatusWindow.java.

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

Definition at line 106 of file StatusWindow.java.

                                              {
       if (window != null) { 
           window.setVisible(false);
       }
    }
void sun.awt.im.iiimp.StatusWindow.statusDraw ( IIIMStatusEvent  e) [inline]

Definition at line 112 of file StatusWindow.java.

                                              {
       if (window == null) {
           return;
       }
       pane.handleEvent(e);

       if(pane.getData().length()==0) return;
       // "15" is the drawString space
       int width = pane.getData().length() * columWidth + 15;
       Insets inset = window.getInsets();
       int height = columHeight + inset.top + inset.bottom ;
        
       window.setSize(width, height);
        
       calculatePosition();
        
       window.setVisible(true);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.StatusWindow.statusDraw ( IIIMStatusEvent  e) [inline]

Definition at line 112 of file StatusWindow.java.

                                              {
       if (window == null) {
           return;
       }
       pane.handleEvent(e);

       if(pane.getData().length()==0) return;
       // "15" is the drawString space
       int width = pane.getData().length() * columWidth + 15;
       Insets inset = window.getInsets();
       int height = columHeight + inset.top + inset.bottom ;
        
       window.setSize(width, height);
        
       calculatePosition();
        
       window.setVisible(true);
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.StatusWindow.statusStart ( IIIMStatusEvent  e) [inline]

Definition at line 100 of file StatusWindow.java.

                                               {
       if (window == null) {
           init();
       }
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.StatusWindow.statusStart ( IIIMStatusEvent  e) [inline]

Definition at line 100 of file StatusWindow.java.

                                               {
       if (window == null) {
           init();
       }
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 57 of file StatusWindow.java.

Definition at line 57 of file StatusWindow.java.

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

Definition at line 58 of file StatusWindow.java.

static int sun.awt.im.iiimp.StatusWindow.height [static, package]

Definition at line 53 of file StatusWindow.java.

Definition at line 55 of file StatusWindow.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.

static int sun.awt.im.iiimp.StatusWindow.width [static, package]

Definition at line 52 of file StatusWindow.java.

Definition at line 51 of file IIIMWindow.java.

static int sun.awt.im.iiimp.StatusWindow.xMargin [static, package]

Definition at line 51 of file StatusWindow.java.


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