view src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java @ 458:4ea47640942a

intoroduce retina scaled frame buffer postion
author innparusu
date Thu, 23 Jun 2016 18:57:12 +0900
parents 34277b436cac
children 16f9b37ef43b
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<FbRectangle> 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);


}