From 0602b6f7aae655ae32d1280395f58937bbdaff8d Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 7 Jun 2009 21:08:29 +0000 Subject: [PATCH] change private to protected so that text functions can be subclassed --- core/src/processing/core/PGraphics.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index fbee90fac..c3ff52828 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -2914,8 +2914,8 @@ public class PGraphics extends PImage implements PConstants { * Emit a sentence of text, defined as a chunk of text without any newlines. * @param stop non-inclusive, the end of the text in question */ - private boolean textSentence(char[] buffer, int start, int stop, - float boxWidth, float spaceWidth) { + protected boolean textSentence(char[] buffer, int start, int stop, + float boxWidth, float spaceWidth) { float runningX = 0; // Keep track of this separately from index, since we'll need to back up @@ -2980,7 +2980,7 @@ public class PGraphics extends PImage implements PConstants { } - private void textSentenceBreak(int start, int stop) { + protected void textSentenceBreak(int start, int stop) { if (textBreakCount == textBreakStart.length) { textBreakStart = PApplet.expand(textBreakStart); textBreakStop = PApplet.expand(textBreakStop);