Back to index

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

List of all members.

Public Member Functions

 StatusPane ()
void paint (Graphics g)
void mouseDragged (MouseEvent e)
void mouseMoved (MouseEvent e)
void mouseClicked (MouseEvent e)
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void mousePressed (MouseEvent e)
void mouseReleased (MouseEvent e)
 StatusPane ()
void paint (Graphics g)
void mouseDragged (MouseEvent e)
void mouseMoved (MouseEvent e)
void mouseClicked (MouseEvent e)
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void mousePressed (MouseEvent e)
void mouseReleased (MouseEvent e)

Package Functions

void handleEvent (IIIMStatusEvent e)
void setData (AttributedCharacterIterator str)
String getData ()
void handleEvent (IIIMStatusEvent e)
void setData (AttributedCharacterIterator str)
String getData ()

Package Attributes

int x = 0
int y = 0
int oldx = 0
int oldy = 0
Cursor cursor = null

Private Attributes

String text = ""
AttributedCharacterIterator iterator
boolean dragged = false

Detailed Description

Definition at line 51 of file StatusPane.java.


Constructor & Destructor Documentation

Definition at line 59 of file StatusPane.java.

                        {
        addMouseMotionListener(this);
        addMouseListener(this);
    }

Definition at line 59 of file StatusPane.java.

                        {
        addMouseMotionListener(this);
        addMouseListener(this);
    }

Member Function Documentation

String sun.awt.im.iiimp.StatusPane.getData ( ) [inline, package]

Definition at line 103 of file StatusPane.java.

                      {
        return text;
    }

Here is the caller graph for this function:

String sun.awt.im.iiimp.StatusPane.getData ( ) [inline, package]

Definition at line 103 of file StatusPane.java.

                      {
        return text;
    }
void sun.awt.im.iiimp.StatusPane.handleEvent ( IIIMStatusEvent  e) [inline, package]

Definition at line 64 of file StatusPane.java.

                                        {
        text = "";
        setData(e.getIterator());
        
        repaint();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void sun.awt.im.iiimp.StatusPane.handleEvent ( IIIMStatusEvent  e) [inline, package]

Definition at line 64 of file StatusPane.java.

                                        {
        text = "";
        setData(e.getIterator());
        
        repaint();
    }

Here is the call graph for this function:

void sun.awt.im.iiimp.StatusPane.mouseClicked ( MouseEvent  e) [inline]

Definition at line 135 of file StatusPane.java.

                                           {
    }
void sun.awt.im.iiimp.StatusPane.mouseClicked ( MouseEvent  e) [inline]

Definition at line 135 of file StatusPane.java.

                                           {
    }
void sun.awt.im.iiimp.StatusPane.mouseDragged ( MouseEvent  e) [inline]

Definition at line 112 of file StatusPane.java.

                                           {
        x = e.getX();
        y = e.getY();

        if(!dragged) {
            oldx = x;
            oldy = y;
            dragged = true;
            cursor = getCursor();
            setCursor(new Cursor(Cursor.MOVE_CURSOR));
            return;
        }
        Point point = getParent().getLocationOnScreen();
            
        point.x += (x-oldx); 
        point.y += (y-oldy); 
            
        getParent().setLocation(point);
    }
void sun.awt.im.iiimp.StatusPane.mouseDragged ( MouseEvent  e) [inline]

Definition at line 112 of file StatusPane.java.

                                           {
        x = e.getX();
        y = e.getY();

        if(!dragged) {
            oldx = x;
            oldy = y;
            dragged = true;
            cursor = getCursor();
            setCursor(new Cursor(Cursor.MOVE_CURSOR));
            return;
        }
        Point point = getParent().getLocationOnScreen();
            
        point.x += (x-oldx); 
        point.y += (y-oldy); 
            
        getParent().setLocation(point);
    }
void sun.awt.im.iiimp.StatusPane.mouseEntered ( MouseEvent  e) [inline]

Definition at line 138 of file StatusPane.java.

                                           {
    }
void sun.awt.im.iiimp.StatusPane.mouseEntered ( MouseEvent  e) [inline]

Definition at line 138 of file StatusPane.java.

                                           {
    }
void sun.awt.im.iiimp.StatusPane.mouseExited ( MouseEvent  e) [inline]

Definition at line 141 of file StatusPane.java.

                                          {
    }
void sun.awt.im.iiimp.StatusPane.mouseExited ( MouseEvent  e) [inline]

Definition at line 141 of file StatusPane.java.

                                          {
    }
void sun.awt.im.iiimp.StatusPane.mouseMoved ( MouseEvent  e) [inline]

Definition at line 132 of file StatusPane.java.

                                         {
    }
void sun.awt.im.iiimp.StatusPane.mouseMoved ( MouseEvent  e) [inline]

Definition at line 132 of file StatusPane.java.

                                         {
    }
void sun.awt.im.iiimp.StatusPane.mousePressed ( MouseEvent  e) [inline]

Definition at line 144 of file StatusPane.java.

                                           {
    }
void sun.awt.im.iiimp.StatusPane.mousePressed ( MouseEvent  e) [inline]

Definition at line 144 of file StatusPane.java.

                                           {
    }
void sun.awt.im.iiimp.StatusPane.mouseReleased ( MouseEvent  e) [inline]

Definition at line 147 of file StatusPane.java.

                                            {
        dragged = false;
        setCursor(cursor);
    }
void sun.awt.im.iiimp.StatusPane.mouseReleased ( MouseEvent  e) [inline]

Definition at line 147 of file StatusPane.java.

                                            {
        dragged = false;
        setCursor(cursor);
    }
void sun.awt.im.iiimp.StatusPane.paint ( Graphics  g) [inline]

Definition at line 71 of file StatusPane.java.

                                  {
        super.paint(g);
        
        Rectangle rec = getBounds();
        
       //g.setColor(Color.darkGray);
       g.setColor(Color.black);
       g.fill3DRect(rec.width - 2, 0, 2, rec.height,true);
       g.fill3DRect(0, rec.height - 2, rec.width, 2,true);

        g.setColor(Color.white);
       g.fill3DRect(0, 0, 2, rec.height,true);
       g.fill3DRect(0, 0, rec.width, 2,true);
       //g.drawString(text,12,14);

       g.setColor(Color.black);

       if (Manager.COLOR_SUPPORT) {
           g.drawString(iterator, 12, 14);
       } else {
           g.drawString(text, 12, 14);
       }
    }
void sun.awt.im.iiimp.StatusPane.paint ( Graphics  g) [inline]

Definition at line 71 of file StatusPane.java.

                                  {
        super.paint(g);
        
        Rectangle rec = getBounds();
        
       //g.setColor(Color.darkGray);
       g.setColor(Color.black);
       g.fill3DRect(rec.width - 2, 0, 2, rec.height,true);
       g.fill3DRect(0, rec.height - 2, rec.width, 2,true);

        g.setColor(Color.white);
       g.fill3DRect(0, 0, 2, rec.height,true);
       g.fill3DRect(0, 0, rec.width, 2,true);
       //g.drawString(text,12,14);

       g.setColor(Color.black);

       if (Manager.COLOR_SUPPORT) {
           g.drawString(iterator, 12, 14);
       } else {
           g.drawString(text, 12, 14);
       }
    }
void sun.awt.im.iiimp.StatusPane.setData ( AttributedCharacterIterator  str) [inline, package]

Definition at line 95 of file StatusPane.java.

                                                  {
       iterator = str;
        for(char c = str.first(); c != CharacterIterator.DONE; 
            c = str.next()) {
            text += c;
        }
    }
void sun.awt.im.iiimp.StatusPane.setData ( AttributedCharacterIterator  str) [inline, package]

Definition at line 95 of file StatusPane.java.

                                                  {
       iterator = str;
        for(char c = str.first(); c != CharacterIterator.DONE; 
            c = str.next()) {
            text += c;
        }
    }

Here is the caller graph for this function:


Member Data Documentation

Cursor sun.awt.im.iiimp.StatusPane.cursor = null [package]

Definition at line 110 of file StatusPane.java.

boolean sun.awt.im.iiimp.StatusPane.dragged = false [private]

Definition at line 107 of file StatusPane.java.

AttributedCharacterIterator sun.awt.im.iiimp.StatusPane.iterator [private]

Definition at line 54 of file StatusPane.java.

Definition at line 109 of file StatusPane.java.

Definition at line 109 of file StatusPane.java.

String sun.awt.im.iiimp.StatusPane.text = "" [private]

Definition at line 53 of file StatusPane.java.

int sun.awt.im.iiimp.StatusPane.x = 0 [package]

Definition at line 108 of file StatusPane.java.

int sun.awt.im.iiimp.StatusPane.y = 0 [package]

Definition at line 108 of file StatusPane.java.


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