Package org.adoptopenjdk.jitwatch.util
Class UserInterfaceUtil
- java.lang.Object
-
- org.adoptopenjdk.jitwatch.util.UserInterfaceUtil
-
public final class UserInterfaceUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classUserInterfaceUtil.TooltipBinding
-
Field Summary
Fields Modifier and Type Field Description static booleanADD_CLOSE_DECORATIONstatic java.lang.StringFONT_MONOSPACE_FAMILYstatic java.lang.StringFONT_MONOSPACE_SIZEstatic javafx.scene.image.ImageIMAGE_CAMERAstatic javafx.scene.image.ImageIMAGE_TICKprivate static com.chrisnewland.freelogj.Loggerloggerprivate static ObservableResourceFactoryRESOURCE_FACTORYprivate static java.lang.StringRESOURCE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description privateUserInterfaceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigureLocale(java.util.Locale locale)static javafx.scene.control.ButtoncreateButton(java.lang.String langKey, javafx.beans.value.ObservableValue<?>... observables)static javafx.scene.control.CheckBoxcreateCheckBox(java.lang.String langKey)static javafx.scene.control.LabelcreateLabel(java.lang.String langKey)static <S,T>
javafx.scene.control.TableColumn<S,T>createTableColumn(java.lang.String langKey)static doublefix(double pixel)static javafx.scene.paint.ColorgetColourForBytecodeAnnotation(BCAnnotationType type)static javafx.scene.ScenegetScene(javafx.scene.Parent rootNode, double width, double height)static javafx.scene.control.ButtongetSnapshotButton(javafx.scene.Scene scene, java.lang.String filenamePrefix)static voidinitMacFonts()private static javafx.scene.image.ImageloadResource(java.lang.String path)private static voidtakeSnapShot(javafx.scene.Scene scene, java.lang.String filenamePrefix)
-
-
-
Field Detail
-
logger
private static final com.chrisnewland.freelogj.Logger logger
-
RESOURCE_NAME
private static final java.lang.String RESOURCE_NAME
- See Also:
- Constant Field Values
-
RESOURCE_FACTORY
private static final ObservableResourceFactory RESOURCE_FACTORY
-
IMAGE_TICK
public static final javafx.scene.image.Image IMAGE_TICK
-
IMAGE_CAMERA
public static final javafx.scene.image.Image IMAGE_CAMERA
-
FONT_MONOSPACE_FAMILY
public static final java.lang.String FONT_MONOSPACE_FAMILY
-
FONT_MONOSPACE_SIZE
public static final java.lang.String FONT_MONOSPACE_SIZE
-
ADD_CLOSE_DECORATION
public static final boolean ADD_CLOSE_DECORATION
-
-
Method Detail
-
configureLocale
public static void configureLocale(java.util.Locale locale)
-
createButton
public static javafx.scene.control.Button createButton(java.lang.String langKey, javafx.beans.value.ObservableValue<?>... observables)
-
createCheckBox
public static javafx.scene.control.CheckBox createCheckBox(java.lang.String langKey)
-
createLabel
public static javafx.scene.control.Label createLabel(java.lang.String langKey)
-
createTableColumn
public static <S,T> javafx.scene.control.TableColumn<S,T> createTableColumn(java.lang.String langKey)
-
loadResource
private static javafx.scene.image.Image loadResource(java.lang.String path)
-
getSnapshotButton
public static javafx.scene.control.Button getSnapshotButton(javafx.scene.Scene scene, java.lang.String filenamePrefix)
-
takeSnapShot
private static void takeSnapShot(javafx.scene.Scene scene, java.lang.String filenamePrefix)
-
getScene
public static javafx.scene.Scene getScene(javafx.scene.Parent rootNode, double width, double height)
-
getColourForBytecodeAnnotation
public static javafx.scene.paint.Color getColourForBytecodeAnnotation(BCAnnotationType type)
-
fix
public static double fix(double pixel)
-
initMacFonts
public static void initMacFonts()
-
-