/** * Sets the text painter of this text node. If the specified text * painter is null, this text node will use its default text * painter (StrokingTextPainter.getInstance()). * * @param textPainter the text painter to use */ public void setTextPainter(TextPainter textPainter) { if (textPainter == null) { this.textPainter = StrokingTextPainter.getInstance(); } else { this.textPainter = textPainter; } }
/** * Sets the text painter of this text node. If the specified text * painter is null, this text node will use its default text * painter (StrokingTextPainter.getInstance()). * * @param textPainter the text painter to use */ public void setTextPainter(TextPainter textPainter) { if (textPainter == null) { this.textPainter = StrokingTextPainter.getInstance(); } else { this.textPainter = textPainter; } }
/** * Sets the text painter of this text node. If the specified text * painter is null, this text node will use its default text * painter (StrokingTextPainter.getInstance()). * * @param textPainter the text painter to use */ public void setTextPainter(TextPainter textPainter) { if (textPainter == null) { this.textPainter = StrokingTextPainter.getInstance(); } else { this.textPainter = textPainter; } }