Mercurial > hg > Applications > TreeVNC
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 |
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 | 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 | 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 | 7 import com.glavsoft.transport.Reader; |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff
changeset
|
8 |
59 | 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 | 24 @Override |
25 public void copyRect(int srcX, int srcY, FramebufferUpdateRectangle rect) { | |
26 // TODO Auto-generated method stub | |
27 | |
28 } | |
29 | |
30 @Override | |
31 public int readPixelColor(Reader reader) throws TransportException { | |
32 // TODO Auto-generated method stub | |
33 return 0; | |
34 } | |
35 | |
36 @Override | |
37 public void fillRect(int i, int tileX, int tileY, int tileWidth, | |
38 int tileHeight) { | |
39 // TODO Auto-generated method stub | |
40 | |
41 } | |
42 | |
43 @Override | |
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 | 46 } |
47 | |
48 @Override | |
560 | 49 public int getBytesPerCPixel() { |
50 return bytePerPixcel; | |
51 } | |
52 | |
53 @Override | |
30 | 54 public void drawBytes(byte[] bytes, int x, int y, int width, int height) { |
55 // TODO Auto-generated method stub | |
56 | |
57 } | |
58 | |
59 @Override | |
60 public int getPixelColor(byte[] buffer, int i) { | |
61 // TODO Auto-generated method stub | |
62 return 0; | |
63 } | |
64 | |
65 @Override | |
66 public void createCursor(int[] cursorPixels, FramebufferUpdateRectangle rect) { | |
67 // TODO Auto-generated method stub | |
68 | |
69 } | |
70 | |
71 @Override | |
72 public void fillRect(int color, FramebufferUpdateRectangle rect) { | |
73 // TODO Auto-generated method stub | |
74 | |
75 } | |
76 | |
77 @Override | |
78 public int getBytesPerPixelSignificant() { | |
79 // TODO Auto-generated method stub | |
80 return 0; | |
81 } | |
82 | |
83 @Override | |
84 public int readTightPixelColor(Reader reader) { | |
85 // TODO Auto-generated method stub | |
86 return 0; | |
87 } | |
88 | |
89 @Override | |
90 public int drawTightBytes(byte[] buffer, int i, int x, int y, int width, | |
91 int height) { | |
92 return 0; | |
93 } | |
94 | |
95 @Override | |
96 public void drawBytesWithPalette(byte[] buffer, | |
97 FramebufferUpdateRectangle rect, int[] palette) { | |
98 // TODO Auto-generated method stub | |
99 | |
100 } | |
101 | |
102 @Override | |
103 public ColorDecoder getColorDecoder() { | |
104 // TODO Auto-generated method stub | |
105 return null; | |
106 } | |
107 | |
108 @Override | |
109 public void drawUncaliberedRGBLine(byte[] thisRow, int x, int i, int width) { | |
110 // TODO Auto-generated method stub | |
111 | |
112 } | |
113 | |
114 @Override | |
115 public int getCompactPixelColor(byte[] bytes, int index) { | |
116 // TODO Auto-generated method stub | |
117 return 0; | |
118 } | |
119 | |
120 @Override | |
121 public void fillColorBitmapWithColor(int[] decodedBitmap, | |
122 int decodedOffset, int rlength, int color) { | |
123 // TODO Auto-generated method stub | |
124 | |
125 } | |
126 | |
127 @Override | |
128 public void drawColoredBitmap(int[] decodedBitmap, int tileX, int tileY, | |
129 int tileWidth, int tileHeight) { | |
130 // TODO Auto-generated method stub | |
131 | |
132 } | |
133 | |
134 @Override | |
135 public int drawCompactBytes(byte[] bytes, int offset, int tileX, int tileY, | |
136 int tileWidth, int tileHeight) { | |
137 // TODO Auto-generated method stub | |
138 return 0; | |
139 } | |
140 | |
141 @Override | |
142 public void decodeCursorPosition(FramebufferUpdateRectangle rect) { | |
143 // TODO Auto-generated method stub | |
144 | |
145 } | |
146 | |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
diff
changeset
|
147 } |