apps.remotecontrol.tableportal
Class TablePortal

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphNode
      extended by apps.mathpadapp.util.MTFrame
          extended by apps.remotecontrol.tableportal.TablePortal
All Implemented Interfaces:
NetworkedContentManager.NetworkListener

public class TablePortal
extends MTFrame
implements NetworkedContentManager.NetworkListener

The Class TablePortal.


Nested Class Summary
static class TablePortal.OperationMode
          The Enum OperationMode.
static class TablePortal.RemoteTableMode
          The Enum RemoteTableMode.
static class TablePortal.TraceMode
          The Enum TraceMode.
 
Nested classes/interfaces inherited from class apps.mathpadapp.conceptmapping.GraphNode
GraphNode.ConceptMapListener
 
Field Summary
static float DEFAULT_SCALE
          The default scale.
 
Constructor Summary
TablePortal(ContentSystem contentSystem, NetworkedContentManager networkManager, GraphManager grapgManager)
          Instantiates a new table portal.
 
Method Summary
 void close()
          Close.
 void connect(TableIdentity tableIdentity)
          Connect.
 DisplayPanel getDisplayPanel()
          Gets the display panel.
 NetworkedContentManager getNetworkManager()
          Gets the network manager.
 java.lang.String getPortalId()
          Gets the portal id.
 Radar getRadar()
          Gets the radar.
 TableIdentity getTableId()
          Gets the table id.
 TablePortal.TraceMode getTraceMode()
          Gets the trace mode.
 void messageReceived(java.lang.Object obj)
          Message received.
 void setNetworkedContentManager(NetworkedContentManager manager)
          Sets the networked content manager.
 void setOperationMode(TablePortal.OperationMode mode)
          Sets the operation mode.
 void setTableMode(TablePortal.RemoteTableMode mode)
          Sets the table mode.
 void setTraceMode(TablePortal.TraceMode currentTraceMode)
          Sets the trace mode.
 void update(float tpf)
          Update.
 
Methods inherited from class apps.mathpadapp.util.MTFrame
getTitle, getTopBar, getWindow, setHeight, setTitle, setWidth
 
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
 

Field Detail

DEFAULT_SCALE

public static float DEFAULT_SCALE
The default scale.

Constructor Detail

TablePortal

public TablePortal(ContentSystem contentSystem,
                   NetworkedContentManager networkManager,
                   GraphManager grapgManager)
Instantiates a new table portal.

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

close

public void close()
Description copied from class: MTFrame
Close.

Overrides:
close in class MTFrame

connect

public void connect(TableIdentity tableIdentity)
Connect.

Parameters:
tableIdentity - the table identity

getDisplayPanel

public DisplayPanel getDisplayPanel()
Gets the display panel.

Returns:
the display panel

getNetworkManager

public NetworkedContentManager getNetworkManager()
Gets the network manager.

Returns:
the network manager

getPortalId

public java.lang.String getPortalId()
Gets the portal id.

Returns:
the portal id

getRadar

public Radar getRadar()
Gets the radar.

Returns:
the radar

getTableId

public TableIdentity getTableId()
Gets the table id.

Returns:
the table id

getTraceMode

public TablePortal.TraceMode getTraceMode()
Gets the trace mode.

Returns:
the trace mode

messageReceived

public void messageReceived(java.lang.Object obj)
Description copied from interface: NetworkedContentManager.NetworkListener
Message received.

Specified by:
messageReceived in interface NetworkedContentManager.NetworkListener
Parameters:
obj - the obj

setNetworkedContentManager

public void setNetworkedContentManager(NetworkedContentManager manager)
Sets the networked content manager.

Parameters:
manager - the new networked content manager

setOperationMode

public void setOperationMode(TablePortal.OperationMode mode)
Sets the operation mode.

Parameters:
mode - the new operation mode

setTableMode

public void setTableMode(TablePortal.RemoteTableMode mode)
Sets the table mode.

Parameters:
mode - the new table mode

setTraceMode

public void setTraceMode(TablePortal.TraceMode currentTraceMode)
Sets the trace mode.

Parameters:
currentTraceMode - the new trace mode

update

public void update(float tpf)
Update.

Parameters:
tpf - the tpf