public void setSize ( final double size ) { this . size = size ; stack . setPrefSize ( size , size ) ; text . setFont ( Font . font ( text . getFont ( ) . getFamily ( ) , FontWeight . BOLD , size / 2 ) ) ; svgIcon . setSize ( size ) ; stack . requestLayout ( ) ; }
Method can be used to set the size of this component .