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

Method nonNullFont

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

Returns the first font of the list that is not null, or defaultFont if both are null

(Font font1, Font font2)

Source from the content-addressed store, hash-verified

2553
2554 /** Returns the first font of the list that is not null, or defaultFont if both are null */
2555 Font nonNullFont(Font font1, Font font2) {
2556 if (font1 != null)
2557 return font1;
2558 else if (font2 != null)
2559 return font2;
2560 else return
2561 defaultFont;
2562 }
2563
2564 /** Zooms to a range given in pixels and updates the image */
2565 void zoomToRect(Rectangle r) {

Callers 6

PlotMethod · 0.95
toStreamMethod · 0.95
setFontMethod · 0.95
setAxisLabelFontMethod · 0.95
drawMethod · 0.95
makeMarginValuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected