Crossfire JXClient, Trunk
Public Member Functions | Static Public Attributes | Package Attributes | List of all members
DrawPanel Class Reference
Inheritance diagram for DrawPanel:
Inheritance graph
Collaboration diagram for DrawPanel:
Collaboration graph

Public Member Functions

 DrawPanel ()
 
void mouseClicked (MouseEvent e)
 
void mouseDragged (MouseEvent e)
 
void mouseEntered (MouseEvent e)
 
void mouseExited (MouseEvent e)
 
void mouseMoved (MouseEvent e)
 
void mousePressed (MouseEvent e)
 
void mouseReleased (MouseEvent e)
 
void paint (Graphics g)
 
void setDrawMode (int mode)
 

Static Public Attributes

static final int LINES = 0
 
static final int POINTS = 1
 

Package Attributes

List< Color > colors = new ArrayList<Color>()
 
List< Rectangle > lines = new ArrayList<Rectangle>()
 
int mode = LINES
 
int x1
 
int x2
 
int y1
 
int y2
 

Detailed Description

Definition at line 105 of file DrawTest.java.

Constructor & Destructor Documentation

◆ DrawPanel()

DrawPanel.DrawPanel ( )

Definition at line 116 of file DrawTest.java.

Member Function Documentation

◆ mouseClicked()

void DrawPanel.mouseClicked ( MouseEvent  e)

Definition at line 201 of file DrawTest.java.

◆ mouseDragged()

void DrawPanel.mouseDragged ( MouseEvent  e)

Definition at line 134 of file DrawTest.java.

◆ mouseEntered()

void DrawPanel.mouseEntered ( MouseEvent  e)

Definition at line 193 of file DrawTest.java.

◆ mouseExited()

void DrawPanel.mouseExited ( MouseEvent  e)

Definition at line 197 of file DrawTest.java.

◆ mouseMoved()

void DrawPanel.mouseMoved ( MouseEvent  e)

Definition at line 153 of file DrawTest.java.

◆ mousePressed()

void DrawPanel.mousePressed ( MouseEvent  e)

Definition at line 157 of file DrawTest.java.

◆ mouseReleased()

void DrawPanel.mouseReleased ( MouseEvent  e)

Definition at line 177 of file DrawTest.java.

◆ paint()

void DrawPanel.paint ( Graphics  g)

Definition at line 205 of file DrawTest.java.

◆ setDrawMode()

void DrawPanel.setDrawMode ( int  mode)

Definition at line 122 of file DrawTest.java.

Referenced by DrawControls.itemStateChanged().

Here is the caller graph for this function:

Member Data Documentation

◆ colors

List<Color> DrawPanel.colors = new ArrayList<Color>()
package

Definition at line 111 of file DrawTest.java.

◆ LINES

final int DrawPanel.LINES = 0
static

Definition at line 107 of file DrawTest.java.

Referenced by DrawControls.itemStateChanged().

◆ lines

List<Rectangle> DrawPanel.lines = new ArrayList<Rectangle>()
package

Definition at line 110 of file DrawTest.java.

◆ mode

int DrawPanel.mode = LINES
package

Definition at line 109 of file DrawTest.java.

◆ POINTS

final int DrawPanel.POINTS = 1
static

Definition at line 108 of file DrawTest.java.

Referenced by DrawControls.itemStateChanged().

◆ x1

int DrawPanel.x1
package

Definition at line 112 of file DrawTest.java.

◆ x2

int DrawPanel.x2
package

Definition at line 113 of file DrawTest.java.

◆ y1

int DrawPanel.y1
package

Definition at line 112 of file DrawTest.java.

◆ y2

int DrawPanel.y2
package

Definition at line 113 of file DrawTest.java.


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