public class MaterialTheme extends Windows10Theme
ClassicTheme.TextLookAndFeelImplTheme.TextLookAndFeel| Modifier and Type | Field and Description |
|---|---|
private static int |
BACKGROUND
The palette entry for background color, by default WHITE.
|
private java.awt.Color[] |
DEFAULT_PALETTE
The default basic palette.
|
private java.util.Map<java.lang.Integer,ColorRgb> |
defaultColors
Cached map with default system colors.
|
private java.util.Map<java.lang.String,java.lang.String> |
defaultFontAliases
Cached map with font aliases.
|
private java.util.Map<java.lang.String,java.lang.String> |
defaultFontTable
Cached map with font table.
|
private static int |
DISABLED
The palette entry for disabled widgets, by default some kind of GREY.
|
private static int |
FOREGROUND
The palette entry for foreground color (text), by default BLACK.
|
private static int |
HIGHLIGHTED
The palette entry for highlighted widget components, by default ORANGE-ish
|
private static CentralLogger |
LOG
Logger
|
static java.lang.String |
NAME
Short name
|
private static int |
NORMAL
The palette entry for normal widget components, by default BLUE-GREEN-ish
|
private java.awt.Color[] |
pal
The color palette that is currently in use.
|
private boolean |
palRead
Flag for checking whether the color palette was retrieved from client side.
|
COMBOBOX_BUTTON_WIDTH, MENU_CHECKMARK_WIDTH, MENU_LEFT_PAD, SCROLL_GAUGE_COLORCELLS_NEW_LINE, 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 |
|---|
MaterialTheme()
The constructor initializes the working palette.
|
| Modifier and Type | Method and Description |
|---|---|
private static java.awt.Color |
brighter(java.awt.Color c,
float level)
Creates a new, brighter
Color version of color c. |
private java.awt.Color |
brighter(int palEntry)
Creates a new, darker
Color version of palEntry in color palette. |
private java.awt.Color |
brighter(int palEntry,
float level)
Creates a new, brighter
Color version of palEntry in color palette. |
private static java.awt.Color |
darker(java.awt.Color c,
float level)
Creates a new, darker
Color version of color c. |
private java.awt.Color |
darker(int palEntry)
Creates a new, darker
Color version of palEntry in color palette. |
private java.awt.Color |
darker(int palEntry,
float level)
Creates a new, darker
Color version of palEntry in color palette. |
void |
draw3DBorder(ThreeDBorderGuiImpl border,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draws a
ThreeDBorderGuiImpl widget. |
void |
drawBrowseColumnLabel(BrowseColumnGuiImpl column,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draw the label on a
BrowseColumnGuiImpl widget. |
protected void |
drawBrowseColumnLabelRect(BrowseColumnGuiImpl column,
GuiDriver gd,
int topOffset,
boolean markersBody,
boolean markersLabel,
boolean selectedRow)
Draw label-style rectangle.
|
private void |
drawBrowseSeparators(BrowseColumnGuiImpl column,
GuiDriver gd,
int xOffset,
int yOffset,
int w,
int h)
Draw label-style separators.
|
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.
|
private static void |
drawCheckmark(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean check)
Draws a checkmark in the designated area.
|
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 |
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 |
drawFillInCaret(FillInGuiImpl fillIn,
GuiDriver gd,
int x1,
int y1,
int x2,
int y2)
Renders caret of the fill-in widget.
|
void |
drawFrameTitle(FrameGuiImpl frame,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draw the title panel of a
BrowseGuiImpl widget. |
void |
drawLineBorder(LineBorderGuiImpl border,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height)
Draw the line border
LineBorderGuiImpl 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 |
drawMenuItemContent(AbstractWidget item,
GuiDriver gd,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
int textHeight,
boolean focused)
Renders the foreground content of menu item in a popup menu.
|
void |
drawMenuSeparator(GuiDriver gd,
int x,
int y,
int width,
int height)
Renders the separator line in a menu widget.
|
void |
drawProgressBar(ProgressBarGui pb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws progress bar
ProgressBarGui widget. |
private void |
drawProgressBarBar(ProgressBarGui pb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws progress bar
ProgressBarGui widget bar. |
private static void |
drawRadioButton(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean selected)
Draws a radio-button in the designated area.
|
void |
drawRadioButton(RadioButtonGuiImpl rb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
boolean focused,
boolean existsFocusByKeyboard,
boolean hover)
Renders a GUI radio button widget.
|
void |
drawRectangle(RectangleGuiImpl rect,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height)
Draws a
RectangleGuiImpl 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 |
drawSelectionListBackground(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height)
Renders the background of a selection list.
|
void |
drawSelectionListItem(ComboBoxGuiImpl box,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
java.lang.String text,
int fontSize,
boolean enabled,
boolean highlighted,
boolean selected,
boolean existsFocusByKeyboard)
Renders a single item in a combo box selection list.
|
void |
drawSliderBackground(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w,
int h)
Draws the background of a
SliderGuiImpl widget. |
void |
drawSliderFrame(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w,
int h)
Draws the dotted frame border of a
SliderGuiImpl widget. |
void |
drawSliderThumb(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w,
int h)
Draws the slider thumb of a
SliderGuiImpl widget. |
void |
drawSliderTicMarks(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int length)
Draws the slider tic marks of a
SliderGuiImpl widget. |
void |
drawSliderTrack(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w)
Draws the slide track of a
SliderGuiImpl 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 |
drawWindowBorder(GuiDriver gd,
int x,
int y,
int width,
int height,
NativeInsets border,
boolean active)
Renders borders of a top-level window.
|
int |
get3DBorderOffset()
Obtain the offset in a 3D bordered widget.
|
int |
getAlertBoxPadding()
Obtain the padding for alert boxes.
|
java.lang.String |
getBinaryResourceLocation()
Obtain the location of binary resources (like pixmaps and sprites) used by this theme.
|
ColorRgb |
getBrowseCellForegroundColor(BrowseColumnGuiImpl column,
boolean label,
boolean selected,
int viewportRowIndex)
Get foreground color of the selected cell type.
|
ColorRgb |
getBrowseCellSeparatorColor(BrowseGuiImpl browse)
Get the cell separator color.
|
int |
getCheckBoxSize()
Obtain the size of image on a checkbox widget.
|
int |
getCheckBoxSpace()
Obtains the space needed by a checkbox widget.
|
ColorRgb |
getColumnBackgroundColor(BrowseColumnGuiImpl column)
Get column background color.
|
ColorRgb |
getColumnLabelBackgroundColor(BrowseColumnGuiImpl column)
Get column label background color.
|
int |
getComboBoxEntryShift()
Obtain the shifting distance in a combo box widget.
|
java.util.Map<java.lang.String,java.lang.String> |
getDefaultFontAliases()
Obtain the map of default font aliases specific to current
Theme, to which a key
defaults, if not overridden in the directory. |
java.util.Map<java.lang.Integer,ColorRgb> |
getDefaultSystemPalette()
Obtain the default system palette for this theme.
|
ImageWrapper |
getImage(java.lang.String name,
int w,
int h,
boolean antialias)
Obtain an image resource specific to this
Theme. |
int |
getMenuCheckmarkWidth()
Obtain the width of the check mark to for togglable menus.
|
NativeInsets |
getMenuInsets()
Obtain the insets of a popup menu.
|
int |
getMenuItemHeight(MenuElement menuItem)
Obtain the height of a
MenuElement in a menu widget. |
int |
getMenuSeparatorHeight()
Obtain the fixed height of a separator in a popup menu widget.
|
int |
getMenuSmArrowWidth()
Obtain the width of the arrow marking menus with submenus (including additional space).
|
java.lang.String |
getName()
Get the name of this
Theme. |
char |
getPasswordCharacter()
Obtain the character used to replace text in password fields.
|
int |
getRadioButtonExtraDist()
Obtain the extra distance in a radio button.
|
int |
getRadioButtonImageSpace()
Obtain the distance before text, including the radio button (text offset).
|
int |
getScrollBarButtonHeight()
Obtain the size of the scroll button on the direction of the scroll.
|
int |
getScrollBarButtonWidth()
Obtain the size of the scroll button on the direction perpendicular to scroll direction.
|
int |
getScrollBarGaugeWidth()
Obtain the width of the gauge of a scrollbar widget.
|
int |
getScrollBarThumbMinSize()
Obtain the minimum size of the thumb/slider of a scrollbar widget.
|
int |
getScrollBarThumbWidth()
Obtain the thumb/slider width in a scrollbar widget.
|
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. |
boolean |
isClassic()
Check whether this is a classic theme.
|
boolean |
isFlat()
Checks whether this theme is flat.
|
boolean |
isMouseHoverSensitive()
Check if the theme is mouse hover sensitive.
|
protected void |
setBrowseCellBackgroundSelectionColor(GuiDriver gd,
ColorRgb unselColor)
Set the selected cell background color into the
gd GuiDriver. |
protected void |
setCompositeXorColor(GuiDriver gd)
Sets the composite color for XOR operations on browse widgets.
|
private void |
updatePalette(GuiDriver gd)
Request the basic palette from the web-page and initialize internal one.
|
drawBrowseColumnLabelBorder, drawBrowseColumnMarker, drawCaptionButton, drawFileChooserThumbnailBackground, drawMenuBarElement, drawSelectionFocus, drawStatusBar, drawToolTip, drawWindowTitle, drawWindowTitleBar, getBrowseDataOffsetLeft, getBrowseLabelOffsetLeft, getBrowseMarkerArrow, getCaptionButtonHeight, getCaptionButtonsAlignment, getCaptionButtonWidth, getComboBoxButtonSize, getComboBoxDropDownOffset, getComboBoxFieldExtraSpace, getDialogExtraHeight, getDialogExtraWidth, getFileChooserForegroundColor, getMenuBarElementMinSize, getMenuLeftPad, getMenuRightPad, getPngImage, getRadioButtonImage, getRowToggleImage, getRowToggleOffset, getRowToggleSize, getSliderThumbImageName, getSliderThumbRegularDimension, getSliderTicmarkColor, getSpaceBeforeButton, getTextLookAndFeel, getTitleBarHeight, getWindowBorderInsets, getWindowIconAlignment, getWindowTitleAlignment, layoutTitleBar, releaseResourcesdrawAlertBox, drawBrowseCell, drawBrowseCellLabel, drawBrowseCellText, drawBrowseColumnDrag, drawBrowseColumnSetBackground, drawBrowseMarkersColumn, drawBrowseNormalColumn, drawBrowseResizingColumn, drawBrowseRowHighlight, drawCaret, drawEditorCaret, drawEditorContent, drawLabel, drawLabelUnderline, drawRowToggleImage, drawSliderValue, drawTabBarWidget, drawTabBarWidgetItem, drawTabPageWidget, drawTabPageWidgetItem, drawText, drawTooltipWorker, drawTreeListBody, drawTreeListCaption, drawTreeListCaptionItem, drawTreeViewBody, getBinaryResource, getBinaryResourceCommonLocation, getBrowseLabelOffsetRight, getCalendarBodyBackgroundColor, getCalendarBodyForegroundColor, getCalendarTitleBackgroundColor, getCalendarTitleForegroundColor, getCalendarTrailingBackgroundColor, getCalendarTrailingForegroundColor, getHyperlinkColor, getHyperlinkFont, getImage, getPrebuiltArrowImageSize, getRowToggleOffsetCentered, getScrollBarIntersectionColor, 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, setClientMetricspublic static final java.lang.String NAME
private static final CentralLogger LOG
private static final int BACKGROUND
private static final int FOREGROUND
private static final int NORMAL
private static final int HIGHLIGHTED
private static final int DISABLED
private final java.awt.Color[] DEFAULT_PALETTE
brighter(int)
and darker(int) APIs.private final java.awt.Color[] pal
private boolean palRead
private java.util.Map<java.lang.Integer,ColorRgb> defaultColors
private java.util.Map<java.lang.String,java.lang.String> defaultFontTable
private java.util.Map<java.lang.String,java.lang.String> defaultFontAliases
public MaterialTheme()
public java.lang.String getName()
Theme.getName in interface ThemegetName in class Windows10Themepublic java.lang.String getBinaryResourceLocation()
getBinaryResourceLocation in interface ThemegetBinaryResourceLocation in class Windows10Themepublic ImageWrapper getImage(java.lang.String name, int w, int h, boolean antialias)
Theme. The image can be cached for
performance reasons. It will be automatically released when Windows10Theme.releaseResources() is
called, when a new Theme is loaded and this one is removed.getImage in interface ThemegetImage in class Windows10Themename - The name of the image as path within jar bundle.w - The desired with of the returned image. This is only a hint. If available, an
image with exact width is returned. One need to check the size of the returned
ImageWrapper to know the exact value.h - The desired with of the returned image. This is only a hint. If available, an
image with exact width is returned. One need to check the size of the returned
ImageWrapper to know the exact value.antialias - if true and image is scaled to meet the size hints, an smooth scaling
algorithm will be used, otherwise a faster one will be used but the image quality
will be lower. If image is not scaled the parameter is ignored.ImageWrapper containing the requested image resource if it can be found
and loaded and null otherwise.public boolean isMouseHoverSensitive()
isMouseHoverSensitive in interface ThemeisMouseHoverSensitive in class Windows10Themetrue. This theme is mouse hover sensitive.public boolean isClassic()
isClassic in interface ThemeisClassic in class Windows10Themefalse.public boolean isFlat()
true if this Theme is flat.public 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.util.Map<java.lang.String,java.lang.String> getDefaultFontAliases()
Theme, to which a key
defaults, if not overridden in the directory.getDefaultFontAliases in interface ThemegetDefaultFontAliases in class Windows10ThemeTheme.public void drawWindowBorder(GuiDriver gd, int x, int y, int width, int height, NativeInsets border, boolean active)
Windows10ThemedrawWindowBorder 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 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 if 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 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.public void drawRadioButton(RadioButtonGuiImpl rb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height, boolean focused, boolean existsFocusByKeyboard, boolean hover)
IMPORTANT: The first statement which set the background color is mandatory only when graphical
cache is enabled for correct image recording. That's because the FWD design is to set the
background color when RadioSetGuiImpl.draw() widget
is draw and used when the RadioButtonGuiImpl.draw()
widget is draw as well. Because the graphical cache operations are cached per widget and
RadioButtonGuiImpl is implemented as a separate widget
we must add the set background color to draw sequence operations stored in cache in order to
have correct color information for cached image.
drawRadioButton in interface ThemedrawRadioButton in class Windows10Themerb - The RadioButtonGuiImpl 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.focused - true if the radio button have the focusexistsFocusByKeyboard - true if a focus event was created by keyboard in the current window.hover - true if mouse is hovering over the checkbox. Some styles are mouse hoveringpublic int getAlertBoxPadding()
ClassicThemegetAlertBoxPadding in interface ThemegetAlertBoxPadding in class ClassicThemepublic int getRadioButtonExtraDist()
getRadioButtonExtraDist in interface ThemegetRadioButtonExtraDist in class ClassicThemepublic int getRadioButtonImageSpace()
getRadioButtonImageSpace in interface ThemegetRadioButtonImageSpace in class Windows10Themepublic int getCheckBoxSpace()
getCheckBoxSpace in interface ThemegetCheckBoxSpace in class Windows10Themepublic int getCheckBoxSize()
getCheckBoxSize in interface ThemegetCheckBoxSize in class Windows10Themepublic int getScrollBarButtonWidth()
getScrollBarButtonWidth in interface ThemegetScrollBarButtonWidth in class Windows10Themepublic int getScrollBarThumbWidth()
getScrollBarThumbWidth in interface ThemegetScrollBarThumbWidth in class Windows10Themepublic int getScrollBarThumbMinSize()
getScrollBarThumbMinSize in interface ThemegetScrollBarThumbMinSize in class ClassicThemepublic int getScrollBarGaugeWidth()
getScrollBarGaugeWidth in interface ThemegetScrollBarGaugeWidth in class Windows10Themepublic int getScrollBarButtonHeight()
getScrollBarButtonHeight in interface ThemegetScrollBarButtonHeight 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 int get3DBorderOffset()
get3DBorderOffset in interface Themeget3DBorderOffset in class ClassicThemepublic 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 char getPasswordCharacter()
getPasswordCharacter in interface ThemegetPasswordCharacter in class Windows10Themepublic 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 drawFillInCaret(FillInGuiImpl fillIn, GuiDriver gd, int x1, int y1, int x2, int y2)
drawFillInCaret in interface ThemedrawFillInCaret in class ClassicThemefillIn - The FillInGuiImpl widget whose caret is to be rendered.gd - The GuiDriver used for drawing operations.x1 - The left extremity of the caret.y1 - The top extremity of the caret.x2 - The right extremity of the caret.y2 - The bottom extremity of the caret.public int getComboBoxEntryShift()
Windows10ThemegetComboBoxEntryShift in interface ThemegetComboBoxEntryShift in class Windows10Themepublic 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 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 drawComboBoxButton(GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hasFocus, boolean mouseOver, boolean isDropDown, boolean dropDownActive)
drawComboBoxButton 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 drawSelectionListBackground(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
drawSelectionListBackground in interface ThemedrawSelectionListBackground 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.gc - The GuiColorResolver used color selection.public void drawSelectionListItem(ComboBoxGuiImpl box, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, java.lang.String text, int fontSize, boolean enabled, boolean highlighted, boolean selected, boolean existsFocusByKeyboard)
drawSelectionListItem in interface ThemedrawSelectionListItem in class Windows10Themebox - 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.text - The text to be displayed on this itemfontSize - The size of teh font to be used.highlighted - The mouse is hovering over the fill-in widget.enabled - Whether the widget has the focus.existsFocusByKeyboard - true if a focus event was created by keyboard in the current window.gc - The GuiColorResolver used color selection.selected - true if item is selectedpublic NativeInsets getMenuInsets()
getMenuInsets in interface ThemegetMenuInsets in class ClassicThemepublic int getMenuCheckmarkWidth()
getMenuCheckmarkWidth in interface ThemegetMenuCheckmarkWidth in class Windows10Themepublic int getMenuSmArrowWidth()
getMenuSmArrowWidth in interface ThemegetMenuSmArrowWidth in class ClassicThemepublic 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 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 int getMenuSeparatorHeight()
getMenuSeparatorHeight in interface ThemegetMenuSeparatorHeight in class Windows10Themepublic int getMenuItemHeight(MenuElement menuItem)
MenuElement in a menu widget.getMenuItemHeight in interface ThemegetMenuItemHeight in class Windows10ThememenuItem - the menu itempublic void drawMenuItemContent(AbstractWidget item, GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, int textHeight, boolean focused)
drawMenuItemContent in interface ThemedrawMenuItemContent 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.textHeight - The height of the text.focused - true if this item is highlighted/focused.gf - The GuiFontResolver to be used.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 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.public void drawBrowseColumnLabel(BrowseColumnGuiImpl column, GuiDriver gd, int x, int y, int width, int height)
BrowseColumnGuiImpl widget.drawBrowseColumnLabel in interface ThemedrawBrowseColumnLabel in class ClassicThemecolumn - The BrowseGuiImpl widget.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.public void drawFrameTitle(FrameGuiImpl frame, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
BrowseGuiImpl widget.drawFrameTitle in interface ThemedrawFrameTitle in class Windows10Themeframe - The FrameGuiImpl 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.public void drawLineBorder(LineBorderGuiImpl border, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
LineBorderGuiImpl widget.drawLineBorder in interface ThemedrawLineBorder in class Windows10Themeborder - The FrameGuiImpl widget.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.public void drawRectangle(RectangleGuiImpl rect, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
RectangleGuiImpl widget.drawRectangle in interface ThemedrawRectangle in class Windows10Themerect - The RectangleGuiImpl widget.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.public void draw3DBorder(ThreeDBorderGuiImpl border, GuiDriver gd, int x, int y, int width, int height)
ThreeDBorderGuiImpl widget.draw3DBorder in interface Themedraw3DBorder in class Windows10Themeborder - The RectangleGuiImpl widget.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.public ColorRgb getBrowseCellForegroundColor(BrowseColumnGuiImpl column, boolean label, boolean selected, int viewportRowIndex)
getBrowseCellForegroundColor in interface ThemegetBrowseCellForegroundColor in class Windows10Themecolumn - The parent BrowseColumnGuiImpl of the cell.label - true for label cell, false for normal cell.selected - true if the row is selected.viewportRowIndex - 0-based number of the target row in the viewport (for cells only). -1 for general
cell foreground color.public ColorRgb getColumnBackgroundColor(BrowseColumnGuiImpl column)
getColumnBackgroundColor in interface ThemegetColumnBackgroundColor in class ClassicThemecolumn - The browse column.public ColorRgb getColumnLabelBackgroundColor(BrowseColumnGuiImpl column)
getColumnLabelBackgroundColor in interface ThemegetColumnLabelBackgroundColor in class ClassicThemecolumn - The browse column.public ColorRgb getBrowseCellSeparatorColor(BrowseGuiImpl browse)
getBrowseCellSeparatorColor in interface ThemegetBrowseCellSeparatorColor in class Windows10Themebrowse - The browse widget.public void drawSliderBackground(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderBackground in interface ThemedrawSliderBackground in class Windows10Themeslider - The SliderGuiImpl widget.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.w - The width of the painted widget/component.h - The height of the painted widget/component.public void drawSliderTrack(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w)
SliderGuiImpl widget.drawSliderTrack in interface ThemedrawSliderTrack in class Windows10Themeslider - The SliderGuiImpl widget.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.w - The width of the painted widget/component.public void drawSliderThumb(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderThumb in interface ThemedrawSliderThumb in class Windows10Themeslider - The SliderGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the thumb to be painted/component.y - The vertical location (in pixel units) of the thumb to be painted/component.w - The width of the thumb.h - The height of the thumb.public void drawSliderTicMarks(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int length)
SliderGuiImpl widget.drawSliderTicMarks in interface ThemedrawSliderTicMarks in class ClassicThemeslider - The SliderGuiImpl widget.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.length - The trackbar length.public void drawSliderFrame(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderFrame in interface ThemedrawSliderFrame in class ClassicThemeslider - The SliderGuiImpl widget.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.w - The width of the painted widget/component.h - The height of the painted widget/component.protected void setBrowseCellBackgroundSelectionColor(GuiDriver gd, ColorRgb unselColor)
gd GuiDriver.
TODO: this is a dependency of ClassicTheme. It is being used only temporary, until
the {#code broswe} support is added to this Theme. The goal of this method is
to give the browse selected line a color from standard palette.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.protected void drawBrowseColumnLabelRect(BrowseColumnGuiImpl column, GuiDriver gd, int topOffset, boolean markersBody, boolean markersLabel, boolean selectedRow)
drawBrowseColumnLabelRect in class Windows10Themecolumn - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.topOffset - Top offset, in pixels.markersBody - true if it is a cell in the markers column.markersLabel - true if it is the label area in the markers column.selectedRow - Is the current row selected ?private void drawBrowseSeparators(BrowseColumnGuiImpl column, GuiDriver gd, int xOffset, int yOffset, int w, int h)
column - 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.protected void setCompositeXorColor(GuiDriver gd)
setCompositeXorColor in class Windows10Themegd - the active GuiDriver used to draw the browse widget.private static void drawRadioButton(GuiDriver gd, int x, int y, int width, int height, boolean selected)
gd.gd - The GuiDriver used for drawing operations.x - The X coordinate of the checkmark.y - The Y coordinate of the checkmark.width - The width of the checkmark.height - The height of the checkmark.selected - Whether to draw the radio-button as selected.private static void drawCheckmark(GuiDriver gd, int x, int y, int width, int height, boolean check)
gd.gd - The GuiDriver used for drawing operations.x - The X coordinate of the checkmark.y - The Y coordinate of the checkmark.width - The width of the checkmark.height - The height of the checkmark.check - Whether to draw a checkmark or an indeterminate state.private java.awt.Color darker(int palEntry)
Color version of palEntry in color palette.
This method uses a constant factor of 0.83 to each of the three RGB components of reference
to create a darker version of it. The alpha value is preserved.
palEntry - The color to be used as reference for creating the new darker value.Color object that is a darker version of this c with the
same alpha value.private java.awt.Color darker(int palEntry,
float level)
Color version of palEntry in color palette.
This method uses level factor to each of the three RGB components of reference to
create a darker version of it. The alpha value is preserved.
palEntry - The color to be used as reference for creating the new darker value.level - The level of values to be kept. For 1, the same color is returned. As {code level}
drops to 0, the darker the new color will be generated. When 0, Color.BLACK
is returned.Color object that is a darker version of this c with the
same alpha value.private static java.awt.Color darker(java.awt.Color c,
float level)
Color version of color c.
This method uses level factor to each of the three RGB components of c to
create a darker version of it. The alpha value is preserved.
c - The color to be used as reference for creating the new darker value.level - The level of values to be kept. For 1, the same color is returned. As {code level}
drops to 0, the darker the new color will be generated. When 0, Color.BLACK
is returned.Color object that is a darker version of this c with the
same alpha value.private java.awt.Color brighter(int palEntry)
Color version of palEntry in color palette.
This method uses a constant factor of 0.83 to each of the three RGB components of reference
to create a darker version of it. The alpha value is preserved.
palEntry - The color to be used as reference for creating the new darker value.Color object that is a darker version of this c with the
same alpha value.private java.awt.Color brighter(int palEntry,
float level)
Color version of palEntry in color palette.
This method uses level factor to each of the three RGB components of reference to
create a brighter version of it. The alpha value is preserved.
palEntry - The color to be used as reference for creating the new brighter value.level - The level of values to be kept. For 1, the same color is returned. As {code level}
drops to 0, the brighter the new color will be generated. When 0,
Color.WHITE is returned.Color object that is a brighter version of this c with the
same alpha value.private static java.awt.Color brighter(java.awt.Color c,
float level)
Color version of color c.
This method uses level factor to each of the three RGB components of c to
create a brighter version of it. The alpha value is preserved.
c - The color to be used as reference for creating the new brighter value.level - The level of values to be kept. For 1, the same color is returned. As {code level}
drops to 0, the brighter the new color will be generated. When 0,
Color.WHITE is returned.Color object that is a brighter version of this c with the
same alpha value.private void updatePalette(GuiDriver gd)
gd - The driver to use for communication.public void drawProgressBar(ProgressBarGui pb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
ProgressBarGui widget.drawProgressBar in interface ThemedrawProgressBar in class Windows10Themepb - The ProgressBarGui 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.private void drawProgressBarBar(ProgressBarGui pb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
ProgressBarGui widget bar.pb - The ProgressBarGui 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.