org.jacorb.demo.notification.whiteboard
Class Workgroup

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.jacorb.demo.notification.whiteboard.IWorkgroupPOA
          extended by org.jacorb.demo.notification.whiteboard.Workgroup
All Implemented Interfaces:
IWorkgroupOperations, WhiteboardVars, WorkgroupController, InvokeHandler

public class Workgroup
extends IWorkgroupPOA
implements WorkgroupController, WhiteboardVars

Author:
Alphonse Bendt

Field Summary
protected  IFactory factory_
           
protected  BrushSizePixelImage image_
           
protected  int myId
           
protected  ORB orb_
           
protected  POA poa_
           
protected  IWhiteBoard whiteboard_
           
protected  WorkgroupFrame workgroupFrame_
           
 
Fields inherited from interface org.jacorb.demo.notification.whiteboard.WhiteboardVars
EVENT_DOMAIN, WORKGROUP_ID
 
Constructor Summary
Workgroup(ORB orb, POA poa, IFactory factory)
           
 
Method Summary
 void clearAll()
           
 void clearAllLocal()
           
 void drawLine(int x0, int y0, int x1, int y1, int red, int green, int blue)
           
 void drawLineLocal(int x0, int y0, int x1, int y1, int red, int green, int blue, int brushsize)
           
 void exit()
           
 PixelImage getImage()
           
 String[] getListOfWhiteboards()
           
 ORB getOrb()
           
 int getWorkgroupId()
           
 void leaveWhiteboard()
           
static void main(String[] args)
           
 void selectWhiteboard(String name)
           
 void setBrushSize(int i)
           
 void updateWholeImage(int[] data)
           
 
Methods inherited from class org.jacorb.demo.notification.whiteboard.IWorkgroupPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orb_

protected ORB orb_

poa_

protected POA poa_

workgroupFrame_

protected WorkgroupFrame workgroupFrame_

image_

protected BrushSizePixelImage image_

myId

protected int myId

whiteboard_

protected IWhiteBoard whiteboard_

factory_

protected IFactory factory_
Constructor Detail

Workgroup

public Workgroup(ORB orb,
                 POA poa,
                 IFactory factory)
Method Detail

getListOfWhiteboards

public String[] getListOfWhiteboards()
Specified by:
getListOfWhiteboards in interface WorkgroupController

selectWhiteboard

public void selectWhiteboard(String name)
Specified by:
selectWhiteboard in interface WorkgroupController

leaveWhiteboard

public void leaveWhiteboard()
Specified by:
leaveWhiteboard in interface WorkgroupController

exit

public void exit()
Specified by:
exit in interface WorkgroupController

getWorkgroupId

public int getWorkgroupId()
Specified by:
getWorkgroupId in interface WorkgroupController

drawLine

public void drawLine(int x0,
                     int y0,
                     int x1,
                     int y1,
                     int red,
                     int green,
                     int blue)
Specified by:
drawLine in interface WorkgroupController

drawLineLocal

public void drawLineLocal(int x0,
                          int y0,
                          int x1,
                          int y1,
                          int red,
                          int green,
                          int blue,
                          int brushsize)
Specified by:
drawLineLocal in interface WorkgroupController

getImage

public PixelImage getImage()
Specified by:
getImage in interface WorkgroupController

clearAll

public void clearAll()
Specified by:
clearAll in interface WorkgroupController

clearAllLocal

public void clearAllLocal()
Specified by:
clearAllLocal in interface WorkgroupController

setBrushSize

public void setBrushSize(int i)
Specified by:
setBrushSize in interface WorkgroupController

getOrb

public ORB getOrb()
Specified by:
getOrb in interface WorkgroupController

updateWholeImage

public void updateWholeImage(int[] data)
Specified by:
updateWholeImage in interface WorkgroupController

main

public static void main(String[] args)


Copyright © 2016 JacORB. All rights reserved.