major changes, moving pgraphics stuff into papplet

This commit is contained in:
benfry
2004-07-16 03:59:45 +00:00
parent b8e7f63588
commit e02fb770ae
9 changed files with 1252 additions and 1292 deletions

View File

@@ -27,7 +27,6 @@ package processing.core;
import java.io.*;
import java.util.*;
import java.util.zip.*;
// value[] could be used to build a char to byte mapping table
@@ -124,7 +123,8 @@ public class PFont implements PConstants {
// can this throw an exception instead?
public PFont(String filename, PGraphics parent) throws IOException {
/*
public PFont(String filename, PApplet parent) throws IOException {
//this.parent = parent;
//this.valid = false;
@@ -141,8 +141,17 @@ public class PFont implements PConstants {
cached = false;
size();
}
*/
/*
public PFont(InputStream input) throws IOException {
read(input);
//cached = false;
//size();
}
*/
public void write(OutputStream output) throws IOException {
DataOutputStream os = new DataOutputStream(output);
@@ -179,7 +188,8 @@ public class PFont implements PConstants {
//private void load_vlw_font(String filename) throws IOException {
public void read(InputStream input) throws IOException {
//public void read(InputStream input) throws IOException {
public PFont(InputStream input) throws IOException {
DataInputStream is = new DataInputStream(input);
charCount = is.readInt();
@@ -257,6 +267,8 @@ public class PFont implements PConstants {
}
//System.out.println();
}
cached = false;
size();
}