mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
working on new Table class setup
This commit is contained in:
@@ -5761,7 +5761,8 @@ public class PApplet extends Applet
|
||||
|
||||
|
||||
public Table createTable() {
|
||||
return new Table(this);
|
||||
// return new Table(this);
|
||||
return new Table();
|
||||
}
|
||||
|
||||
|
||||
@@ -5779,7 +5780,8 @@ public class PApplet extends Applet
|
||||
|
||||
public Table loadTable(String filename, String options) {
|
||||
try {
|
||||
return new Table(this, filename, options);
|
||||
// return new Table(this, filename, options);
|
||||
return new Table(createInput(filename), options);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
@@ -5787,11 +5789,30 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
|
||||
public void saveTable(Table table, String filename) {
|
||||
saveTable(table, filename, null);
|
||||
}
|
||||
|
||||
|
||||
public void saveTable(Table table, String filename, String options) {
|
||||
try {
|
||||
table.save(saveFile(filename), options);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// static public Table loadTable(File file) {
|
||||
// return new Table(this, file);
|
||||
// }
|
||||
|
||||
|
||||
static public String[] fixOptions(String options) {
|
||||
return options == null ? new String[0] : options.split("\\s*,\\s*");
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
+582
-583
File diff suppressed because it is too large
Load Diff
@@ -12,4 +12,15 @@ public interface TableRow {
|
||||
public float getFloat(String columnName);
|
||||
public double getDouble(int column);
|
||||
public double getDouble(String columnName);
|
||||
|
||||
public void setString(int column, String value);
|
||||
public void setString(String columnName, String value);
|
||||
public void setInt(int column, int value);
|
||||
public void setInt(String columnName, int value);
|
||||
public void setLong(int column, long value);
|
||||
public void setLong(String columnName, long value);
|
||||
public void setFloat(int column, float value);
|
||||
public void setFloat(String columnName, float value);
|
||||
public void setDouble(int column, double value);
|
||||
public void setDouble(String columnName, double value);
|
||||
}
|
||||
|
||||
+7
-8
@@ -1,6 +1,10 @@
|
||||
0216 core
|
||||
X Add clear() to replace background(0, 0, 0, 0)
|
||||
X http://code.google.com/p/processing/issues/detail?id=1446
|
||||
o add loadType() and saveType()... get working with shapes, etc
|
||||
X heading2D()? weird.. changed to heading()
|
||||
X http://toxiclibs.org/docs/core/toxi/geom/Vec3D.html
|
||||
X http://code.google.com/p/processing/issues/detail?id=987
|
||||
|
||||
|
||||
PShape s = createShape();
|
||||
@@ -131,12 +135,8 @@ _ http://code.google.com/p/processing/issues/detail?id=1407
|
||||
_ add "CGAffineTransformInvert: singular matrix" problem to the Wiki
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1363
|
||||
|
||||
_ heading2D()? weird.. angle?
|
||||
_ http://toxiclibs.org/docs/core/toxi/geom/Vec3D.html
|
||||
_ http://code.google.com/p/processing/issues/detail?id=987
|
||||
|
||||
_ "translate, or this variation of it" when using text(s, x, y, z) accidentally
|
||||
_ change to be th text command
|
||||
_ change to be the text command
|
||||
|
||||
_ OutOfMemory in image()
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1353
|
||||
@@ -146,7 +146,7 @@ _ http://code.google.com/p/processing/issues/detail?id=1262
|
||||
|
||||
_ hint(OPENGL_ERRORS) should be the opposite to enable the reporting, no?
|
||||
|
||||
_ fillMode(NONZERO) and fillMode(ODD) to replace sold(boolean)?
|
||||
_ fillMode(NONZERO) and fillMode(ODD) to replace solid(boolean)?
|
||||
|
||||
keeping these public for now
|
||||
get/setNormal
|
||||
@@ -187,8 +187,6 @@ _ toString(-1)? a new method?
|
||||
_ format(2), format(4)... format() -> default to 2 params
|
||||
_ get back to PhiLho once finished
|
||||
|
||||
_ add loadType() and saveType()... get working with shapes, etc
|
||||
|
||||
api to be fixed/removed
|
||||
_ remove PImage.delete() and friends from PImage, Movie, etc.
|
||||
_ delete()/dispose() being used in the movie
|
||||
@@ -620,6 +618,7 @@ _ before rewriting all of createInput()
|
||||
|
||||
LATER (post 2.0)
|
||||
|
||||
_ create PVec2D and PVec3D as separate classes
|
||||
_ gui priorities
|
||||
_ + Label
|
||||
_ + Button
|
||||
|
||||
@@ -16,6 +16,9 @@ X make sure javadoc builds and uploads properly
|
||||
X error checker broken in experimental mode (fix from Manindra)
|
||||
X http://code.google.com/p/processing/issues/detail?id=1449
|
||||
|
||||
_ Color coding for if/else in Processing IDE doesn't match
|
||||
_ http://code.google.com/p/processing/issues/detail?id=1457
|
||||
|
||||
earlier
|
||||
X include debug mode as 'experimental'?
|
||||
X DebugMode throwing exception about breakpoints when trying to save
|
||||
|
||||
Reference in New Issue
Block a user