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

Method copyState

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

Create a New Textline object copying the state of the existing object into the new one. The state of the class is the color, font, and justification ie everything but the string.

()

Source from the content-addressed store, hash-verified

274 * font, and justification ie everything but the string.
275 */
276 public TextLine copyState() {
277 return new TextLine(font, color, justification);
278 }
279
280 /**
281 * Copy the state of the parsed Textline into the existing

Callers 1

parseTextMethod · 0.45

Calls 6

getFontMethod · 0.65
getJustificationMethod · 0.65
getNameMethod · 0.65
getStyleMethod · 0.65
getSizeMethod · 0.65
getColorMethod · 0.45

Tested by

no test coverage detected