Class MacUtilities
java.lang.Object
org.tentackle.fx.MacUtilities
Utilities for Mac OS X.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javafx.scene.image.ImageViewcreateImageView(org.kordamp.ikonli.javafx.FontIcon fontIcon) Creates anImageViewfrom aFontIcon.static MacUtilitiesThe singleton.protected voidtoSystemMenu(javafx.scene.control.Menu menu) ConvertsFontIcons toImageViews.voidtoSystemMenuBar(javafx.scene.control.MenuBar menuBar) Installs a menubar as a system menu bar.
Used on macOS to convertFontIcons toImageViews since font icons cannot be displayed in the system menu.
-
Constructor Details
-
MacUtilities
public MacUtilities()Creates the MacUtilities.
-
-
Method Details
-
getInstance
-
toSystemMenuBar
public void toSystemMenuBar(javafx.scene.control.MenuBar menuBar) Installs a menubar as a system menu bar.
Used on macOS to convertFontIcons toImageViews since font icons cannot be displayed in the system menu. -
toSystemMenu
protected void toSystemMenu(javafx.scene.control.Menu menu) ConvertsFontIcons toImageViews.- Parameters:
menu- the menu
-
createImageView
protected javafx.scene.image.ImageView createImageView(org.kordamp.ikonli.javafx.FontIcon fontIcon) Creates anImageViewfrom aFontIcon.- Parameters:
fontIcon- the font icon- Returns:
- the image view
-