Sets the font for all following addLabel() etc. operations. The currently set font when displaying the plot determines the font of all labels & numbers. After the plot has been shown, sets the font for the numbers and the legend (if present); use setFont(char, Font) to set these fonts individually
(Font font)
| 1250 | * use setFont(char, Font) to set these fonts individually. |
| 1251 | * If the plot is hown already, call update() thereafter to make the change visible. */ |
| 1252 | public void setFont(Font font) { |
| 1253 | if (font == null) font = defaultFont; |
| 1254 | currentFont = font; |
| 1255 | if (plotDrawn) { |
| 1256 | pp.frame.setFont(font); |
| 1257 | if (pp.legend != null) |
| 1258 | pp.legend.setFont(font); |
| 1259 | } |
| 1260 | } |
| 1261 | |
| 1262 | /** Sets the font size and style for all following addLabel() etc. operations. This leaves |
| 1263 | * the font name and style of the previously used fonts unchanged. The currently set font |
no test coverage detected