triptracker.client.net
Interface MapSocketListener

All Superinterfaces:
SocketListener
All Known Implementing Classes:
LoginForm, MapSocketAdapter, MapViewPanel

public interface MapSocketListener
extends SocketListener


Nested Class Summary
static class MapSocketListener.RouteState
           
 
Method Summary
 void coordReceived(int routeId, Coordinate coordinate)
          Invoked when a coordinate is received.
 void coordsReceived(List<Coordinate> coords)
          Invoked when buffered coordinates is received.
 void routeList(List<Route> routes)
          Invoked when a list of routes is received.
 void routeReceived(int routeId, List<Coordinate> coordinates)
          Invoked when a list of coordinates for a given route is received.
 void routeUpdate(int routeId, MapSocketListener.RouteState state)
          Invoked when the state of a route is changed.
 void userReceived(User user)
          Invoked when a rouser is received.
 void usersReceived(List<User> users)
          Invoked when a list of registered users is received.
 
Methods inherited from interface triptracker.client.net.SocketListener
connectionUpdate, invalidMessage, socketError
 

Method Detail

coordReceived

void coordReceived(int routeId,
                   Coordinate coordinate)
Invoked when a coordinate is received.

Parameters:
routeId - route the coordinate belongs to
coordinate - coordinate received

coordsReceived

void coordsReceived(List<Coordinate> coords)
Invoked when buffered coordinates is received.

Parameters:
coords - list of coordinates

routeList

void routeList(List<Route> routes)
Invoked when a list of routes is received.

Parameters:
routes - list of routes

routeUpdate

void routeUpdate(int routeId,
                 MapSocketListener.RouteState state)
Invoked when the state of a route is changed.

Parameters:
routeId - route the state change applies to
state - the new state

routeReceived

void routeReceived(int routeId,
                   List<Coordinate> coordinates)
Invoked when a list of coordinates for a given route is received.

Parameters:
routeId - route the list of coordinates belongs to
coordinates - list of coordinates

usersReceived

void usersReceived(List<User> users)
Invoked when a list of registered users is received.

Parameters:
users - list of users

userReceived

void userReceived(User user)
Invoked when a rouser is received.



Copyright © 2006 Team Trip Tracker. All Rights Reserved.