view src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java @ 448:344a35b7c47f

send both frame buffer size and selected screen size in Disktop size change (INIT_DATA)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 18 Jun 2016 20:09:46 +0900
parents f6a828dd37b0
children 6f3d3da40940
line wrap: on
line source

package com.glavsoft.viewer;

import com.glavsoft.transport.Reader;
import com.glavsoft.transport.Writer;
import jp.ac.u_ryukyu.treevnc.TreeRFBProto;

import java.awt.*;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;

public interface ViewerInterface extends Runnable {

    public boolean getCuiVersion();

	public TreeRFBProto getRfb();

	public void closeApp();

	public void setSocket(Socket soc);

	public void run();

	public void setTerminationType(boolean b);

    void setCuiVersion(boolean flag);

    public void startTreeViewer(String hostName, boolean b, boolean addSerialNum);

    public void connectToParenet(int port, String hostname) throws IOException;

    public void inhelitClients(String hostName, short newVNCServerId, int x, int y, int width, int height, int scale);

    public void proxyStart(String[] args, String hostName, int width, int height, boolean showTree, boolean checkDelay, boolean addSerialNum, boolean fixingSize, boolean filterSingleDisplay);

    public void setNoConnection(boolean noConnection);

	public void setVisible(boolean b);

	public Socket getVNCSocket();

    public boolean getShowTree();

    public void setWidth(int width);

    public void setHeight(int height);

    public void setFixingSize(int width, int height);
    
    public void setFitScreen();

    public ArrayList<Rectangle> getScreenRectangles();

    public Point getScreenOffset(ArrayList<Rectangle> rectangles);

    public ConnectionPresenter getConnectionPresenter();

    public void setConnectionPresenter(ConnectionPresenter connectionPresenter);

    void changeToDirectConnectedServer(String hostName, Reader is, Writer os, int x, int y, int width, int height, int scale);


}