aboutsummaryrefslogtreecommitdiff
path: root/Week8/src/qtrees/QTree.java
diff options
context:
space:
mode:
authorCamil Staps2015-03-23 22:20:04 +0100
committerCamil Staps2015-03-23 22:20:04 +0100
commit514ddbfe1d3c1f773f911d17479094503ab26d95 (patch)
treecfccb7c1ecf00867abbe443a68f3de1c16d4808e /Week8/src/qtrees/QTree.java
parentMoved tarball w7 (diff)
Framework week 8
Diffstat (limited to 'Week8/src/qtrees/QTree.java')
-rw-r--r--Week8/src/qtrees/QTree.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/Week8/src/qtrees/QTree.java b/Week8/src/qtrees/QTree.java
new file mode 100644
index 0000000..ab11898
--- /dev/null
+++ b/Week8/src/qtrees/QTree.java
@@ -0,0 +1,34 @@
+package qtrees;
+
+import java.io.IOException;
+import java.io.Reader;
+import java.io.Writer;
+
+public class QTree {
+ QTNode root;
+
+ public QTree( Reader input ) {
+ root = readQTree( input );
+ }
+
+ public QTree( Bitmap bitmap ) {
+ root = bitmap2QTree( 0, 0, bitmap.getWidth(), bitmap );
+ }
+
+ public void fillBitmap ( Bitmap bitmap ) {
+ root.fillBitmap(0, 0, bitmap.getWidth(), bitmap);
+ }
+
+ public void writeQTree( Writer sb ) {
+ root.writeNode( sb );
+ }
+
+ private static QTNode readQTree( Reader input ) {
+ return null;
+ }
+
+ public static QTNode bitmap2QTree( int x, int y, int width, Bitmap bitmap ) {
+ return null;
+ }
+
+}