Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 484:4accfd4ea9c2
create RectangleBlocking class
author | oshiro |
---|---|
date | Thu, 24 Jan 2019 19:20:07 +0900 |
parents | b2f734f3eaf1 |
children | 520a9a3e4975 |
files | Todo.txt src/main/java/jp/ac/u_ryukyu/treevnc/RectangleBlocking.java |
diffstat | 2 files changed, 33 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Todo.txt Thu Jan 24 18:37:34 2019 +0900 +++ b/Todo.txt Thu Jan 24 19:20:07 2019 +0900 @@ -1,7 +1,7 @@ Wed Nov 28 18:45:41 JST 2018 VNCサーバー側が死んだ時にTreeVNCが暴走する Done - authenticationのポップアップがrootで上がってしまう + authenticationのポップアップがrootで上がってしまう Done SERVER_CHANGE_REQUESTでリクエスト側の画面が消えないことがある ディスプレイモードで立ち上げた時にも画面が開いた方が良い consolelogをlog4jに切り替える
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/RectangleBlocking.java Thu Jan 24 19:20:07 2019 +0900 @@ -0,0 +1,32 @@ +package jp.ac.u_ryukyu.treevnc; + +import com.glavsoft.rfb.encoding.decoder.FramebufferUpdateRectangle; + +import java.awt.*; +import java.util.ArrayList; +import java.util.Iterator; + +public class RectangleBlocking implements Iterable<FramebufferUpdateRectangle> { + ArrayList<FramebufferUpdateRectangle> blocks = new ArrayList<FramebufferUpdateRectangle>(10000); + FramebufferUpdateRectangle rectangle; + + RectangleBlocking(FramebufferUpdateRectangle rectangle) { + this.rectangle = rectangle; + } + + public Iterator<FramebufferUpdateRectangle> iterator() { + return new Iterator<FramebufferUpdateRectangle>() { + int x=0,y=0; + + @Override + public boolean hasNext() { + return false; + } + + @Override + public FramebufferUpdateRectangle next() { + return null; + } + } + } +} \ No newline at end of file