Sets the font. Also writes font properties for serialization.
(Font font)
| 4870 | |
| 4871 | /** Sets the font. Also writes font properties for serialization. */ |
| 4872 | @AstroImageJ(reason = "Implement IPlotObject for Vector Plot saving", modified = true) |
| 4873 | public void setFont(Font font) { |
| 4874 | if (font == this.font) return; |
| 4875 | this.font = font; |
| 4876 | if (font == null) { |
| 4877 | fontFamily = null; |
| 4878 | } else { |
| 4879 | fontFamily = font.getFamily(); |
| 4880 | flags = (flags & ~FONT_STYLE_MASK) | font.getStyle(); |
| 4881 | fontSize = font.getSize2D(); |
| 4882 | } |
| 4883 | } |
| 4884 | |
| 4885 | @Override |
| 4886 | @AstroImageJ(reason = "Implement IPlotObject for Vector Plot saving", modified = true) |
no test coverage detected