Back to index

wims  3.65+svn20090927
Public Member Functions | Package Functions | Package Attributes
Ellipse Class Reference
Inheritance diagram for Ellipse:
Inheritance graph
[legend]
Collaboration diagram for Ellipse:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void yield ()
void yield ()
boolean down (int _x, int _y)
boolean down (int _x, int _y)
boolean up (int _x, int _y)
boolean up (int _x, int _y)
boolean drag (int _x, int _y)
boolean drag (int _x, int _y)
boolean key (int key)
boolean key (int key)

Package Functions

 Ellipse ()
 Ellipse (StringTokenizer tok) throws Exception
String describe ()
String specify_text ()
int specify_text_x ()
int specify_text_y ()
int specify_line_x1 ()
int specify_line_y1 ()
int specify_line_x2 ()
int specify_line_y2 ()
void draw (Graphics g)
double distance (int _x, int _y)
 Ellipse ()
 Ellipse (StringTokenizer tok) throws Exception
String describe ()
String specify_text ()
int specify_text_x ()
int specify_text_y ()
int specify_line_x1 ()
int specify_line_y1 ()
int specify_line_x2 ()
int specify_line_y2 ()
void draw (Graphics g)
double distance (int _x, int _y)
void create ()
void create ()
void destroy ()
void destroy ()
void move ()
void move ()

Package Attributes

Diagram diagram
int state
final int NONE = 0
final int CREATE = 1
final int MOVE = 2
int x
int y
int w
int h
int movex
int movey

Detailed Description

Definition at line 816 of file KansBoom.java.


Constructor & Destructor Documentation

Ellipse.Ellipse ( ) [inline, package]

Definition at line 817 of file KansBoom.java.

{super();}
Ellipse.Ellipse ( StringTokenizer  tok) throws Exception [inline, package]

Definition at line 818 of file KansBoom.java.

{super(tok);}
Ellipse.Ellipse ( ) [inline, package]

Definition at line 717 of file VrijeInvulVeld.java.

{super();}
Ellipse.Ellipse ( StringTokenizer  tok) throws Exception [inline, package]

Definition at line 718 of file VrijeInvulVeld.java.

{super(tok);}

Member Function Documentation

void DiagramItem.create ( ) [inline, package, inherited]

Reimplemented in Text, and Text.

Definition at line 649 of file VrijeInvulVeld.java.

                  {
       state = CREATE;
    }
void DiagramItem.create ( ) [inline, package, inherited]

Reimplemented in Text, and Text.

Definition at line 749 of file KansBoom.java.

                  {
       state = CREATE;
    }

Here is the caller graph for this function:

String Ellipse.describe ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 719 of file VrijeInvulVeld.java.

{return "ellipse," + x + "," + y + "," + w + "," + h;}
String Ellipse.describe ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 819 of file KansBoom.java.

{return "ellipse," + x + "," + y + "," + w + "," + h;}
void DiagramItem.destroy ( ) [inline, package, inherited]

Definition at line 658 of file VrijeInvulVeld.java.

{}
void DiagramItem.destroy ( ) [inline, package, inherited]

Definition at line 758 of file KansBoom.java.

{}

Here is the caller graph for this function:

double Ellipse.distance ( int  _x,
int  _y 
) [inline, package, virtual]

Implements DiagramItem.

Definition at line 730 of file VrijeInvulVeld.java.

                                    {
       /* Do this better! */
       float ww = w < 1 ? 1 : w, hh = h < 1 ? 1 : h;
       float yscale = ww/hh;
       float xx = _x - (x + ww / 2);
       float yy = (_y - (y + hh / 2)) * yscale;
       double r = Math.sqrt(xx * xx + yy * yy);
       return Math.abs(r - ww / 2);
    }
double Ellipse.distance ( int  _x,
int  _y 
) [inline, package, virtual]

Implements DiagramItem.

Definition at line 830 of file KansBoom.java.

                                    {
       /* Do this better! */
       float ww = w < 1 ? 1 : w, hh = h < 1 ? 1 : h;
       float yscale = ww/hh;
       float xx = _x - (x + ww / 2);
       float yy = (_y - (y + hh / 2)) * yscale;
       double r = Math.sqrt(xx * xx + yy * yy);
       return Math.abs(r - ww / 2);
    }
boolean DiagramItem.down ( int  _x,
int  _y 
) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 664 of file VrijeInvulVeld.java.

                                        {
       switch(state){
           case CREATE:
           x = _x; y = _y;
           return true;
           
           case MOVE:
           movex = _x; movey = _y;
           return true;
       }
       return false;
    }
boolean DiagramItem.down ( int  _x,
int  _y 
) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 764 of file KansBoom.java.

                                        {
       switch(state){
           case CREATE:
           x = _x; y = _y;
           return true;
           
           case MOVE:
           movex = _x; movey = _y;
           return true;
       }
       return false;
    }

Here is the caller graph for this function:

boolean DiagramItem.drag ( int  _x,
int  _y 
) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 693 of file VrijeInvulVeld.java.

                                        {
       switch(state){
           case CREATE:
           w = _x - x; h = _y - y;
           return true;
       
           case MOVE:
           x += (_x - movex);
           y += (_y - movey);
           movex = _x;
           movey = _y;
           return true;
       }
       return false;
    }
boolean DiagramItem.drag ( int  _x,
int  _y 
) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 793 of file KansBoom.java.

                                        {
       switch(state){
           case CREATE:
           w = _x - x; h = _y - y;
           return true;
       
           case MOVE:
           x += (_x - movex);
           y += (_y - movey);
           movex = _x;
           movey = _y;
           return true;
       }
       return false;
    }
void Ellipse.draw ( Graphics  g) [inline, package, virtual]

Implements DiagramItem.

Definition at line 727 of file VrijeInvulVeld.java.

                          {
       g.drawOval(x, y, w, h);
    }
void Ellipse.draw ( Graphics  g) [inline, package, virtual]

Implements DiagramItem.

Definition at line 827 of file KansBoom.java.

                          {
       g.drawOval(x, y, w, h);
    }
boolean DiagramItem.key ( int  key) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 709 of file VrijeInvulVeld.java.

                                {
       return false;
    }
boolean DiagramItem.key ( int  key) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 809 of file KansBoom.java.

                                {
       return false;
    }
void DiagramItem.move ( ) [inline, package, inherited]

Definition at line 660 of file VrijeInvulVeld.java.

                {
       state = MOVE;
    }
void DiagramItem.move ( ) [inline, package, inherited]

Definition at line 760 of file KansBoom.java.

                {
       state = MOVE;
    }

Here is the caller graph for this function:

int Ellipse.specify_line_x1 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 723 of file VrijeInvulVeld.java.

{return -1;}
int Ellipse.specify_line_x1 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 823 of file KansBoom.java.

{return -1;}
int Ellipse.specify_line_x2 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 725 of file VrijeInvulVeld.java.

{return -1;}
int Ellipse.specify_line_x2 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 825 of file KansBoom.java.

{return -1;}
int Ellipse.specify_line_y1 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 724 of file VrijeInvulVeld.java.

{return -1;}
int Ellipse.specify_line_y1 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 824 of file KansBoom.java.

{return -1;}
int Ellipse.specify_line_y2 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 726 of file VrijeInvulVeld.java.

{return -1;}
int Ellipse.specify_line_y2 ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 826 of file KansBoom.java.

{return -1;}
String Ellipse.specify_text ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 720 of file VrijeInvulVeld.java.

{return null; }
String Ellipse.specify_text ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 820 of file KansBoom.java.

{return null; }
int Ellipse.specify_text_x ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 721 of file VrijeInvulVeld.java.

{return -1; }
int Ellipse.specify_text_x ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 821 of file KansBoom.java.

{return -1; }
int Ellipse.specify_text_y ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 722 of file VrijeInvulVeld.java.

{return -1; }
int Ellipse.specify_text_y ( ) [inline, package, virtual]

Implements DiagramItem.

Definition at line 822 of file KansBoom.java.

{return -1; }
boolean DiagramItem.up ( int  _x,
int  _y 
) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 677 of file VrijeInvulVeld.java.

                                      {
       switch(state){
           case CREATE:
           w = _x - x; h = _y - y;
           yield();
           return true;
           
           case MOVE:
           x += (_x - movex);
           y += (_y - movey);
           yield();
           return true;
       }
       return false;
    }

Here is the call graph for this function:

boolean DiagramItem.up ( int  _x,
int  _y 
) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 777 of file KansBoom.java.

                                      {
       switch(state){
           case CREATE:
           w = _x - x; h = _y - y;
           yield();
           return true;
           
           case MOVE:
           x += (_x - movex);
           y += (_y - movey);
           yield();
           return true;
       }
       return false;
    }

Here is the call graph for this function:

void DiagramItem.yield ( ) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 653 of file VrijeInvulVeld.java.

void DiagramItem.yield ( ) [inline, inherited]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 753 of file KansBoom.java.

Here is the caller graph for this function:


Member Data Documentation

final int DiagramItem.CREATE = 1 [package, inherited]

Definition at line 723 of file KansBoom.java.

Diagram DiagramItem.diagram [package, inherited]

Definition at line 721 of file KansBoom.java.

int DiagramItem.h [package, inherited]

Definition at line 724 of file KansBoom.java.

final int DiagramItem.MOVE = 2 [package, inherited]

Definition at line 723 of file KansBoom.java.

int DiagramItem.movex [package, inherited]

Definition at line 725 of file KansBoom.java.

int DiagramItem.movey [package, inherited]

Definition at line 725 of file KansBoom.java.

final int DiagramItem.NONE = 0 [package, inherited]

Definition at line 723 of file KansBoom.java.

int DiagramItem.state [package, inherited]

Definition at line 722 of file KansBoom.java.

int DiagramItem.w [package, inherited]

Definition at line 724 of file KansBoom.java.

int DiagramItem.x [package, inherited]

Definition at line 724 of file KansBoom.java.

int DiagramItem.y [package, inherited]

Definition at line 724 of file KansBoom.java.


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