org.commonreality.sensors.swing
Class DefaultSwingSensor

java.lang.Object
  extended by org.commonreality.participant.impl.AbstractParticipant
      extended by org.commonreality.sensors.AbstractSensor
          extended by org.commonreality.sensors.swing.DefaultSwingSensor
All Implemented Interfaces:
java.io.Serializable, IIdentifiable, IParticipant, ISensor

public class DefaultSwingSensor
extends AbstractSensor

See Also:
Serialized Form

Constructor Summary
DefaultSwingSensor()
           
 
Method Summary
 double convertScreenToViewer(java.awt.geom.Rectangle2D rectangle, IIdentifier agentId)
          conver the rectangle (in screen coords) to retinotopic coordinates.
 java.lang.String getName()
           
 
Methods inherited from class org.commonreality.sensors.AbstractSensor
connect, disconnect, getAddressingInformation, getAfferentObjectManager, getCredentials, getEfferentObjectManager, getInterfacedAgents, getRealObjectManager, setCredentials, setIdentifier
 
Methods inherited from class org.commonreality.participant.impl.AbstractParticipant
addClientService, addServerService, configure, getAgentObjectManager, getClock, getEfferentCommandManager, getIdentifier, getSensorObjectManager, initialize, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, shutdown, start, stop, suspend, waitForConnection, waitForInitialization, waitForResumption, waitForStart, waitForStop, waitForSuspension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.commonreality.participant.IParticipant
configure, getAgentObjectManager, getClock, getEfferentCommandManager, getSensorObjectManager, initialize, isConnected, isInitialized, isStarted, isSuspended, reset, resume, send, shutdown, start, stop, suspend, waitForConnection, waitForResumption, waitForStart, waitForStop, waitForSuspension
 
Methods inherited from interface org.commonreality.identifier.IIdentifiable
getIdentifier
 

Constructor Detail

DefaultSwingSensor

public DefaultSwingSensor()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class AbstractParticipant

convertScreenToViewer

public double convertScreenToViewer(java.awt.geom.Rectangle2D rectangle,
                                    IIdentifier agentId)
conver the rectangle (in screen coords) to retinotopic coordinates. returning the average distance to the screen

Parameters:
rectangle -
agentId -
Returns: