MCPcopy Create free account
hub / github.com/benfry/processing4 / rebuild

Method rebuild

app/src/processing/app/laf/PdeLabel.java:44–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44 private void rebuild() {
45 StringBuffer buffer = new StringBuffer("<html><head>");
46// if (css != null) {
47// buffer.append("<style type='text/css'>").append(css).append("</style>");
48// }
49 buffer.append("</head><body>");
50 buffer.append(message);
51// System.out.println(buffer);
52 super.setText(buffer.toString());
53 if (css != null) {
54 ((HTMLDocument) getDocument()).getStyleSheet().addRule(css);
55 }
56 /*
57 if (css != null) { // reapply the styles
58 setStyle(css);
59 }
60 */
61 }
62
63
64 public void setStyle(String css) {

Callers 2

setTextMethod · 0.95
setStyleMethod · 0.95

Calls 5

getStyleSheetMethod · 0.80
appendMethod · 0.45
setTextMethod · 0.45
toStringMethod · 0.45
getDocumentMethod · 0.45

Tested by

no test coverage detected