apps.mathpadapp.controllerapp.projectorcontroller
Class ProjectorNode

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphNode
      extended by apps.mathpadapp.controllerapp.projectorcontroller.ProjectorNode
All Implemented Interfaces:
DataSourceListener, ControllerManager.ControllerNetworkListener, NetworkedContentManager.NetworkListener

public class ProjectorNode
extends GraphNode
implements DataSourceListener, ControllerManager.ControllerNetworkListener

The Class ProjectorNode.


Nested Class Summary
 
Nested classes/interfaces inherited from class apps.mathpadapp.conceptmapping.GraphNode
GraphNode.ConceptMapListener
 
Constructor Summary
ProjectorNode(TableIdentity tableId, ContentSystem contentSystem, ControllerManager controllerManager)
          Instantiates a new projector node.
 
Method Summary
 TableIdentity getTableId()
          Gets the table id.
 boolean isShowOn()
          Checks if is show on.
 void projectorFound(TableIdentity tableId, boolean isLeaseSuccessful)
          Projector found.
 void remoteDesktopContentReceived(TableIdentity tableId, java.util.HashMap<UserIdentity,MathToolInitSettings> items)
          Remote desktop content received.
 void resultsReceivedFromUser(TableIdentity tableId, UserIdentity userId, AssignmentInfo assignInfo)
          Results received from user.
 void setText(java.lang.String text)
          Sets the text.
 void sourceDataUpdated(TableIdentity tableId, java.util.HashMap<UserIdentity,MathToolInitSettings> items)
          Invoked when source data update occurs.
 void syncDataReceived(TableIdentity tableId, java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> syncData)
          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.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

ProjectorNode

public ProjectorNode(TableIdentity tableId,
                     ContentSystem contentSystem,
                     ControllerManager controllerManager)
Instantiates a new projector node.

Parameters:
tableId - the table id
contentSystem - the content system
controllerManager - the controller manager
Method Detail

getTableId

public TableIdentity getTableId()
Gets the table id.

Returns:
the table id

isShowOn

public boolean isShowOn()
Checks if is show on.

Returns:
true, if is show on

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

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

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the new text

sourceDataUpdated

public void sourceDataUpdated(TableIdentity tableId,
                              java.util.HashMap<UserIdentity,MathToolInitSettings> items)
Description copied from interface: DataSourceListener
Invoked when source data update occurs.

Specified by:
sourceDataUpdated in interface DataSourceListener
Parameters:
tableId - the table id
items - the items

syncDataReceived

public void syncDataReceived(TableIdentity tableId,
                             java.util.HashMap<UserIdentity,java.util.HashMap<java.lang.Short,java.lang.Object>> syncData)
Description copied from interface: DataSourceListener
Sync data received.

Specified by:
syncDataReceived in interface DataSourceListener
Specified by:
syncDataReceived in interface ControllerManager.ControllerNetworkListener
Parameters:
tableId - the table id
syncData - the 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