Back to index

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

List of all members.

Public Member Functions

void paint (Graphics g)
boolean mouseDown (Event e, int x, int y)
boolean mouseUp (Event e, int x, int y)
boolean mouseDrag (Event e, int x, int y)
boolean keyDown (Event e, int key)
void paint (Graphics g)
boolean mouseDown (Event e, int x, int y)
boolean mouseUp (Event e, int x, int y)
boolean mouseDrag (Event e, int x, int y)
boolean keyDown (Event e, int key)

Package Functions

 DiagramDisplay (KansBoom ed, Font penfont, float thickness, Color textcolor, Color drawcolor, Font zoomfont)
 DiagramDisplay (VrijeInvulVeld ed, float thickness, Color textcolor, Color drawcolor, Font penfont)

Package Attributes

KansBoom editor
VrijeInvulVeld editor

Detailed Description

Definition at line 524 of file KansBoom.java.


Constructor & Destructor Documentation

DiagramDisplay.DiagramDisplay ( KansBoom  ed,
Font  penfont,
float  thickness,
Color  textcolor,
Color  drawcolor,
Font  zoomfont 
) [inline, package]

Definition at line 526 of file KansBoom.java.

                                                                                                             {
       editor = ed;
       setBackground(KansBoom.bgcolor);
       resize(KansBoom.xsize,KansBoom.ysize);
    }
DiagramDisplay.DiagramDisplay ( VrijeInvulVeld  ed,
float  thickness,
Color  textcolor,
Color  drawcolor,
Font  penfont 
) [inline, package]

Definition at line 419 of file VrijeInvulVeld.java.


Member Function Documentation

boolean DiagramDisplay.keyDown ( Event  e,
int  key 
) [inline]

Definition at line 470 of file VrijeInvulVeld.java.

                                            {
       if(editor.current_event_consumer.key(key)){
           repaint();
           return true;
       } 
       else 
       {
           return false;
       }
    }

Here is the call graph for this function:

boolean DiagramDisplay.keyDown ( Event  e,
int  key 
) [inline]

Definition at line 577 of file KansBoom.java.

                                            {
       if(editor.current_event_consumer.key(key)){
           repaint();
           return true;
       } 
       else 
       {
           return false;
       }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

boolean DiagramDisplay.mouseDown ( Event  e,
int  x,
int  y 
) [inline]

Definition at line 437 of file VrijeInvulVeld.java.

                                                   {
       if(editor.current_event_consumer.down(x, y)){
           repaint();
           return true;
       } 
       else 
       {
           return false;
       }
    }

Here is the call graph for this function:

boolean DiagramDisplay.mouseDown ( Event  e,
int  x,
int  y 
) [inline]

Definition at line 544 of file KansBoom.java.

                                                   {
       if(editor.current_event_consumer.down(x, y)){
           repaint();
           return true;
       } 
       else 
       {
           return false;
       }
    }

Here is the call graph for this function:

boolean DiagramDisplay.mouseDrag ( Event  e,
int  x,
int  y 
) [inline]

Definition at line 459 of file VrijeInvulVeld.java.

                                                   {
       if(editor.current_event_consumer.drag(x, y)){
           repaint();
           return true;
       } 
       else
       {
           return false;
       }
    }

Here is the call graph for this function:

boolean DiagramDisplay.mouseDrag ( Event  e,
int  x,
int  y 
) [inline]

Definition at line 566 of file KansBoom.java.

                                                   {
       if(editor.current_event_consumer.drag(x, y)){
           repaint();
           return true;
       } 
       else
       {
           return false;
       }
    }

Here is the call graph for this function:

boolean DiagramDisplay.mouseUp ( Event  e,
int  x,
int  y 
) [inline]

Definition at line 448 of file VrijeInvulVeld.java.

                                                 {
       if(editor.current_event_consumer.up(x, y)){
           repaint();
           return true;
       } 
       else 
       {
           return false;
       }
    }

Here is the call graph for this function:

boolean DiagramDisplay.mouseUp ( Event  e,
int  x,
int  y 
) [inline]

Definition at line 555 of file KansBoom.java.

                                                 {
       if(editor.current_event_consumer.up(x, y)){
           repaint();
           return true;
       } 
       else 
       {
           return false;
       }
    }

Here is the call graph for this function:

void DiagramDisplay.paint ( Graphics  g) [inline]

Definition at line 426 of file VrijeInvulVeld.java.

                                  {
       Graphics2D g2 = (Graphics2D) g;                                                                                                                    
       g2.setFont(VrijeInvulVeld.penfont);    
       g2.setStroke( new BasicStroke(VrijeInvulVeld.thickness)); 
       g2.setColor(VrijeInvulVeld.drawcolor);
       for(Enumeration e = editor.diagram.elements(); e.hasMoreElements(); ) {
           ((DiagramItem)e.nextElement()).draw(g2);
       }
    }
void DiagramDisplay.paint ( Graphics  g) [inline]

Definition at line 533 of file KansBoom.java.

                                  {
       Graphics2D g2 = (Graphics2D) g;                                                                                                                    
       g2.setFont(KansBoom.penfont);    
       g2.setStroke( new BasicStroke(KansBoom.thickness)); 
       g2.setColor(KansBoom.drawcolor);
       for(Enumeration e = editor.diagram.elements(); e.hasMoreElements(); ) {
           ((DiagramItem)e.nextElement()).draw(g2);
       }
    }

Member Data Documentation

Definition at line 418 of file VrijeInvulVeld.java.

Definition at line 525 of file KansBoom.java.


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