double translateY = 0.0;
boolean dontSend = false;
// by default activate default view
boolean activateDefaultView = true;
boolean isLoadDefaultViewsList = false;
Vertex vertex = null;
//boolean translateSet = false;
ArrayList <String>views = new ArrayList<String>();
for (Object n: l) {
if (n instanceof ErrorMapper) {
MapperEvent me = new MapperEvent(this);
me.setMapperType(MapperActionType.DisplayError);
Date d = new Date(System.currentTimeMillis());
NexsmLog nl = new NexsmLog(d, NexsmLogType.Critical, "Puller error",
((ErrorMapper)n).getMessage());
me.setParams(nl);
fireMapperActionRequested(me);
} else if (n instanceof LoggedInUser) {
LoggedInUser li = (LoggedInUser)n;
if (li.isLoggedIn() && li.isConfigAllowed()) {
MapperEvent me = new MapperEvent(this);
me.setMapperType(MapperActionType.DisplayToolbar);
me.setParams(true);
fireMapperActionRequested(me);
}
_li.setLoggedIn(li.isLoggedIn());
_li.setConfigAllowed(li.isConfigAllowed());
} else if (n instanceof MapHost) { // response to loadMap
mh = (MapHost)n;
// TODO change this to use the selected view in MapApplet
vertex = _graphManager.getVertex(mh.getName());
if (viewName.length() > 0 && loadMap) {
if (vertex != null) {
_graphManager.moveVertex(vertex, mh.getCoordinates(), viewName);
if (mh.isHidden()) {
_graphManager.hideVertex(vertex, viewName);
} else {
_graphManager.showVertex(vertex, viewName);
}
if (mh.isLocked()) {
_graphManager.lockVertex(vertex, viewName);
}
if (mh.getLabelLocation() != null) {
vertex.setUserDatum("labelLocation", mh.getLabelLocation(), UserData.REMOVE);
}
}
} else {
if (!mapHostErrorSent) {
MapperEvent me = new MapperEvent(this);