MCPcopy Index your code
hub / github.com/benfry/processing4 / textLineAlignImpl

Method textLineAlignImpl

core/src/processing/core/PGraphics.java:5092–5102  ·  view source on GitHub ↗

Handles placement of a text line, then calls textLineImpl to actually render at the specific point.

(char[] buffer, int start, int stop,
                                   float x, float y)

Source from the content-addressed store, hash-verified

5090 * to actually render at the specific point.
5091 */
5092 protected void textLineAlignImpl(char[] buffer, int start, int stop,
5093 float x, float y) {
5094 if (textAlign == CENTER) {
5095 x -= textWidthImpl(buffer, start, stop) / 2f;
5096
5097 } else if (textAlign == RIGHT) {
5098 x -= textWidthImpl(buffer, start, stop);
5099 }
5100
5101 textLineImpl(buffer, start, stop, x, y);
5102 }
5103
5104
5105 /**

Callers 1

textMethod · 0.95

Calls 2

textWidthImplMethod · 0.95
textLineImplMethod · 0.95

Tested by

no test coverage detected