Back to index

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

List of all members.

Public Member Functions

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

Package Functions

 DiagramItem ()
 DiagramItem (StringTokenizer tok) throws Exception
abstract void draw (Graphics g)
abstract String describe ()
abstract String specify_text ()
abstract int specify_text_x ()
abstract int specify_text_y ()
abstract int specify_line_x1 ()
abstract int specify_line_y1 ()
abstract int specify_line_x2 ()
abstract int specify_line_y2 ()
void create ()
void destroy ()
void move ()
abstract double distance (int x, int y)
 DiagramItem ()
 DiagramItem (StringTokenizer tok) throws Exception
abstract void draw (Graphics g)
abstract String describe ()
abstract String specify_text ()
abstract int specify_text_x ()
abstract int specify_text_y ()
abstract int specify_line_x1 ()
abstract int specify_line_y1 ()
abstract int specify_line_x2 ()
abstract int specify_line_y2 ()
void create ()
void destroy ()
void move ()
abstract double distance (int x, int y)

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 720 of file KansBoom.java.


Constructor & Destructor Documentation

DiagramItem.DiagramItem ( ) [inline, package]

Definition at line 726 of file KansBoom.java.

                  {
       x = y = w = h = 0;
    }
DiagramItem.DiagramItem ( StringTokenizer  tok) throws Exception [inline, package]

Definition at line 730 of file KansBoom.java.

                                                      {
       if(tok.countTokens() != 4)
       throw new IllegalArgumentException();
       x = (new Integer(tok.nextToken())).intValue();
       y = (new Integer(tok.nextToken())).intValue();
       w = (new Integer(tok.nextToken())).intValue();
       h = (new Integer(tok.nextToken())).intValue();
    }
DiagramItem.DiagramItem ( ) [inline, package]

Definition at line 626 of file VrijeInvulVeld.java.

                  {
       x = y = w = h = 0;
    }
DiagramItem.DiagramItem ( StringTokenizer  tok) throws Exception [inline, package]

Definition at line 630 of file VrijeInvulVeld.java.

                                                      {
       if(tok.countTokens() != 4)
       throw new IllegalArgumentException();
       x = (new Integer(tok.nextToken())).intValue();
       y = (new Integer(tok.nextToken())).intValue();
       w = (new Integer(tok.nextToken())).intValue();
       h = (new Integer(tok.nextToken())).intValue();
    }

Member Function Documentation

void DiagramItem.create ( ) [inline, package]

Reimplemented in Text, and Text.

Definition at line 649 of file VrijeInvulVeld.java.

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

Reimplemented in Text, and Text.

Definition at line 749 of file KansBoom.java.

                  {
       state = CREATE;
    }

Here is the caller graph for this function:

abstract String DiagramItem.describe ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract String DiagramItem.describe ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

void DiagramItem.destroy ( ) [inline, package]

Definition at line 658 of file VrijeInvulVeld.java.

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

Definition at line 758 of file KansBoom.java.

{}

Here is the caller graph for this function:

abstract double DiagramItem.distance ( int  x,
int  y 
) [package, pure virtual]

Implemented in Text, Text, Line, Rect, Line, Ellipse, Rect, and Ellipse.

abstract double DiagramItem.distance ( int  x,
int  y 
) [package, pure virtual]

Implemented in Text, Text, Line, Rect, Line, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

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

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]

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]

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]

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;
    }
abstract void DiagramItem.draw ( Graphics  g) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Rect, Ellipse, Line, Rect, and Ellipse.

abstract void DiagramItem.draw ( Graphics  g) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Rect, Ellipse, Line, Rect, and Ellipse.

boolean DiagramItem.key ( int  key) [inline]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 709 of file VrijeInvulVeld.java.

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

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 809 of file KansBoom.java.

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

Definition at line 660 of file VrijeInvulVeld.java.

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

Definition at line 760 of file KansBoom.java.

                {
       state = MOVE;
    }

Here is the caller graph for this function:

abstract int DiagramItem.specify_line_x1 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract int DiagramItem.specify_line_x1 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

abstract int DiagramItem.specify_line_x2 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract int DiagramItem.specify_line_x2 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

abstract int DiagramItem.specify_line_y1 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract int DiagramItem.specify_line_y1 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

abstract int DiagramItem.specify_line_y2 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract int DiagramItem.specify_line_y2 ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

abstract String DiagramItem.specify_text ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract String DiagramItem.specify_text ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

abstract int DiagramItem.specify_text_x ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract int DiagramItem.specify_text_x ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

abstract int DiagramItem.specify_text_y ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

abstract int DiagramItem.specify_text_y ( ) [package, pure virtual]

Implemented in Text, Arrow, Text, Line, Arrow, Line, Rect, Ellipse, Rect, and Ellipse.

Here is the caller graph for this function:

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

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]

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]

Implements EventConsumer.

Reimplemented in Text, and Text.

Definition at line 653 of file VrijeInvulVeld.java.

void DiagramItem.yield ( ) [inline]

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]

Definition at line 723 of file KansBoom.java.

Definition at line 721 of file KansBoom.java.

int DiagramItem.h [package]

Definition at line 724 of file KansBoom.java.

final int DiagramItem.MOVE = 2 [package]

Definition at line 723 of file KansBoom.java.

int DiagramItem.movex [package]

Definition at line 725 of file KansBoom.java.

int DiagramItem.movey [package]

Definition at line 725 of file KansBoom.java.

final int DiagramItem.NONE = 0 [package]

Definition at line 723 of file KansBoom.java.

int DiagramItem.state [package]

Definition at line 722 of file KansBoom.java.

int DiagramItem.w [package]

Definition at line 724 of file KansBoom.java.

int DiagramItem.x [package]

Definition at line 724 of file KansBoom.java.

int DiagramItem.y [package]

Definition at line 724 of file KansBoom.java.


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