apps.mathpadapp.controllerapp.tablecontroller
Class MathPadRemoteDesktop

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphNode
      extended by apps.mathpadapp.controllerapp.tablecontroller.RemoteDesktop
          extended by apps.mathpadapp.controllerapp.tablecontroller.MathPadRemoteDesktop
All Implemented Interfaces:
ControllerManager.ControllerNetworkListener, NetworkedContentManager.NetworkListener

public class MathPadRemoteDesktop
extends RemoteDesktop
implements ControllerManager.ControllerNetworkListener

The Class MathPadRemoteDesktop.


Nested Class Summary
 
Nested classes/interfaces inherited from class apps.mathpadapp.conceptmapping.GraphNode
GraphNode.ConceptMapListener
 
Constructor Summary
MathPadRemoteDesktop(ContentSystem contentSystem, NetworkedContentManager networkManager)
          Instantiates a new math pad remote desktop.
 
Method Summary
 void addDataSourceListener(DataSourceListener listener)
          Adds the data source listener.
 void addRemoteMathPad(UserIdentity userId, MathTool mathTool)
          Adds the remote math pad.
 void addRemoteMathPads(java.util.HashMap<UserIdentity,MathTool> mathTools)
          Adds the remote math pads.
 void createSyncRenderer()
          Creates the sync renderer.
 java.util.HashMap<UserIdentity,MathTool> getOnlineMathTools()
          Gets the online math tools.
 void projectorFound(TableIdentity tableId, boolean isLeaseSuccessful)
          Projector found.
 void remoteDesktopContentReceived(TableIdentity tableId, java.util.HashMap<UserIdentity,MathToolInitSettings> items)
          Remote desktop content received.
 void removeAllMathPads()
          Removes the all math pads.
 void removeDataSourceListener(DataSourceListener listener)
          Removes the data source listener.
 void removeDataSourceListeners()
          Removes the data source listeners.
 void removeMathPadItem(UserIdentity userId)
          Removes the math pad item.
 void resultsReceivedFromUser(TableIdentity tableId, UserIdentity userId, AssignmentInfo assignInfo)
          Results received from user.
 void setTitle(java.lang.String title)
          Sets the title.
 void syncDataReceived(TableIdentity sender, java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> mathPadSyncData)
          Sync data received.
 void tableIdReceived(TableIdentity tableId)
          Table id received.
 void userIdsReceived(TableIdentity tableId, java.util.List<UserIdentity> userIds)
          User ids received.
 void userMathPadReceived(TableIdentity tableId, UserIdentity userId, MathToolInitSettings mathToolSettings)
          User math pad received.
 void userRegistrationReceived(TableIdentity tableId, UserIdentity userId)
          User registration received.
 void userUnregistrationReceived(TableIdentity tableId, UserIdentity userId)
          User unregistration received.
 
Methods inherited from class apps.mathpadapp.controllerapp.tablecontroller.RemoteDesktop
addOnlineItem, addOnlineItems, getDesktopWindow, getOnlineItems, getSyncRenderer, getTableId, removeOnlineItem, removeOnlineItems, setSyncRenderer, setTableId, updateNode
 
Methods inherited from class apps.mathpadapp.conceptmapping.GraphNode
addConceptMapListener, fireNodeConnected, fireNodeDisconnected, getClosePoint, getGraphManager, getIncomingLinks, getLinkPoint, getLocation, getName, getNodeItem, getOutgoingLinks, isLinkable, registerIncomingLink, registerOutgoingLink, remove, removeConceptMapListeners, setClosePoint, setLinkable, setLinkPoint, setLocation, unregisterAllLinks, unregisterLink, updateConnectionPoints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathPadRemoteDesktop

public MathPadRemoteDesktop(ContentSystem contentSystem,
                            NetworkedContentManager networkManager)
Instantiates a new math pad remote desktop.

Parameters:
contentSystem - the content system
networkManager - the network manager
Method Detail

addDataSourceListener

public void addDataSourceListener(DataSourceListener listener)
Adds the data source listener.

Parameters:
listener - the listener

addRemoteMathPad

public void addRemoteMathPad(UserIdentity userId,
                             MathTool mathTool)
Adds the remote math pad.

Parameters:
userId - the user id
mathTool - the math tool

addRemoteMathPads

public void addRemoteMathPads(java.util.HashMap<UserIdentity,MathTool> mathTools)
Adds the remote math pads.

Parameters:
mathTools - the math tools

createSyncRenderer

public void createSyncRenderer()
Description copied from class: RemoteDesktop
Creates the sync renderer.

Specified by:
createSyncRenderer in class RemoteDesktop

getOnlineMathTools

public java.util.HashMap<UserIdentity,MathTool> getOnlineMathTools()
Gets the online math tools.

Returns:
the online math tools

projectorFound

public void projectorFound(TableIdentity tableId,
                           boolean isLeaseSuccessful)
Description copied from interface: ControllerManager.ControllerNetworkListener
Projector found.

Specified by:
projectorFound in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
isLeaseSuccessful - the is lease successful

remoteDesktopContentReceived

public void remoteDesktopContentReceived(TableIdentity tableId,
                                         java.util.HashMap<UserIdentity,MathToolInitSettings> items)
Description copied from interface: ControllerManager.ControllerNetworkListener
Remote desktop content received.

Specified by:
remoteDesktopContentReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
items - the items

removeAllMathPads

public void removeAllMathPads()
Removes the all math pads.


removeDataSourceListener

public void removeDataSourceListener(DataSourceListener listener)
Removes the data source listener.

Parameters:
listener - the listener

removeDataSourceListeners

public void removeDataSourceListeners()
Removes the data source listeners.


removeMathPadItem

public void removeMathPadItem(UserIdentity userId)
Removes the math pad item.

Parameters:
userId - the user id

resultsReceivedFromUser

public void resultsReceivedFromUser(TableIdentity tableId,
                                    UserIdentity userId,
                                    AssignmentInfo assignInfo)
Description copied from interface: ControllerManager.ControllerNetworkListener
Results received from user.

Specified by:
resultsReceivedFromUser in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id
assignInfo - the assign info

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - the new title

syncDataReceived

public void syncDataReceived(TableIdentity sender,
                             java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> mathPadSyncData)
Description copied from interface: ControllerManager.ControllerNetworkListener
Sync data received.

Specified by:
syncDataReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
sender - the sender
mathPadSyncData - the math pad sync data

tableIdReceived

public void tableIdReceived(TableIdentity tableId)
Description copied from interface: ControllerManager.ControllerNetworkListener
Table id received.

Specified by:
tableIdReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id

userIdsReceived

public void userIdsReceived(TableIdentity tableId,
                            java.util.List<UserIdentity> userIds)
Description copied from interface: ControllerManager.ControllerNetworkListener
User ids received.

Specified by:
userIdsReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userIds - the user ids

userMathPadReceived

public void userMathPadReceived(TableIdentity tableId,
                                UserIdentity userId,
                                MathToolInitSettings mathToolSettings)
Description copied from interface: ControllerManager.ControllerNetworkListener
User math pad received.

Specified by:
userMathPadReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id
mathToolSettings - the math tool settings

userRegistrationReceived

public void userRegistrationReceived(TableIdentity tableId,
                                     UserIdentity userId)
Description copied from interface: ControllerManager.ControllerNetworkListener
User registration received.

Specified by:
userRegistrationReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id

userUnregistrationReceived

public void userUnregistrationReceived(TableIdentity tableId,
                                       UserIdentity userId)
Description copied from interface: ControllerManager.ControllerNetworkListener
User unregistration received.

Specified by:
userUnregistrationReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
userId - the user id