MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getFont

Method getFont

ij/src/main/java/ij/gui/Plot.java:1322–1328  ·  view source on GitHub ↗

Gets the font for xLabel ('x'), yLabel('y'), numbers ('f' for 'frame') or the legend ('l'). Returns null if the given PlotObject does not exist or its font is null

(char c)

Source from the content-addressed store, hash-verified

1320 /** Gets the font for xLabel ('x'), yLabel('y'), numbers ('f' for 'frame') or the legend ('l').
1321 * Returns null if the given PlotObject does not exist or its font is null */
1322 public Font getFont(char c) {
1323 PlotObject plotObject = pp.getPlotObject(c);
1324 if (plotObject != null)
1325 return plotObject.getFont();
1326 else
1327 return null;
1328 }
1329
1330 /** Sets the font for xLabel ('x'), yLabel('y'), numbers ('f' for 'frame') or the legend ('l') */
1331 public void setFont(char c, Font font) {

Callers

nothing calls this directly

Calls 2

getFontMethod · 0.95
getPlotObjectMethod · 0.80

Tested by

no test coverage detected