api cleanup

This commit is contained in:
benfry
2005-04-09 02:39:48 +00:00
parent f5ba2276ac
commit d3138f1226
7 changed files with 187 additions and 184 deletions

View File

@@ -674,9 +674,9 @@ public class PGraphics2 extends PGraphics {
//////////////////////////////////////////////////////////////
public void push() {
public void pushMatrix() {
if (transformCount == transformStack.length) {
throw new RuntimeException("push() cannot use push more than " +
throw new RuntimeException("pushMatrix() cannot use push more than " +
transformStack.length + " times");
}
transformStack[transformCount] = g2.getTransform();
@@ -684,9 +684,10 @@ public class PGraphics2 extends PGraphics {
}
public void pop() {
public void popMatrix() {
if (transformCount == 0) {
throw new RuntimeException("missing a pop() to go with that push()");
throw new RuntimeException("missing a popMatrix() " +
"to go with that pushMatrix()");
}
transformCount--;
g2.setTransform(transformStack[transformCount]);