+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the GNU General Public License version 2 ("the License").
+// You may not use this file except in compliance with the License.
+
// FIXME
-// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
package org.ibex.graphics;
import java.util.*;
static final byte TYPE_QUADRADIC = 4;
public static Path parse(String s) { return Tokenizer.parse(s); }
+
+ // FIXME: hack
+ private String toString;
+ private Path(String s) { this.toString = s; }
+ public String toString() { return toString; }
+
public static class Tokenizer {
// FIXME: check array bounds exception for improperly terminated string
String s;
public static Path parse(String s) {
if (s == null) return null;
Tokenizer t = new Tokenizer(s);
- Path ret = new Path();
+ Path ret = new Path(s);
char last_command = 'M';
boolean first = true;
while(t.hasMoreTokens()) {