WhiteBoard Using RMI
WSU CEG 7370 WhiteBoard Using Java RMI
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
WhiteBoard.LinesFrameImpl Class Reference
+ Inheritance diagram for WhiteBoard.LinesFrameImpl:
+ Collaboration diagram for WhiteBoard.LinesFrameImpl:

Public Member Functions

 LinesFrameImpl (String[] args) throws Exception
 
void recvOneLine (LineCoords ln)
 

Static Public Member Functions

static void main (String[] args)
 

Private Member Functions

void deleteAndExit ()
 

Private Attributes

Frame frame
 
String myURL
 
WbClient myWbClient
 
int x0 = 0
 

Static Private Attributes

static final int WIDTH = 300
 

Detailed Description

Definition at line 12 of file LinesFrameImpl.java.

Constructor & Destructor Documentation

WhiteBoard.LinesFrameImpl.LinesFrameImpl ( String[]  args) throws Exception

Definition at line 62 of file LinesFrameImpl.java.

References WhiteBoard.LinesFrameImpl.frame, WhiteBoard.Invoke.lookup(), WhiteBoard.LinesFrameImpl.myURL, WhiteBoard.LinesFrameImpl.myWbClient, and WhiteBoard.LinesFrameImpl.WIDTH.

Referenced by WhiteBoard.LinesFrameImpl.main().

62  {
63  // args = [myId, bnm, displayMcnm, clientMcnm, clientId]
64  super();
65 
66  myCLientURL = Invoke.makeURL('C', args[4]);
67 
68  frame = new Frame(args[1] + "@" + myCLientURL + "@" + args[3]);
69  frame.setSize(WIDTH, HEIGHT);
70  frame.setVisible(true);
71  frame.addWindowListener(destroyWindow);
72  frame.addWindowListener(raisedWindow);
73  frame.addMouseListener(getCoords);
74 
75  myURL = Invoke.makeURL('D', args[4]);
76  myWbClient = (WbClient) Invoke.lookup(myCLientURL);
77  myWbClient.recvDisplayObj(this);
78  Invoke.myPrint("LinesFrameImpl", myURL);
79  Invoke.myPrint("LinesFrameImpl", ""+myWbClient);
80  Invoke.myPrint("LinesFrameImpl", "Done");
81  }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

void WhiteBoard.LinesFrameImpl.deleteAndExit ( )
private

Definition at line 22 of file LinesFrameImpl.java.

References WhiteBoard.LinesFrameImpl.myURL.

22  {
23  try {
24  myWbClient.pleaseDie();
25  Naming.unbind(myURL);
26  } catch (Exception e) {e.printStackTrace();}
27  System.exit(0);
28  }
static void WhiteBoard.LinesFrameImpl.main ( String[]  args)
static

Definition at line 89 of file LinesFrameImpl.java.

References WhiteBoard.LinesFrameImpl.LinesFrameImpl().

89  {
90  try { LinesFrameImpl f = new LinesFrameImpl(args); }
91  catch (Exception e) {e.printStackTrace();}
92  }

+ Here is the call graph for this function:

void WhiteBoard.LinesFrameImpl.recvOneLine ( LineCoords  ln)

Implements WhiteBoard.LinesFrame.

Definition at line 83 of file LinesFrameImpl.java.

83  {
84  Graphics g = frame.getGraphics();
85  g.setColor(ln.c);
86  g.drawLine(ln.x1, ln.y1, ln.x2, ln.y2);
87  }

Member Data Documentation

Frame WhiteBoard.LinesFrameImpl.frame
private

Definition at line 18 of file LinesFrameImpl.java.

Referenced by WhiteBoard.LinesFrameImpl.LinesFrameImpl().

String WhiteBoard.LinesFrameImpl.myURL
private
WbClient WhiteBoard.LinesFrameImpl.myWbClient
private

Definition at line 19 of file LinesFrameImpl.java.

Referenced by WhiteBoard.LinesFrameImpl.LinesFrameImpl().

final int WhiteBoard.LinesFrameImpl.WIDTH = 300
staticprivate

Definition at line 17 of file LinesFrameImpl.java.

Referenced by WhiteBoard.LinesFrameImpl.LinesFrameImpl().

int WhiteBoard.LinesFrameImpl.x0 = 0
private

Definition at line 16 of file LinesFrameImpl.java.


The documentation for this class was generated from the following file:
Copyright © 2014 www.wright.edu/~pmateti;   thanks to doxygen