public static void setupMenuButton ( ButtonBase button , RadialMenuParams params , Node graphic , String tooltip , boolean addStyle ) { button . minWidthProperty ( ) . bind ( params . buttonSizeProperty ( ) ) ; button . minHeightProperty ( ) . bind ( params . buttonSizeProperty ( ) ) ; button . prefWidthProperty ( ) . bind ( params . buttonSizeProperty ( ) ) ; button . prefHeightProperty ( ) . bind ( params . buttonSizeProperty ( ) ) ; button . maxWidthProperty ( ) . bind ( params . buttonSizeProperty ( ) ) ; button . maxHeightProperty ( ) . bind ( params . buttonSizeProperty ( ) ) ; if ( addStyle ) { button . getStylesheets ( ) . addAll ( params . getStyleSheets ( ) ) ; } button . setId ( params . getStyleId ( ) ) ; button . getStyleClass ( ) . addAll ( params . getStyleClasses ( ) ) ; button . setGraphic ( graphic ) ; button . setTooltip ( new Tooltip ( tooltip ) ) ; }
Setup the round button .