view src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java @ 456:34277b436cac

Using retina scale to share screnn if minus postion
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 22 Jun 2016 19:11:37 +0900
parents 6f3d3da40940
children 4ea47640942a
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, boolean hasViewer);

    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 int retinaScale(int shareScreenNumber);

    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);


}