annotate src/main/java/com/glavsoft/rfb/protocol/NullRenderer.java @ 560:bdd659ce8e64

fix null renderer
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 31 Jan 2020 11:41:13 +0900
parents 3481a187687f
children 6f95d475906b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
1 package com.glavsoft.rfb.protocol;
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
2
30
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
3 import com.glavsoft.drawing.ColorDecoder;
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
4 import com.glavsoft.drawing.Renderer;
30
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
5 import com.glavsoft.exceptions.TransportException;
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
6 import com.glavsoft.rfb.encoding.decoder.FramebufferUpdateRectangle;
30
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
7 import com.glavsoft.transport.Reader;
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
8
59
433c79184c05 merge version2.7.2
Taninari YU <you@cr.ie.u-ryukyu.ac.jp>
parents: 30
diff changeset
9 public class NullRenderer extends Renderer {
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
10
559
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
11 private int bytePerPixcel;
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
12
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
13 NullRenderer(int bytePerPixcel) {
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
14 this.bytePerPixcel = bytePerPixcel;
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
15 }
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
16
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
17 @Override
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
18 public void drawJpegImage(byte[] bytes, int offset, int jpegBufferLength,
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
19 FramebufferUpdateRectangle rect) {
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
20 // TODO Auto-generated method stub
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
21
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
22 }
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
23
30
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
24 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
25 public void copyRect(int srcX, int srcY, FramebufferUpdateRectangle rect) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
26 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
27
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
28 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
29
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
30 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
31 public int readPixelColor(Reader reader) throws TransportException {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
32 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
33 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
34 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
35
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
36 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
37 public void fillRect(int i, int tileX, int tileY, int tileWidth,
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
38 int tileHeight) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
39 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
40
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
41 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
42
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
43 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
44 public int getBytesPerPixel() {
559
3481a187687f correct bytesPerPixcel in NullRenderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 59
diff changeset
45 return bytePerPixcel;
30
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
46 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
47
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
48 @Override
560
bdd659ce8e64 fix null renderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 559
diff changeset
49 public int getBytesPerCPixel() {
bdd659ce8e64 fix null renderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 559
diff changeset
50 return bytePerPixcel;
bdd659ce8e64 fix null renderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 559
diff changeset
51 }
bdd659ce8e64 fix null renderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 559
diff changeset
52
bdd659ce8e64 fix null renderer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 559
diff changeset
53 @Override
30
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
54 public void drawBytes(byte[] bytes, int x, int y, int width, int height) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
55 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
56
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
57 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
58
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
59 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
60 public int getPixelColor(byte[] buffer, int i) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
61 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
62 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
63 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
64
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
65 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
66 public void createCursor(int[] cursorPixels, FramebufferUpdateRectangle rect) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
67 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
68
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
69 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
70
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
71 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
72 public void fillRect(int color, FramebufferUpdateRectangle rect) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
73 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
74
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
75 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
76
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
77 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
78 public int getBytesPerPixelSignificant() {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
79 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
80 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
81 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
82
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
83 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
84 public int readTightPixelColor(Reader reader) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
85 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
86 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
87 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
88
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
89 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
90 public int drawTightBytes(byte[] buffer, int i, int x, int y, int width,
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
91 int height) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
92 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
93 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
94
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
95 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
96 public void drawBytesWithPalette(byte[] buffer,
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
97 FramebufferUpdateRectangle rect, int[] palette) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
98 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
99
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
100 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
101
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
102 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
103 public ColorDecoder getColorDecoder() {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
104 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
105 return null;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
106 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
107
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
108 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
109 public void drawUncaliberedRGBLine(byte[] thisRow, int x, int i, int width) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
110 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
111
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
112 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
113
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
114 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
115 public int getCompactPixelColor(byte[] bytes, int index) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
116 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
117 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
118 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
119
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
120 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
121 public void fillColorBitmapWithColor(int[] decodedBitmap,
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
122 int decodedOffset, int rlength, int color) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
123 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
124
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
125 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
126
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
127 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
128 public void drawColoredBitmap(int[] decodedBitmap, int tileX, int tileY,
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
129 int tileWidth, int tileHeight) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
130 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
131
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
132 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
133
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
134 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
135 public int drawCompactBytes(byte[] bytes, int offset, int tileX, int tileY,
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
136 int tileWidth, int tileHeight) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
137 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
138 return 0;
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
139 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
140
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
141 @Override
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
142 public void decodeCursorPosition(FramebufferUpdateRectangle rect) {
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
143 // TODO Auto-generated method stub
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
144
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
145 }
0c08cdc4b572 Create AbstractRenderer.java
one
parents: 26
diff changeset
146
26
73b13bc335c2 add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff changeset
147 }