public class Windows8Theme extends Windows10Theme
The theme is flatter than previous Windows UI, but with more finery than Windows 10. Because, with the exception of windows decorations, the sizes and general aspects of the widgets are similar to Windows 10, we extend this class. Like its super class, this theme also very sensitive to mouse hovering movements, almost all components will highlight when the mouse pointer hovers over them.
ClassicTheme.TextLookAndFeelImplTheme.TextLookAndFeel| Modifier and Type | Field and Description |
|---|---|
private static java.awt.Color |
BACKGROUND_3DFACE_COLOR
Main background color for 3D objects.
|
private static java.awt.Color |
BUTTON_FOREGROUND_COLOR
The test colors on enabled buttons.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_ACTIVE
The background color of a caption button when windows is not active (same a border).
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_DOWN
The background color of a caption button (except close) when down/pressed.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_HIGHLIGHT
The background color of a caption button (except close) when highlighted/hovered.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_INACTIVE
The background color of a caption button when windows is not active (same a border).
|
private static java.awt.Color |
CAPTION_BUTTON2_COLOR_ACTIVE
The background color of the Close caption button when windows is not active.
|
private static java.awt.Color |
CAPTION_BUTTON2_COLOR_DOWN
The background color of the Close caption button when down/pressed.
|
private static java.awt.Color |
CAPTION_BUTTON2_COLOR_HIGHLIGHT
The background color of the Close caption button when highlighted/hovered.
|
private java.util.Map<java.lang.Integer,ColorRgb> |
defaultColors
Cached map with default system colors.
|
private static java.awt.Color |
HIGHLIGHT_BACKGROUND_COLOR
Background color for highlighted text (Eg.
|
private static java.awt.Color |
MENU_BACKGROUND_SELECTED_COLOR
Background color for highlighted menu items.
|
private static java.awt.Color |
MENU_BAR_BACKGROUND_COLOR
Background color for menu-menus.
|
private static java.awt.Color |
MENU_FOREGROUND_COLOR
Foreground color for (all) menus.
|
private static java.awt.Color |
MENU_POPUP_BACKGROUND_COLOR
Background color for drop-down and popup menus.
|
static java.lang.String |
NAME
Short name
|
private static java.awt.Color |
SCROLL_BORDER_COLOR
The color of the border of a scrollbar.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_DISABLED
The background color of the of a scrollbar button when disabled.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_HIGHLIGHT
The background color of the of a scrollbar button when mouse is hovering it.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_NORMAL
The background color of the of a scrollbar button in normal state.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_PRESSED
The background color of the of a scrollbar button when pressed.
|
private static java.awt.Color |
SCROLL_CORNER_COLOR
The color of the corner of a scrollbar.
|
private static java.awt.Color |
SCROLL_GAUGE_COLOR
The color of the background of a scrollbar.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_HIGHLIGHT
The color of the of a scrollbar thumb/slider when mouse is hovering it.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_NORMAL
The color of the of a scrollbar thumb/slider in normal state.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_PRESSED
The color of the of a scrollbar thumb/slider when pressed.
|
private static java.awt.Color |
TOOLTIP_BACKGROUND_COLOR
Background color for tooltips.
|
private static int |
WINDOW_BORDER_WIDTH
The width of the border in this Theme.
|
private static java.awt.Color |
WINDOW_TITLE_COLOR_ACTIVE
The foreground color of the titlebar when window is active.
|
private static java.awt.Color |
WINDOW_TITLE_COLOR_INACTIVE
The foreground color of the titlebar when window is NOT active.
|
private static java.awt.Color |
WINDOW_TITLEBAR_COLOR_ACTIVE
The background color of the titlebar when window is active.
|
private static java.awt.Color |
WINDOW_TITLEBAR_COLOR_INACTIVE
The background color of the titlebar when window is NOT active.
|
private static java.awt.Color |
WORKSPACE_BACKGROUND_COLOR
Background color of the workspace
|
COMBOBOX_BUTTON_WIDTH, MENU_CHECKMARK_WIDTH, MENU_LEFT_PADCELLS_NEW_LINE, LOG, NON_SORTABLE_COLUMN_LABEL_COLOR, ROW_TOGGLE_SIZE, TREELIST_CAPTION_SELECTED_COLOR, TREELIST_CAPTION_SELECTED_TEXT_COLOR, TREELIST_COLUMN_CAPTION_LEFT_PADDING, TREELIST_COLUMN_CAPTION_Y_PADDING, TREELIST_COLUMN_SORT_ICON_WIDTH, TREELIST_COLUMN_SPACER_COLOR, TREELIST_COLUMN_SPACING, TREEVIEW_EXPAND_ICON_OFFSET, TREEVIEW_EXPAND_ICON_SIZE, TREEVIEW_INNER_PADDINGALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_NONE, ALIGN_RIGHT, ALIGN_TOP, COMMON_RESOURCES_PATH, HORIZONTAL_ALIGN_MASK, VERTICAL_ALIGN_MASK| Constructor and Description |
|---|
Windows8Theme() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBrowseColumnLabelBorder(BrowseColumnGuiImpl column,
GuiDriver gd,
int xOffset,
int yOffset,
int w,
int h)
Draw label-style rectangle.
|
protected void |
drawBrowseColumnMarker(GuiDriver gd,
boolean selected,
int topOffset,
int w,
int h)
Draw browse row marker column resctangle.
|
void |
drawBrowseTitlePanel(BrowseGuiImpl browse,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draw the title panel of a
BrowseGuiImpl widget. |
void |
drawButton(AbstractWidget<GuiOutputManager> widget,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int width,
int height,
boolean flat,
boolean highlighted,
boolean isDefault,
boolean mouseOver,
boolean pressed,
boolean keyPressed,
boolean noFocus,
boolean hasPrepackagedImages,
boolean existsFocusByKeyboard,
MnemonicInfo mnemonic,
java.lang.String textLabel,
boolean useResolverColors,
ImageWrapper<?> img,
boolean convert3D,
boolean transparent,
int imgWidth,
int imgHeight,
int imgOffsetX,
int imgOffsetY,
ColorRgb frameBgColor)
Draw a button.
|
void |
drawCaptionButton(CaptionButton button,
GuiDriver gd,
int x,
int y,
int width,
int height)
Renders a
CaptionButton. |
void |
drawComboBoxButton(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean pressed,
boolean enabled,
boolean hasFocus,
boolean mouseOver,
boolean isDropDown,
boolean dropDownActive)
Renders the opening button of the combo box widget.
|
void |
drawComboBoxEntryField(ComboBoxGuiImpl combo,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
FontDetails<?> font,
boolean pressed,
boolean enabled,
boolean hover,
boolean existsFocusByKeyboard)
Renders the entry field of a combo box.
|
void |
drawComboBoxFieldBorder(ComboBoxGuiImpl combo,
GuiDriver gd,
int x,
int y,
int width,
int height,
boolean pressed,
boolean enabled,
boolean hover)
Renders the border (and possibly the background) of the combo box widget.
|
void |
drawFileChooserThumbnailBackground(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean selected,
boolean hover,
boolean focus)
Draws a File or Folder Thumbnail of from a file/dir chooser dialog.
|
void |
drawFillInBorder(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
boolean border3D,
boolean hasFocus,
boolean hover)
Renders the border (and possibly the background) of the fill-in widget.
|
void |
drawMenuBackground(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean popup)
Renders the background of a menu widget.
|
void |
drawMenuItemBackground(AbstractWidget item,
GuiDriver gd,
int x,
int y,
int width,
int height,
boolean hover)
Renders the background of an item in a menu widget.
|
void |
drawMenuSeparator(GuiDriver gd,
int x,
int y,
int width,
int height)
Renders the separator line in a menu widget.
|
void |
drawScrollBarButton(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
ScrollBar.Position pos,
boolean horizontal,
boolean enabled,
boolean pressed,
boolean highlighted)
Renders a button of the scrollbar widget.
|
void |
drawScrollBarGauge(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
boolean horizontal)
Renders the gauge (background) of the scrollbar widget.
|
void |
drawScrollBarThumb(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
boolean pressed,
boolean hover,
boolean horizontal)
Renders the thumb/slider of the scrollbar widget.
|
void |
drawToggleBox(ToggleBoxGuiImpl cb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
boolean pressed,
boolean hover,
boolean existsFocusByKeyboard)
Renders a GUI toggle box widget.
|
void |
drawToolTip(GuiDriver gd,
int x,
int y,
int width,
int height,
FontDetails fnt,
java.lang.String text)
Draw a
ToolTip. |
void |
drawWindowBorder(GuiDriver gd,
int x,
int y,
int width,
int height,
NativeInsets border,
boolean active)
Renders borders of a top-level window.
|
void |
drawWindowTitle(GuiDriver gd,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
java.lang.String title,
boolean active)
Renders the text on the titlebar of a top-level window.
|
void |
drawWindowTitleBar(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean active)
Renders the background of the titlebar of a top-level window.
|
private void |
fillTitlebar(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean active,
boolean cleanup)
Fills the background of the titlebar of a top-level window.
|
java.lang.String |
getBinaryResourceLocation()
Obtain the location of binary resources (like pixmaps and sprites) used by this theme.
|
ColorRgb |
getBrowseCellSeparatorColor(BrowseGuiImpl browse)
Get the cell separator color.
|
int |
getCaptionButtonHeight(CaptionButtonType type,
boolean maximized)
Returns the height of a caption button on window's title bar.
|
int |
getCaptionButtonsAlignment(CaptionButtonType type)
Get the alignment of caption button for this theme.
|
int |
getCaptionButtonWidth(CaptionButtonType type,
boolean dialog)
Returns the width of a caption button on window's title bar.
|
java.util.Map<java.lang.Integer,ColorRgb> |
getDefaultSystemPalette()
Obtain the default system palette for this theme.
|
ColorRgb |
getFileChooserForegroundColor(GuiDriver gd,
boolean focused,
boolean selected,
boolean hover,
boolean filename,
boolean infoLabel,
boolean infodata)
Obtain color information needed to render the foreground of a thumbnail.
|
int |
getMenuSeparatorHeight()
Obtain the fixed height of a separator in a popup menu widget.
|
java.lang.String |
getName()
Get the name of this
Theme. |
protected ImageWrapper |
getRadioButtonImage(boolean on,
boolean enabled,
boolean hover,
boolean pressed)
Obtain the image from a radio button with specified attributes.
|
NativePoint |
getRowToggleOffset(BrowseColumnGuiImpl column,
boolean editor)
Get the offset of the in-browse toggle-box relatively to the containing cell.
|
int |
getScrollBarButtonWidth()
Obtain the size of the scroll button on the direction perpendicular to scroll direction.
|
int |
getScrollBarThumbWidth()
Obtain the thumb/slider width in a scrollbar widget.
|
int |
getSpaceBeforeButton(CaptionButtonType type)
Return the amount of space to the right of this button.
|
java.util.Map<java.lang.String,java.lang.String> |
getStandardFontTable()
Obtain the map of standard fonts specific to current
Theme, to which a key defaults,
if not overridden in the directory. |
int |
getTitleBarHeight(boolean maximized,
boolean dialog)
Returns the height of window's titleBar.
|
NativeInsets |
getWindowBorderInsets(boolean modal)
Returns the window's border insets.
|
int |
getWindowTitleAlignment()
Get the title alignment for this theme.
|
double |
layoutTitleBar(TopLevelWindow window,
Widget icon,
ClientDrivenLabel title,
CaptionButton[] buttons,
double width,
CoordinatesConversion c)
Do the layout of a titlebar.
|
protected void |
setBrowseCellBackgroundSelectionColor(GuiDriver gd,
ColorRgb unselColor)
Set the selected cell background color into the
gd GuiDriver. |
draw3DBorder, drawBrowseColumnLabelRect, drawFrameTitle, drawLineBorder, drawMenuBarElement, drawMenuItemContent, drawProgressBar, drawRadioButton, drawRectangle, drawSelectionFocus, drawSelectionListBackground, drawSelectionListItem, drawSliderBackground, drawSliderThumb, drawSliderTrack, drawStatusBar, getBrowseCellForegroundColor, getBrowseDataOffsetLeft, getBrowseLabelOffsetLeft, getBrowseMarkerArrow, getCheckBoxSize, getCheckBoxSpace, getComboBoxButtonSize, getComboBoxDropDownOffset, getComboBoxEntryShift, getComboBoxFieldExtraSpace, getDefaultFontAliases, getDialogExtraHeight, getDialogExtraWidth, getImage, getMenuBarElementMinSize, getMenuCheckmarkWidth, getMenuItemHeight, getMenuLeftPad, getMenuRightPad, getPasswordCharacter, getPngImage, getRadioButtonImageSpace, getRowToggleImage, getRowToggleSize, getScrollBarButtonHeight, getScrollBarGaugeWidth, getSliderThumbImageName, getSliderThumbRegularDimension, getSliderTicmarkColor, getTextLookAndFeel, getWindowIconAlignment, isClassic, isMouseHoverSensitive, releaseResources, setCompositeXorColordrawAlertBox, drawBrowseCell, drawBrowseCellLabel, drawBrowseCellText, drawBrowseColumnDrag, drawBrowseColumnLabel, drawBrowseColumnSetBackground, drawBrowseMarkersColumn, drawBrowseNormalColumn, drawBrowseResizingColumn, drawBrowseRowHighlight, drawCaret, drawEditorCaret, drawEditorContent, drawFillInCaret, drawLabel, drawLabelUnderline, drawRowToggleImage, drawSliderFrame, drawSliderTicMarks, drawSliderValue, drawTabBarWidget, drawTabBarWidgetItem, drawTabPageWidget, drawTabPageWidgetItem, drawText, drawTooltipWorker, drawTreeListBody, drawTreeListCaption, drawTreeListCaptionItem, drawTreeViewBody, get3DBorderOffset, getAlertBoxPadding, getBinaryResource, getBinaryResourceCommonLocation, getBrowseLabelOffsetRight, getCalendarBodyBackgroundColor, getCalendarBodyForegroundColor, getCalendarTitleBackgroundColor, getCalendarTitleForegroundColor, getCalendarTrailingBackgroundColor, getCalendarTrailingForegroundColor, getColumnBackgroundColor, getColumnLabelBackgroundColor, getHyperlinkColor, getHyperlinkFont, getImage, getMenuInsets, getMenuSmArrowWidth, getPrebuiltArrowImageSize, getRadioButtonExtraDist, getRowToggleOffsetCentered, getScrollBarIntersectionColor, getScrollBarThumbMinSize, getSelectedDayBackgroundColor, getSelectedDayForegroundColor, getSliderThumbSmallDimension, getSortArrowClipPoint, getTextLookAndFeel, getTitleBarFont, getTitleBarTextColor, getTreeViewCheckBoxWidth, getTreeViewNodeContentHorizontalOffset, getTreeViewNodeHeight, getTreeViewNodeHorizontalOffset, getTreeViewNodeImageVerticalOffset, getTreeViewNodeLabelAvailableWidth, getTreeViewNodeLabelHeight, getTreeViewNodeLabelHorizontalOffset, getTreeViewNodeLabelVerticalOffset, getTreeViewNodeVerticalOffset, isBrowseLabelBorderDrawQuirk, isOldBrowseSelectionBar, isTreeViewCheckboxAt, setDownArrowImages, setLeftArrowImages, setOldBrowseSelectionBar, setRightArrowImages, setUpArrowImagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFillInNativeInsets, isFlat, setClientMetricspublic static final java.lang.String NAME
private static final java.awt.Color WINDOW_TITLEBAR_COLOR_ACTIVE
private static final java.awt.Color WINDOW_TITLEBAR_COLOR_INACTIVE
private static final java.awt.Color WINDOW_TITLE_COLOR_ACTIVE
private static final java.awt.Color WINDOW_TITLE_COLOR_INACTIVE
private static final java.awt.Color TOOLTIP_BACKGROUND_COLOR
private static final java.awt.Color MENU_POPUP_BACKGROUND_COLOR
private static final java.awt.Color MENU_BACKGROUND_SELECTED_COLOR
private static final java.awt.Color MENU_BAR_BACKGROUND_COLOR
private static final java.awt.Color MENU_FOREGROUND_COLOR
private static final java.awt.Color WORKSPACE_BACKGROUND_COLOR
private static final java.awt.Color HIGHLIGHT_BACKGROUND_COLOR
private static final java.awt.Color BACKGROUND_3DFACE_COLOR
private static final java.awt.Color BUTTON_FOREGROUND_COLOR
private static final java.awt.Color CAPTION_BUTTON_COLOR_INACTIVE
private static final java.awt.Color CAPTION_BUTTON_COLOR_DOWN
private static final java.awt.Color CAPTION_BUTTON2_COLOR_DOWN
private static final java.awt.Color CAPTION_BUTTON_COLOR_HIGHLIGHT
private static final java.awt.Color CAPTION_BUTTON2_COLOR_HIGHLIGHT
private static final java.awt.Color CAPTION_BUTTON_COLOR_ACTIVE
private static final java.awt.Color CAPTION_BUTTON2_COLOR_ACTIVE
private java.util.Map<java.lang.Integer,ColorRgb> defaultColors
private static final int WINDOW_BORDER_WIDTH
private static final java.awt.Color SCROLL_GAUGE_COLOR
private static final java.awt.Color SCROLL_CORNER_COLOR
private static final java.awt.Color SCROLL_BORDER_COLOR
private static final java.awt.Color SCROLL_BUTTON_COLOR_PRESSED
private static final java.awt.Color SCROLL_BUTTON_COLOR_NORMAL
private static final java.awt.Color SCROLL_BUTTON_COLOR_DISABLED
private static final java.awt.Color SCROLL_BUTTON_COLOR_HIGHLIGHT
private static final java.awt.Color SCROLL_SLIDER_COLOR_PRESSED
private static final java.awt.Color SCROLL_SLIDER_COLOR_NORMAL
private static final java.awt.Color SCROLL_SLIDER_COLOR_HIGHLIGHT
public java.lang.String getName()
Theme.getName in interface ThemegetName in class Windows10Themepublic java.util.Map<java.lang.Integer,ColorRgb> getDefaultSystemPalette()
getDefaultSystemPalette in interface ThemegetDefaultSystemPalette in class Windows10Themepublic java.util.Map<java.lang.String,java.lang.String> getStandardFontTable()
Theme, to which a key defaults,
if not overridden in the directory.getStandardFontTable in interface ThemegetStandardFontTable in class Windows10ThemeTheme.public java.lang.String getBinaryResourceLocation()
getBinaryResourceLocation in interface ThemegetBinaryResourceLocation in class Windows10Themepublic NativeInsets getWindowBorderInsets(boolean modal)
getWindowBorderInsets in interface ThemegetWindowBorderInsets in class Windows10Thememodal - Usually the modal dialogs/windows have a different width if modal.public int getTitleBarHeight(boolean maximized,
boolean dialog)
getTitleBarHeight in interface ThemegetTitleBarHeight in class Windows10Thememaximized - On some themes, the maximized window have a different title bar height when
maximized.dialog - Flag indicating this is a dialog title-bar.public void drawWindowBorder(GuiDriver gd, int x, int y, int width, int height, NativeInsets border, boolean active)
drawWindowBorder in interface ThemedrawWindowBorder in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.border - The width of the border on each side.active - true if the drawn windows is active.public int getCaptionButtonsAlignment(CaptionButtonType type)
getCaptionButtonsAlignment in interface ThemegetCaptionButtonsAlignment in class Windows10Themetype - On some specific themes, the alignment of buttons is not the same.public int getWindowTitleAlignment()
getWindowTitleAlignment in interface ThemegetWindowTitleAlignment in class Windows10Themepublic int getCaptionButtonHeight(CaptionButtonType type, boolean maximized)
getCaptionButtonHeight in interface ThemegetCaptionButtonHeight in class Windows10Themetype - On some specific themes, the height of buttons is not the same.maximized - On some themes, the maximized window have a different button height when
maximized.public int getCaptionButtonWidth(CaptionButtonType type, boolean dialog)
getCaptionButtonWidth in interface ThemegetCaptionButtonWidth in class Windows10Themetype - On some specific themes, the width of buttons is not the same.dialog - true for dialogs. The dialogs may have specific width for caption buttons.public double layoutTitleBar(TopLevelWindow window, Widget icon, ClientDrivenLabel title, CaptionButton[] buttons, double width, CoordinatesConversion c)
Theme can define how its components are arranged.layoutTitleBar in interface ThemelayoutTitleBar in class Windows10Themewindow - The window whose titlebar is laid out.icon - The icon widget of the window (if any).title - The ClientDrivenLabel that displays the window's title.buttons - An array with the CaptionButton-s present on the titlebar of this window.width - The width of the window (in character units).c - the CoordinatesConversion used for possible units conversions.public int getSpaceBeforeButton(CaptionButtonType type)
getSpaceBeforeButton in interface ThemegetSpaceBeforeButton in class Windows10Themetype - The caption button type.public void drawCaptionButton(CaptionButton button, GuiDriver gd, int x, int y, int width, int height)
CaptionButton.drawCaptionButton in interface ThemedrawCaptionButton in class Windows10Themebutton - The CaptionButton to be drawn.gd - The GuiDriver used for drawing operations. Note that internal state of
this object can affect the resulting output.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawWindowTitle(GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, java.lang.String title, boolean active)
drawWindowTitle in interface ThemedrawWindowTitle in class Windows10Themegd - The GuiDriver used for drawing operations.gf - The GuiFontResolver for selecting the required font.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.title - The title of the window.active - true if the drawn windows is active.public void drawWindowTitleBar(GuiDriver gd, int x, int y, int width, int height, boolean active)
drawWindowTitleBar in interface ThemedrawWindowTitleBar in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.active - true if the drawn windows is active.public void drawButton(AbstractWidget<GuiOutputManager> widget, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int width, int height, boolean flat, boolean highlighted, boolean isDefault, boolean mouseOver, boolean pressed, boolean keyPressed, boolean noFocus, boolean hasPrepackagedImages, boolean existsFocusByKeyboard, MnemonicInfo mnemonic, java.lang.String textLabel, boolean useResolverColors, ImageWrapper<?> img, boolean convert3D, boolean transparent, int imgWidth, int imgHeight, int imgOffsetX, int imgOffsetY, ColorRgb frameBgColor)
drawButton in interface ThemedrawButton in class Windows10Themewidget - the widget to be rendered.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver to be used for color selection.gf - The GuiFontResolver to be used.width - The width of the widget to be rendered.height - The height of the widget to be rendered.flat - Button FLAT-BUTTON flag.highlighted - Button highlighted state, must be false if button flat is true.isDefault - true if this button works as default one.mouseOver - true if the mouse hovers over this widget.pressed - true if the button is pressed and mouse hovers over this widget.keyPressed - true if the button is pressed by keyboard.noFocus - button NO-FOCUS flaghasPrepackagedImages - true if the button has pre-packaged images to be used to draw button.existsFocusByKeyboard - true if a focus event was created by keyboard in the current window.mnemonic - get mnemonic info.textLabel - Get label textuseResolverColors - true if this button uses the resolver colors for its background and foreground,
or false if the current UI theme colors shall be used.img - the image to draw or null is button has no imageconvert3D - convert image colors to system 3D colorstransparent - draw image transparentimgWidth - image width in pixels, may differ from the image own widthimgHeight - image height in pixels, may differ from the image own heightimgOffsetX - image X offset in pixelsimgOffsetY - image Y offset in pixelspublic void drawToolTip(GuiDriver gd, int x, int y, int width, int height, FontDetails fnt, java.lang.String text)
ToolTip.drawToolTip in interface ThemedrawToolTip in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.fnt - The FontDetails to be used when drawing the text.text - The actual text to be drawn.public int getScrollBarButtonWidth()
getScrollBarButtonWidth in interface ThemegetScrollBarButtonWidth in class Windows10Themepublic int getScrollBarThumbWidth()
getScrollBarThumbWidth in interface ThemegetScrollBarThumbWidth in class Windows10Themepublic void drawScrollBarGauge(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean horizontal)
drawScrollBarGauge in interface ThemedrawScrollBarGauge in class Windows10Themegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.horizontal - The direction of the scrollbar, true for horizontal.public void drawScrollBarThumb(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean pressed, boolean hover, boolean horizontal)
drawScrollBarThumb in interface ThemedrawScrollBarThumb in class Windows10Themegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - If the mouse is dragging the thumb of the scrollbar.hover - Is mouse hovering this component ?horizontal - The direction of the scrollbar, true for horizontal.public void drawScrollBarButton(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, ScrollBar.Position pos, boolean horizontal, boolean enabled, boolean pressed, boolean highlighted)
drawScrollBarButton in interface ThemedrawScrollBarButton in class Windows10Themegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pos - The position of the button (UP/DOWN, LEFT/RIGHT).horizontal - The direction of the scrollbar, true for horizontal.enabled - If the button is enabled.pressed - If the button is down (pressed by mouse).highlighted - If the mouse is hovering over the button.public void drawToggleBox(ToggleBoxGuiImpl cb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height, boolean pressed, boolean hover, boolean existsFocusByKeyboard)
drawToggleBox in interface ThemedrawToggleBox in class Windows10Themecb - The ToggleBoxGuiImpl to be rendered.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver to be used for color selection.gf - The GuiFontResolver to be used.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - true if the checkbox is pressed (the mouse button is down on the button).hover - true if mouse is hovering over the checkbox. Some styles are mouse hoveringexistsFocusByKeyboard - true if a focus event was created by keyboard in the current window.protected ImageWrapper getRadioButtonImage(boolean on, boolean enabled, boolean hover, boolean pressed)
getRadioButtonImage in class Windows10Themeon - The button state. true if button is on.enabled - true is button enabled.hover - true if mouse is hovering over the button. Some styles are mouse hovering
sensitive.pressed - true if the radio button is pressed (the mouse button is down on the
button).ImageWrapper containing the image with requested properties.public void drawComboBoxButton(GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hasFocus, boolean mouseOver, boolean isDropDown, boolean dropDownActive)
Windows10ThemedrawComboBoxButton in interface ThemedrawComboBoxButton in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget is enabled.hasFocus - Whether the widget has the focus.mouseOver - The mouse is hovering over the fill-in widget.isDropDown - the combo-box type is DROP_DOWNdropDownActive - true if drop-down is visiblepublic void drawComboBoxFieldBorder(ComboBoxGuiImpl combo, GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hover)
drawComboBoxFieldBorder in interface ThemedrawComboBoxFieldBorder in class Windows10Themecombo - The ComboBoxGuiImpl whose border is being painted.gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget has the focus.hover - The mouse is hovering over the fill-in widget.public void drawComboBoxEntryField(ComboBoxGuiImpl combo, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, FontDetails<?> font, boolean pressed, boolean enabled, boolean hover, boolean existsFocusByKeyboard)
drawComboBoxEntryField in interface ThemedrawComboBoxEntryField in class Windows10Themecombo - The ComboBoxGuiImpl whose entry field is painted.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.font - A FontDetails used for text rendering.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget has the focus.hover - The mouse is hovering over the fill-in widget.existsFocusByKeyboard - true if a focus event was created by keyboard in the current window.public void drawFillInBorder(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean border3D, boolean hasFocus, boolean hover)
drawFillInBorder in interface ThemedrawFillInBorder in class Windows10Themegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.border3D - If fill-in widget has a 3d border. Some flat Themes may ignore this.hasFocus - The fill-in widget is focused.hover - The mouse is hovering over the fill-in widget.public void drawMenuItemBackground(AbstractWidget item, GuiDriver gd, int x, int y, int width, int height, boolean hover)
drawMenuItemBackground in interface ThemedrawMenuItemBackground in class Windows10Themeitem - The MenuItemGuiImpl or SubMenuGuiImpl to be drawn.gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.hover - true if this item is highlighted/focused.public int getMenuSeparatorHeight()
getMenuSeparatorHeight in interface ThemegetMenuSeparatorHeight in class Windows10Themepublic void drawMenuSeparator(GuiDriver gd, int x, int y, int width, int height)
drawMenuSeparator in interface ThemedrawMenuSeparator in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawMenuBackground(GuiDriver gd, int x, int y, int width, int height, boolean popup)
drawMenuBackground in interface ThemedrawMenuBackground in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.popup - true for popup menus.public NativePoint getRowToggleOffset(BrowseColumnGuiImpl column, boolean editor)
getRowToggleOffset in interface ThemegetRowToggleOffset in class Windows10Themecolumn - The column that contains the toggle-box.editor - true if the toggle-box is contained in the current cell, i.e. it is the
editor. false for all other inactive toggle boxes.public ColorRgb getBrowseCellSeparatorColor(BrowseGuiImpl browse)
getBrowseCellSeparatorColor in interface ThemegetBrowseCellSeparatorColor in class Windows10Themebrowse - The browse widget.protected void setBrowseCellBackgroundSelectionColor(GuiDriver gd, ColorRgb unselColor)
gd GuiDriver.setBrowseCellBackgroundSelectionColor in class Windows10Themegd - The GuiDriver to set the color for separators.unselColor - The color for unselected cells. If null then the unselected cells'
background is not drawn.public void drawBrowseTitlePanel(BrowseGuiImpl browse, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
BrowseGuiImpl widget.drawBrowseTitlePanel in interface ThemedrawBrowseTitlePanel in class Windows10Themebrowse - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver to be used.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.protected void drawBrowseColumnMarker(GuiDriver gd, boolean selected, int topOffset, int w, int h)
drawBrowseColumnMarker in class Windows10Themegd - The GuiDriver used for drawing operations.selected - Is the current row selected ?topOffset - Top offset, in pixels.w - The border width in pixels.h - The border height in pixels.protected void drawBrowseColumnLabelBorder(BrowseColumnGuiImpl column, GuiDriver gd, int xOffset, int yOffset, int w, int h)
drawBrowseColumnLabelBorder in class Windows10Themecolumn - The BrowseColumnGuiImpl widget.gd - The GuiDriver used for drawing operations.xOffset - Left offset, in pixels.yOffset - Top offset, in pixels.w - The border width in pixels.h - The border height in pixels.private void fillTitlebar(GuiDriver gd, int x, int y, int width, int height, boolean active, boolean cleanup)
gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.active - true if the drawn windows is active.cleanup - if true do not draw the border since this is a text cleanup call.public void drawFileChooserThumbnailBackground(GuiDriver gd, int x, int y, int width, int height, boolean selected, boolean hover, boolean focus)
drawFileChooserThumbnailBackground in interface ThemedrawFileChooserThumbnailBackground in class Windows10Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.selected - true if the thumbnail is currently selected.hover - true if the mouse is currently hovering the thumbnail.focus - true if the thumbnail has focus.public ColorRgb getFileChooserForegroundColor(GuiDriver gd, boolean focused, boolean selected, boolean hover, boolean filename, boolean infoLabel, boolean infodata)
getFileChooserForegroundColor in interface ThemegetFileChooserForegroundColor in class Windows10Themegd - The GuiDriver used for drawing operations.focused - true if thumbnail is focused.selected - true if thumbnail is selected.hover - true if mouse hovers the thumbnail.filename - true to obtain the color of the filename.infoLabel - true to obtain the info label (for details view).infodata - true to obtain the info value (for details view).