mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
bug fixes inside Table as they relate to inserting/adding columns
This commit is contained in:
@@ -741,15 +741,26 @@ public class Table implements Iterable<Table.Row> {
|
||||
}
|
||||
if (columnTitles != null) {
|
||||
columnTitles = PApplet.splice(columnTitles, title, index);
|
||||
columnIndices = null;
|
||||
}
|
||||
columnTypes = PApplet.splice(columnTypes, type, index);
|
||||
|
||||
columnCategories = (HashMapBlows[])
|
||||
PApplet.splice(columnCategories, new HashMapBlows(), index);
|
||||
// columnCategories = (HashMapBlows[])
|
||||
// PApplet.splice(columnCategories, new HashMapBlows(), index);
|
||||
HashMapBlows[] catTemp = new HashMapBlows[columns.length + 1];
|
||||
// Faster than arrayCopy for a dozen or so entries
|
||||
for (int i = 0; i < index; i++) {
|
||||
catTemp[i] = columnCategories[i];
|
||||
}
|
||||
catTemp[index] = new HashMapBlows();
|
||||
for (int i = index; i < columns.length; i++) {
|
||||
catTemp[i+1] = columnCategories[i];
|
||||
}
|
||||
columnCategories = catTemp;
|
||||
|
||||
Object[] temp = new Object[columns.length + 1];
|
||||
System.arraycopy(columns, 0, temp, 0, index);
|
||||
System.arraycopy(columns, index, temp, index+1, (columns.length - index) + 1);
|
||||
System.arraycopy(columns, index, temp, index+1, columns.length - index);
|
||||
columns = temp;
|
||||
|
||||
switch (type) {
|
||||
|
||||
@@ -9,6 +9,7 @@ X better to learn noSmooth() later
|
||||
X repeatedly calling texture() with new image raises memory error
|
||||
X http://code.google.com/p/processing/issues/detail?id=806
|
||||
X adding anti-alias methods so that FSAA can set up properly
|
||||
X several bug fixes inside Table as they relate to inserting/adding columns
|
||||
|
||||
earlier
|
||||
o text using textMode(SCREEN) not displayed in Processing 1.5.1
|
||||
@@ -25,11 +26,20 @@ o along with 90, 180 and 270 versions of it as well
|
||||
o tie to glDrawPixels.. how to clear matrix properly for that?
|
||||
X maybe just disable this for JAVA2D cuz it's silly?
|
||||
|
||||
_ urlEncode() and urlDecode()
|
||||
|
||||
_ pause()/resume() need to work on the desktop side as well
|
||||
|
||||
_ Wishlist for the new XML class in Processing 2.0
|
||||
_ http://code.google.com/p/processing/issues/detail?id=904
|
||||
|
||||
_ add loadTable()..
|
||||
|
||||
_ delay() remove or no? (keep adding it back...)
|
||||
|
||||
_ do we need an option to disable XML whitespace?
|
||||
_ should this be the default to be more like old XML?
|
||||
|
||||
_ add() to add things to lists, sum() for the math (sum is used less after all)
|
||||
|
||||
_ consider using BufferStrategy to improve performance
|
||||
|
||||
Reference in New Issue
Block a user