change private to protected so that text functions can be subclassed

This commit is contained in:
benfry
2009-06-07 21:08:29 +00:00
parent f3cf9727b6
commit 0602b6f7aa
+3 -3
View File
@@ -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);