public class MaterialTheme extends Windows10Theme
ClassicTheme.TextLookAndFeelImpl
Theme.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 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_COLOR
CELLS_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_PADDING
ALIGN_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,
MnemonicInfo mnemonic,
java.lang.String textLabel,
boolean useResolverColors,
ImageWrapper<?> img,
boolean convert3D,
boolean transparent,
int imgWidth,
int imgHeight,
int imgOffsetX,
int imgOffsetY)
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)
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 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)
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)
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, getFileChooserForegroundColor, getMenuBarElementMinSize, getMenuLeftPad, getMenuRightPad, getPngImage, getRadioButtonImage, getRowToggleImage, getRowToggleOffset, getRowToggleSize, getSliderThumbImageName, getSliderThumbRegularDimension, getSliderTicmarkColor, getSpaceBeforeButton, getTextLookAndFeel, getTitleBarHeight, getWindowBorderInsets, getWindowIconAlignment, getWindowTitleAlignment, layoutTitleBar, releaseResources
drawAlertBox, drawBrowseCell, drawBrowseCellLabel, drawBrowseCellText, drawBrowseColumnDrag, drawBrowseColumnSetBackground, drawBrowseMarkersColumn, drawBrowseNormalColumn, drawBrowseResizingColumn, drawBrowseRowHighlight, drawCaret, drawEditorCaret, drawEditorContent, drawLabel, drawLabelUnderline, drawRowToggleImage, drawSliderValue, drawTabBarWidget, drawTabBarWidgetItem, drawTabPageWidget, drawTabPageWidgetItem, drawText, 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, setDownArrowImages, setLeftArrowImages, setRightArrowImages, setUpArrowImages
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillInNativeInsets, setClientMetrics
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 Theme
getName
in class Windows10Theme
public java.lang.String getBinaryResourceLocation()
getBinaryResourceLocation
in interface Theme
getBinaryResourceLocation
in class Windows10Theme
public 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 Theme
getImage
in class Windows10Theme
name
- 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 Theme
isMouseHoverSensitive
in class Windows10Theme
true
. This theme is mouse hover sensitive.public boolean isClassic()
isClassic
in interface Theme
isClassic
in class Windows10Theme
false
.public boolean isFlat()
true
if this Theme
is flat.public java.util.Map<java.lang.Integer,ColorRgb> getDefaultSystemPalette()
getDefaultSystemPalette
in interface Theme
getDefaultSystemPalette
in class Windows10Theme
public 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 Theme
getStandardFontTable
in class Windows10Theme
Theme
.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 Theme
getDefaultFontAliases
in class Windows10Theme
Theme
.public void drawWindowBorder(GuiDriver gd, int x, int y, int width, int height, NativeInsets border, boolean active)
Windows10Theme
drawWindowBorder
in interface Theme
drawWindowBorder
in class Windows10Theme
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.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, MnemonicInfo mnemonic, java.lang.String textLabel, boolean useResolverColors, ImageWrapper<?> img, boolean convert3D, boolean transparent, int imgWidth, int imgHeight, int imgOffsetX, int imgOffsetY)
drawButton
in interface Theme
drawButton
in class Windows10Theme
widget
- 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.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)
drawToggleBox
in interface Theme
drawToggleBox
in class Windows10Theme
cb
- 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 hoveringpublic void drawRadioButton(RadioButtonGuiImpl rb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height, boolean focused, 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 Theme
drawRadioButton
in class Windows10Theme
rb
- 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 focushover
- true
if mouse is hovering over the checkbox. Some styles are mouse hoveringpublic int getAlertBoxPadding()
ClassicTheme
getAlertBoxPadding
in interface Theme
getAlertBoxPadding
in class ClassicTheme
public int getRadioButtonExtraDist()
getRadioButtonExtraDist
in interface Theme
getRadioButtonExtraDist
in class ClassicTheme
public int getRadioButtonImageSpace()
getRadioButtonImageSpace
in interface Theme
getRadioButtonImageSpace
in class Windows10Theme
public int getCheckBoxSpace()
getCheckBoxSpace
in interface Theme
getCheckBoxSpace
in class Windows10Theme
public int getCheckBoxSize()
getCheckBoxSize
in interface Theme
getCheckBoxSize
in class Windows10Theme
public int getScrollBarButtonWidth()
getScrollBarButtonWidth
in interface Theme
getScrollBarButtonWidth
in class Windows10Theme
public int getScrollBarThumbWidth()
getScrollBarThumbWidth
in interface Theme
getScrollBarThumbWidth
in class Windows10Theme
public int getScrollBarThumbMinSize()
getScrollBarThumbMinSize
in interface Theme
getScrollBarThumbMinSize
in class ClassicTheme
public int getScrollBarGaugeWidth()
getScrollBarGaugeWidth
in interface Theme
getScrollBarGaugeWidth
in class Windows10Theme
public int getScrollBarButtonHeight()
getScrollBarButtonHeight
in interface Theme
getScrollBarButtonHeight
in class Windows10Theme
public void drawScrollBarGauge(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean horizontal)
drawScrollBarGauge
in interface Theme
drawScrollBarGauge
in class Windows10Theme
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.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 Theme
drawScrollBarThumb
in class Windows10Theme
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.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 Theme
get3DBorderOffset
in class ClassicTheme
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 Theme
drawScrollBarButton
in class Windows10Theme
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.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 Theme
getPasswordCharacter
in class Windows10Theme
public void drawFillInBorder(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean border3D, boolean hasFocus, boolean hover)
drawFillInBorder
in interface Theme
drawFillInBorder
in class Windows10Theme
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.border3D
- If fill-in widget has a 3d border. Some flat Theme
s 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 Theme
drawFillInCaret
in class ClassicTheme
fillIn
- 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()
Windows10Theme
getComboBoxEntryShift
in interface Theme
getComboBoxEntryShift
in class Windows10Theme
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)
drawComboBoxEntryField
in interface Theme
drawComboBoxEntryField
in class Windows10Theme
combo
- 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.public void drawComboBoxFieldBorder(ComboBoxGuiImpl combo, GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hover)
drawComboBoxFieldBorder
in interface Theme
drawComboBoxFieldBorder
in class Windows10Theme
combo
- 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 Theme
drawComboBoxButton
in class Windows10Theme
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 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 Theme
drawSelectionListBackground
in class Windows10Theme
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.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)
drawSelectionListItem
in interface Theme
drawSelectionListItem
in class Windows10Theme
box
- 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.gc
- The GuiColorResolver
used color selection.public NativeInsets getMenuInsets()
getMenuInsets
in interface Theme
getMenuInsets
in class ClassicTheme
public int getMenuCheckmarkWidth()
getMenuCheckmarkWidth
in interface Theme
getMenuCheckmarkWidth
in class Windows10Theme
public int getMenuSmArrowWidth()
getMenuSmArrowWidth
in interface Theme
getMenuSmArrowWidth
in class ClassicTheme
public void drawMenuBackground(GuiDriver gd, int x, int y, int width, int height, boolean popup)
drawMenuBackground
in interface Theme
drawMenuBackground
in class Windows10Theme
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.popup
- true
for popup menus.public void drawMenuSeparator(GuiDriver gd, int x, int y, int width, int height)
drawMenuSeparator
in interface Theme
drawMenuSeparator
in class Windows10Theme
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 int getMenuSeparatorHeight()
getMenuSeparatorHeight
in interface Theme
getMenuSeparatorHeight
in class Windows10Theme
public int getMenuItemHeight(MenuElement menuItem)
MenuElement
in a menu widget.getMenuItemHeight
in interface Theme
getMenuItemHeight
in class Windows10Theme
public void drawMenuItemContent(AbstractWidget item, GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, int textHeight, boolean focused)
drawMenuItemContent
in interface Theme
drawMenuItemContent
in class Windows10Theme
item
- 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 Theme
drawMenuItemBackground
in class Windows10Theme
item
- 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 Theme
drawBrowseTitlePanel
in class Windows10Theme
browse
- 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 Theme
drawBrowseColumnLabel
in class ClassicTheme
column
- 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 Theme
drawFrameTitle
in class Windows10Theme
frame
- 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 Theme
drawLineBorder
in class Windows10Theme
border
- 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 Theme
drawRectangle
in class Windows10Theme
rect
- 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 Theme
draw3DBorder
in class Windows10Theme
border
- 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 Theme
getBrowseCellForegroundColor
in class Windows10Theme
column
- 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 Theme
getColumnBackgroundColor
in class ClassicTheme
column
- The browse column.public ColorRgb getColumnLabelBackgroundColor(BrowseColumnGuiImpl column)
getColumnLabelBackgroundColor
in interface Theme
getColumnLabelBackgroundColor
in class ClassicTheme
column
- The browse column.public ColorRgb getBrowseCellSeparatorColor(BrowseGuiImpl browse)
getBrowseCellSeparatorColor
in interface Theme
getBrowseCellSeparatorColor
in class Windows10Theme
browse
- 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 Theme
drawSliderBackground
in class Windows10Theme
slider
- 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 Theme
drawSliderTrack
in class Windows10Theme
slider
- 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 Theme
drawSliderThumb
in class Windows10Theme
slider
- 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 Theme
drawSliderTicMarks
in class ClassicTheme
slider
- 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 Theme
drawSliderFrame
in class ClassicTheme
slider
- 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 Windows10Theme
gd
- 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 Windows10Theme
column
- 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 Windows10Theme
gd
- 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 Theme
drawProgressBar
in class Windows10Theme
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.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.