comparison src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java @ 454:432e2967eaab

All screen sharing request information is now in ConnectionPresenter only
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 22 Jun 2016 11:55:45 +0900
parents f6a828dd37b0
children fd803266ade7
comparison
equal deleted inserted replaced
453:d0ca1be5c47c 454:432e2967eaab
67 private boolean cuiVersion; 67 private boolean cuiVersion;
68 private boolean noConnection = false; 68 private boolean noConnection = false;
69 public ViewerInterface viewer; 69 public ViewerInterface viewer;
70 private ConnectionParams connectionParams; 70 private ConnectionParams connectionParams;
71 private short reconnectingId = -1; 71 private short reconnectingId = -1;
72 private int frameSizeWidth; 72 private int frameSizeWidth; // contains multi screens
73 private int frameSizeHeight; 73 private int frameSizeHeight;
74 private int retinaScale = 1; 74 private int singleWidth = 0; // requested single screen in frame buffer
75 private int x; 75 private int singleHeight = 0;
76 private int retinaScale = 1; // we don't use it now
77 private int x; // requested single screen offset
76 private int y; 78 private int y;
77 79
78 public short getReconnectingId() { 80 public short getReconnectingId() {
79 return reconnectingId; 81 return reconnectingId;
80 } 82 }
433 setConnectionWorkerFactory( 435 setConnectionWorkerFactory(
434 new SwingConnectionWorkerFactory(connectionView.getFrame(), viewer.passwordFromParams, this, viewerWindowFactory, viewer.myRfb)); 436 new SwingConnectionWorkerFactory(connectionView.getFrame(), viewer.passwordFromParams, this, viewerWindowFactory, viewer.myRfb));
435 setNeedReconnection(!viewer.noConnection); 437 setNeedReconnection(!viewer.noConnection);
436 startConnection(viewer.settings, viewer.uiSettings, viewer.paramsMask, exchangeSocket, is, os); 438 startConnection(viewer.settings, viewer.uiSettings, viewer.paramsMask, exchangeSocket, is, os);
437 } 439 }
440
441
442 public int getSingleWidth() {
443 return singleWidth;
444 }
445
446 public int getSingleHeight() {
447 return singleHeight;
448 }
449
450 public void setSingleWidth(int singleWidth) {
451 this.singleWidth = singleWidth;
452 }
453
454 public void setSingleHeight(int signleHeight) {
455 this.singleHeight = signleHeight;
456 }
457
438 } 458 }