Top Description Fields Constructors Methods
com.sun.glass.ui.win

public Class WinHeaderButtonOverlay

extends HeaderButtonOverlay
Class Inheritance
Imports
com.sun.glass.ui.HeaderButtonOverlay, com.sun.javafx.binding.StringConstant, javafx.beans.value.ObservableValue, javafx.scene.Scene, javafx.scene.layout.HeaderButtonType, javafx.stage.Window

Windows-specific version of HeaderButtonOverlay that tweaks the scaling of header button glyphs.

Field Summary

Modifier and TypeField and Description
private static final String
private static final double[][]
SCALE_FACTORS

These are additional scale factors for the header button glyphs at various DPI scales to account for differences in the way the glyphs are rendered by JavaFX and Windows.

Constructor Summary

AccessConstructor and Description
public
WinHeaderButtonOverlay(boolean modalOrOwned, boolean utility, boolean rightToLeft)

Method Summary

Modifier and TypeMethod and Description
private double
getGlyphScaleFactor(double scale)

private static ObservableValue<String>
private void
updateGlyphScaleX(double scale)

private void
updateGlyphScaleY(double scale)

Inherited from com.sun.glass.ui.HeaderButtonOverlay:
buttonAtdisposegetButtonGlyphgetCssMetaDatahandleMouseEventlayoutChildrenmetricsPropertyprefButtonHeightPropertyusesMirroring

Field Detail

HEADER_BUTTONS_STYLESHEETback to summary
private static final String HEADER_BUTTONS_STYLESHEET
SCALE_FACTORSback to summary
private static final double[][] SCALE_FACTORS

These are additional scale factors for the header button glyphs at various DPI scales to account for differences in the way the glyphs are rendered by JavaFX and Windows. Slightly adjusting the scaling makes the JavaFX glyphs look more similar to the native glyphs drawn by Windows. The values must be listed in 25% increments. DPI scales outside of the listed range default to an additional scaling factor of 1.

Constructor Detail

WinHeaderButtonOverlayback to summary
public WinHeaderButtonOverlay(boolean modalOrOwned, boolean utility, boolean rightToLeft)

Method Detail

getGlyphScaleFactorback to summary
private double getGlyphScaleFactor(double scale)
getStylesheetback to summary
private static ObservableValue<String> getStylesheet()
updateGlyphScaleXback to summary
private void updateGlyphScaleX(double scale)
updateGlyphScaleYback to summary
private void updateGlyphScaleY(double scale)