Mercurial > hg > Applications > TreeVNC
comparison src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java @ 301:ae7deb002b5f
send and receive single display size
author | oc |
---|---|
date | Sun, 18 Jan 2015 08:36:06 +0900 |
parents | d1ceb4b7097a |
children | 4713559f5838 |
comparison
equal
deleted
inserted
replaced
300:0b75fdbb8c11 | 301:ae7deb002b5f |
---|---|
1 package com.glavsoft.viewer; | 1 package com.glavsoft.viewer; |
2 | 2 |
3 import com.glavsoft.viewer.swing.SwingViewerWindow; | |
3 import jp.ac.u_ryukyu.treevnc.VncProxyService; | 4 import jp.ac.u_ryukyu.treevnc.VncProxyService; |
4 | 5 |
5 import java.io.FileNotFoundException; | 6 import java.io.FileNotFoundException; |
6 import java.io.PrintStream; | 7 import java.io.PrintStream; |
7 import java.net.SocketException; | 8 import java.net.SocketException; |
51 return; | 52 return; |
52 } | 53 } |
53 if (viewer) { | 54 if (viewer) { |
54 ViewerInterface v = cui ? new CuiViewer() : new Viewer(); | 55 ViewerInterface v = cui ? new CuiViewer() : new Viewer(); |
55 setWidthAndHeight(v); | 56 setWidthAndHeight(v); |
57 // if(filterSingleDisplay) | |
56 if(fixingSizeDisplay) | 58 if(fixingSizeDisplay) |
57 setFixingSizeDisplay(v); | 59 setFixingSizeDisplay(v); |
58 if (treeProxy) { | 60 if (treeProxy) { |
59 // this viewer also works as tree root ( display mode -d flag ) | 61 // this viewer also works as tree root ( display mode -d flag ) |
60 // start with no connection waiting server change request | 62 // start with no connection waiting server change request |
67 | 69 |
68 } | 70 } |
69 | 71 |
70 public void rootStart(String[] args, ViewerInterface v) throws SocketException, UnknownHostException { | 72 public void rootStart(String[] args, ViewerInterface v) throws SocketException, UnknownHostException { |
71 v.setNoConnection(noConnection); // should we accept host name here? | 73 v.setNoConnection(noConnection); // should we accept host name here? |
72 v.proxyStart(args,width,height, showTree, checkDelay, addSerialNum, fixingSizeDisplay, filterSingleDisplay); | 74 v.proxyStart(args, width, height, showTree, checkDelay, addSerialNum, fixingSizeDisplay, filterSingleDisplay); |
73 v.getRfb().setHasViewer(viewer); | 75 v.getRfb().setHasViewer(viewer); |
74 if (!permitChangeScreen ) v.getRfb().setPermitChangeScreen(false); | 76 if (!permitChangeScreen ) v.getRfb().setPermitChangeScreen(false); |
75 v.getRfb().getAcceptThread().waitForShutdown(); | 77 v.getRfb().getAcceptThread().waitForShutdown(); |
76 } | 78 } |
77 | 79 |