MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / drawText

Method drawText

src/org/opensourcephysics/display/TextLine.java:671–677  ·  view source on GitHub ↗

Parse the text then draw it. @param g Graphics context @param x pixel position of the text @param y pixel position of the text @param j justification of the text

(Graphics g, int x, int y, int j)

Source from the content-addressed store, hash-verified

669 * @param j justification of the text
670 */
671 public void drawText(Graphics g, int x, int y, int j) {
672 justification = j;
673 if(g==null) {
674 return;
675 }
676 drawText(g, x, y);
677 }
678
679 Vector<TextState> vec = new Vector<TextState>(); // added by W. Christian in case a parse is called during drawing.
680

Callers 8

drawRotatedTextMethod · 0.95
drawTextImageRotatedMethod · 0.95
drawWithPixWindowsMethod · 0.80
drawWithWorldWindowsMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawItMethod · 0.80

Calls 11

parseTextMethod · 0.95
keepItSimpleMethod · 0.95
toStringMethod · 0.95
drawStringMethod · 0.80
setFontMethod · 0.65
clearMethod · 0.65
disposeMethod · 0.65
createMethod · 0.45
setColorMethod · 0.45
fillRectMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected