MCPcopy Index your code
hub / github.com/processing/processing / Text

Method Text

core/src/processing/core/PShapeSVG.java:1703–1718  ·  view source on GitHub ↗
(PShapeSVG parent, XML properties)

Source from the content-addressed store, hash-verified

1701 protected PFont font;
1702
1703 public Text(PShapeSVG parent, XML properties) {
1704 super(parent, properties, true);
1705
1706 // get location
1707 float x = Float.parseFloat(properties.getString("x"));
1708 float y = Float.parseFloat(properties.getString("y"));
1709
1710 if (matrix == null) {
1711 matrix = new PMatrix2D();
1712 }
1713 matrix.translate(x, y);
1714
1715 family = GROUP;
1716
1717 font = parseFont(properties);
1718 }
1719 }
1720
1721

Callers

nothing calls this directly

Calls 4

parseFloatMethod · 0.80
parseFontMethod · 0.80
getStringMethod · 0.65
translateMethod · 0.65

Tested by

no test coverage detected