public class Windows10Theme extends ClassicTheme
The theme is very flat, most widgets components have minimal foreground with monochrome backgrounds. The theme is however, very sensitive to mouse hovering movements, almost all components will highlight when the mouse pointer hovers over them.
ClassicTheme.TextLookAndFeelImplTheme.TextLookAndFeel| Modifier and Type | Field and Description |
|---|---|
private static java.awt.Color |
BACKGROUND_3DFACE_COLOR
Main background color for 3D objects.
|
private static int |
BROWSE_DATA_OFFSET_LEFT
Left offset of a text inside a browse cell.
|
private static int |
BROWSE_LABEL_OFFSET_LEFT
Left offset of a text inside a browse label.
|
private static java.awt.Color |
BUTTON_FOREGROUND_COLOR
The test colors on enabled buttons.
|
private static java.awt.Color |
CAPTION_BUTTON_CLOSE_SMALL_ACTIVE
The background color of the small CLOSE (x) caption buttons when window is active.
|
private static java.awt.Color |
CAPTION_BUTTON_CLOSE_SMALL_COLOR_INACTIVE
The background color of the small close caption button when window is NOT active.
|
private static int |
CAPTION_BUTTON_CLOSE_SMALL_HEIGHT
The height of the small close caption button.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_ACTIVE
The background color of the caption buttons when window is active.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_DOWN
The background color of the caption buttons when button is pushed down.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_HIGHLIGHT
The background color of the caption buttons when mouse hover over it.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_INACTIVE
The background color of the caption buttons when window is NOT active.
|
private static int |
CAPTION_BUTTON_HEIGHT
The height of the caption buttons in normal window (NOT maximized).
|
private static int |
CAPTION_BUTTON_HEIGHT_MAXIMIZED
The height of the caption buttons when window is maximized.
|
private static int |
CAPTION_BUTTON_WIDTH
The width of the caption buttons in normal window (NOT maximized).
|
private static int |
CAPTION_BUTTON_WIDTH_DIALOG
The width of the caption buttons in dialogs.
|
private static java.awt.Color |
CAPTION_BUTTON2_COLOR_DOWN
The background color of the CLOSE (X) caption buttons when button is pushed down.
|
private static java.awt.Color |
CAPTION_BUTTON2_COLOR_HIGHLIGHT
The background color of the CLOSE (X) caption buttons when mouse hover over it.
|
private static int |
CHECKBOX_SIZE
Checkbox width or length
|
private static int |
CHECKBOX_SPACE
The space between checkbox and its label.
|
protected static int |
COMBOBOX_BUTTON_WIDTH
The width of the combobox button.
|
private java.util.Map<java.lang.Integer,ColorRgb> |
defaultColors
Cached map with default system colors.
|
private static java.awt.Color |
HIGHLIGHT_BACKGROUND_COLOR
Background color for highlighted text (Eg.
|
private java.util.Map<java.lang.String,ImageWrapper<java.awt.image.BufferedImage>> |
imgCache
Cache with read /decoded images.
|
private static java.awt.Color |
MENU_BACKGROUND_SELECTED_COLOR
Background color for highlighted menu items.
|
private static java.awt.Color |
MENU_BAR_BACKGROUND_COLOR
Background color for menu-menus.
|
protected static int |
MENU_CHECKMARK_WIDTH
The amount of space reserved for the checkmark used by checkable menus.
|
private static java.awt.Color |
MENU_FOREGROUND_COLOR
Foreground color for (all) menus.
|
protected static int |
MENU_LEFT_PAD
The amount of space at the left of the text in a menu item.
|
private static java.awt.Color |
MENU_POPUP_BACKGROUND_COLOR
Background color for drop-down and popup menus.
|
private static int |
MENU_RIGHT_PAD
The amount of space at the right of the text in a menu item.
|
static java.lang.String |
NAME
Short name
|
private static java.awt.Color |
SCROLL_BORDER_COLOR
The color of the border of a scrollbar.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_DISABLED
The background color of the of a scrollbar button when disabled.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_HIGHLIGHT
The background color of the of a scrollbar button when mouse is hovering it.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_NORMAL
The background color of the of a scrollbar button in normal state.
|
private static java.awt.Color |
SCROLL_BUTTON_COLOR_PRESSED
The background color of the of a scrollbar button when pressed.
|
private static int |
SCROLL_BUTTON_HEIGHT
Size of the scroll button on the direction of the scroll.
|
private static int |
SCROLL_BUTTON_WIDTH
Size of the scroll button on the direction perpendicular to scroll direction.
|
private static java.awt.Color |
SCROLL_CORNER_COLOR
The color of the corner of a scrollbar.
|
protected static java.awt.Color |
SCROLL_GAUGE_COLOR
The color of the background of a scrollbar.
|
private static int |
SCROLL_GAUGE_WIDTH
Actual width of the scrollbar.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_DISABLED
The color of the of a scrollbar thumb/slider when disabled.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_HOVER
The color of the of a scrollbar thumb/slider when mouse is over it.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_NORMAL
The color of the of a scrollbar thumb/slider in normal state.
|
private static java.awt.Color |
SCROLL_SLIDER_COLOR_PRESSED
The color of the of a scrollbar thumb/slider when pressed.
|
private static int |
SCROLL_SLIDER_WIDTH
Width of the thumb button on the direction perpendicular to scroll direction.
|
private static int |
TITLE_BAR_HEIGHT_DIALOG
The height of the titlebar of normal dialog (NOT maximized).
|
private static int |
TITLE_BAR_HEIGHT_MAXIMIZED
The height of the titlebar when window is maximized.
|
private static int |
TITLE_BAR_HEIGHT_WINDOW
The height of the titlebar of normal window (NOT maximized).
|
private static java.awt.Color |
TOOLTIP_BACKGROUND_COLOR
Background color for tooltips.
|
private static java.awt.Color |
WINDOW_BORDER_COLOR_ACTIVE
The color of the border when window is active.
|
private static java.awt.Color |
WINDOW_BORDER_COLOR_INACTIVE
The color of the border when window is NOT active.
|
private static java.awt.Color |
WINDOW_TITLE_COLOR_ACTIVE
The foreground color of the titlebar when window is active.
|
private static java.awt.Color |
WINDOW_TITLE_COLOR_INACTIVE
The foreground color of the titlebar when window is NOT active.
|
private static java.awt.Color |
WINDOW_TITLEBAR_COLOR_ACTIVE
The background color of the titlebar when window is active.
|
private static java.awt.Color |
WINDOW_TITLEBAR_COLOR_INACTIVE
The background color of the titlebar when window is NOT active.
|
private static java.awt.Color |
WORKSPACE_BACKGROUND_COLOR
Background color of the workspace
|
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_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 |
|---|
Windows10Theme() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw3DBorder(ThreeDBorderGuiImpl border,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draws a
ThreeDBorderGuiImpl widget. |
protected void |
drawBrowseColumnLabelBorder(BrowseColumnGuiImpl column,
GuiDriver gd,
int xOffset,
int yOffset,
int w,
int h)
Draw label-style rectangle.
|
protected void |
drawBrowseColumnLabelRect(BrowseColumnGuiImpl column,
GuiDriver gd,
int topOffset,
boolean markersBody,
boolean markersLabel,
boolean selectedRow)
Draw label-style rectangle.
|
protected void |
drawBrowseColumnMarker(GuiDriver gd,
boolean selected,
int topOffset,
int w,
int h)
Draw browse row marker column resctangle.
|
void |
drawBrowseTitlePanel(BrowseGuiImpl browse,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draw the title panel of a
BrowseGuiImpl widget. |
void |
drawButton(AbstractWidget<GuiOutputManager> widget,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int width,
int height,
boolean flat,
boolean highlighted,
boolean isDefault,
boolean mouseOver,
boolean pressed,
boolean keyPressed,
boolean noFocus,
boolean hasPrepackagedImages,
boolean existsFocusByKeyboard,
MnemonicInfo mnemonic,
java.lang.String textLabel,
boolean useResolverColors,
ImageWrapper<?> img,
boolean convert3D,
boolean transparent,
int imgWidth,
int imgHeight,
int imgOffsetX,
int imgOffsetY,
ColorRgb frameBgColor)
Draw a button.
|
void |
drawCaptionButton(CaptionButton button,
GuiDriver gd,
int x,
int y,
int width,
int height)
Renders a
CaptionButton. |
void |
drawComboBoxButton(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean pressed,
boolean enabled,
boolean hasFocus,
boolean mouseOver,
boolean isDropDown,
boolean dropDownActive)
Renders the opening button of the combo box widget.
|
void |
drawComboBoxEntryField(ComboBoxGuiImpl combo,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
FontDetails<?> font,
boolean pressed,
boolean enabled,
boolean hover,
boolean existsFocusByKeyboard)
Renders the entry field of a combo box.
|
void |
drawComboBoxFieldBorder(ComboBoxGuiImpl combo,
GuiDriver gd,
int x,
int y,
int width,
int height,
boolean pressed,
boolean enabled,
boolean hover)
Renders the border (and possibly the background) of the combo box widget.
|
void |
drawFileChooserThumbnailBackground(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean selected,
boolean hover,
boolean focus)
Draws a File or Folder Thumbnail of from a file/dir chooser dialog.
|
void |
drawFillInBorder(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
boolean border3D,
boolean hasFocus,
boolean hover)
Renders the border (and possibly the background) of the fill-in widget.
|
void |
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 |
drawMenuBarElement(MenuElement me,
GuiDriver gd,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
boolean hover)
Draws an element of a menu in a menubar.
|
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.
|
private static void |
drawMenuTitle(MenuElement me,
GuiDriver gd,
GuiFontResolver gf,
java.lang.String title,
MnemonicInfo label,
int tX,
int tY)
Draws title string at the specified point.
|
void |
drawProgressBar(ProgressBarGui pb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws progress bar
ProgressBarGui widget. |
private static void |
drawProgressBarBar(ProgressBarGui pb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws progress bar
ProgressBarGui widget bar. |
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 |
drawSelectionFocus(GuiDriver gd,
int x,
int y,
int width,
int height)
Utility method for drawing a dotted rectangle using XOR operation.
|
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 |
drawSliderThumb(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w,
int h)
Draws the slider thumb 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 |
drawStatusBar(GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
java.lang.String text,
GuiFontResolver.FontCache cache,
NativePoint bounds,
NativeDimension txtDim,
boolean resizable)
Renders the status bar of a top-level window.
|
void |
drawToggleBox(ToggleBoxGuiImpl cb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
boolean pressed,
boolean hover,
boolean existsFocusByKeyboard)
Renders a GUI toggle box widget.
|
void |
drawToolTip(GuiDriver gd,
int x,
int y,
int width,
int height,
FontDetails fnt,
java.lang.String text)
Draw a
ToolTip. |
void |
drawWindowBorder(GuiDriver gd,
int x,
int y,
int width,
int height,
NativeInsets border,
boolean active)
Renders borders of a top-level window.
|
void |
drawWindowTitle(GuiDriver gd,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
java.lang.String title,
boolean active)
Renders the text on the titlebar of a top-level window.
|
void |
drawWindowTitleBar(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean active)
Renders the background of the titlebar of a top-level window.
|
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 |
getBrowseDataOffsetLeft(BrowseTextAlignment alignment)
Get left offset of a text inside a browse cell.
|
int |
getBrowseLabelOffsetLeft(BrowseTextAlignment alignment)
Get left offset of a text inside a browse label.
|
protected ImageWrapper |
getBrowseMarkerArrow(boolean selected)
Get row marker image for a row.
|
int |
getCaptionButtonHeight(CaptionButtonType type,
boolean maximized)
Returns the height of a caption button on window's title bar.
|
int |
getCaptionButtonsAlignment(CaptionButtonType type)
Get the alignment of caption button for this theme.
|
int |
getCaptionButtonWidth(CaptionButtonType type,
boolean dialog)
Returns the width of a caption button on window's title bar.
|
int |
getCheckBoxSize()
Obtain the size of image on a checkbox widget.
|
int |
getCheckBoxSpace()
Obtains the space needed by a checkbox widget.
|
int |
getComboBoxButtonSize()
Obtain the size of the button that opens the combo box.
|
int |
getComboBoxDropDownOffset()
Obtain the vertical distance between the combo box and the scrolling selection list.
|
int |
getComboBoxEntryShift()
Obtain the shifting distance in a combo box widget.
|
int |
getComboBoxFieldExtraSpace(boolean horiz,
boolean is3D)
Obtain the field extra space for combo box layout.
|
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.
|
int |
getDialogExtraHeight()
Get the windows 10 theme specific extra pixels difference value for fialog frame height.
|
int |
getDialogExtraWidth()
Get the windows 10 theme specific extra pixels difference value for fialog frame width.
|
ColorRgb |
getFileChooserForegroundColor(GuiDriver gd,
boolean focused,
boolean selected,
boolean hover,
boolean filename,
boolean infoLabel,
boolean infodata)
Obtain color information needed to render the foreground of a thumbnail.
|
ImageWrapper<java.awt.image.BufferedImage> |
getImage(java.lang.String name,
int w,
int h,
boolean antialias)
Obtain an image resource specific to this
Theme. |
int |
getMenuBarElementMinSize(boolean horiz)
Obtain the minimum size of a titlebar element for this Theme, including any border.
|
int |
getMenuCheckmarkWidth()
Obtain the width of the check mark to for togglable menus.
|
int |
getMenuItemHeight(MenuElement menuItem)
Obtain the height of a
MenuElement in a menu widget. |
int |
getMenuLeftPad()
Obtain the left padding of the test in a menu item.
|
int |
getMenuRightPad()
Obtain the right padding of the test in a menu item.
|
int |
getMenuSeparatorHeight()
Obtain the fixed height of a separator in a popup menu widget.
|
java.lang.String |
getName()
Get the name of this
Theme. |
char |
getPasswordCharacter()
Obtain the character used to replace text in password fields.
|
protected ImageWrapper<java.awt.image.BufferedImage> |
getPngImage(java.lang.String imagePath)
Utility method that loads a image (recommended in PNG format because it is lossless and has
support for full 8 bit alpha channel, but not otherwise restricted to).
|
protected ImageWrapper |
getRadioButtonImage(boolean on,
boolean enabled,
boolean hover,
boolean pressed)
Obtain the image from a radio button with specified attributes.
|
int |
getRadioButtonImageSpace()
Obtain the distance before text, including the radio button (text offset).
|
protected ImageWrapper |
getRowToggleImage(boolean checked)
Get the image of a non-edited in-browse toggle-box.
|
NativePoint |
getRowToggleOffset(BrowseColumnGuiImpl column,
boolean editor)
Get the offset of the in-browse toggle-box relatively to the containing cell.
|
NativeDimension |
getRowToggleSize(BrowseColumnGuiImpl column,
boolean editor)
Get the size of the in-browse toggle-box.
|
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 |
getScrollBarThumbWidth()
Obtain the thumb/slider width in a scrollbar widget.
|
java.lang.String |
getSliderThumbImageName(SliderGuiImpl slider,
boolean horiz)
Gets the Windows10 theme slider thumb image name to draw of a
SliderGuiImpl widget. |
NativeDimension |
getSliderThumbRegularDimension(SliderGuiImpl.TicMarks tm)
Gets the Classic theme slider thumb size of a
SliderGuiImpl widget. |
protected ColorRgb |
getSliderTicmarkColor(GuiColorResolver gc)
Obtain the color used for drawing the tic-marks for this
Theme. |
int |
getSpaceBeforeButton(CaptionButtonType type)
Return the amount of space to the right of this button.
|
java.util.Map<java.lang.String,java.lang.String> |
getStandardFontTable()
Obtain the map of standard fonts specific to current
Theme, to which a key defaults,
if not overridden in the directory. |
Theme.TextLookAndFeel |
getTextLookAndFeel(GuiColorResolver gcd,
GuiColorResolver gce)
Returns text look and feel.
|
int |
getTitleBarHeight(boolean maximized,
boolean dialog)
Returns the height of window's titleBar.
|
NativeInsets |
getWindowBorderInsets(boolean modal)
Returns the window's border insets.
|
int |
getWindowIconAlignment()
Get the icon alignment for this theme.
|
int |
getWindowTitleAlignment()
Get the title alignment for this theme.
|
boolean |
isClassic()
Check whether this is a classic theme.
|
boolean |
isMouseHoverSensitive()
Check if the theme is mouse hover sensitive.
|
double |
layoutTitleBar(TopLevelWindow window,
Widget icon,
ClientDrivenLabel title,
CaptionButton[] buttons,
double width,
CoordinatesConversion c)
Do the layout of a titlebar.
|
void |
releaseResources()
Release any held resources when this
Theme is removed. |
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.
|
drawAlertBox, drawBrowseCell, drawBrowseCellLabel, drawBrowseCellText, drawBrowseColumnDrag, drawBrowseColumnLabel, drawBrowseColumnSetBackground, drawBrowseMarkersColumn, drawBrowseNormalColumn, drawBrowseResizingColumn, drawBrowseRowHighlight, drawCaret, drawEditorCaret, drawEditorContent, drawFillInCaret, drawLabel, drawLabelUnderline, drawRowToggleImage, drawSliderFrame, drawSliderTicMarks, drawSliderValue, drawTabBarWidget, drawTabBarWidgetItem, drawTabPageWidget, drawTabPageWidgetItem, drawText, drawTooltipWorker, drawTreeListBody, drawTreeListCaption, drawTreeListCaptionItem, drawTreeViewBody, get3DBorderOffset, getAlertBoxPadding, getBinaryResource, getBinaryResourceCommonLocation, getBrowseLabelOffsetRight, getCalendarBodyBackgroundColor, getCalendarBodyForegroundColor, getCalendarTitleBackgroundColor, getCalendarTitleForegroundColor, getCalendarTrailingBackgroundColor, getCalendarTrailingForegroundColor, getColumnBackgroundColor, getColumnLabelBackgroundColor, getHyperlinkColor, getHyperlinkFont, getImage, getMenuInsets, getMenuSmArrowWidth, getPrebuiltArrowImageSize, getRadioButtonExtraDist, getRowToggleOffsetCentered, getScrollBarIntersectionColor, getScrollBarThumbMinSize, getSelectedDayBackgroundColor, getSelectedDayForegroundColor, getSliderThumbSmallDimension, getSortArrowClipPoint, getTextLookAndFeel, getTitleBarFont, getTitleBarTextColor, getTreeViewCheckBoxWidth, getTreeViewNodeContentHorizontalOffset, getTreeViewNodeHeight, getTreeViewNodeHorizontalOffset, getTreeViewNodeImageVerticalOffset, getTreeViewNodeLabelAvailableWidth, getTreeViewNodeLabelHeight, getTreeViewNodeLabelHorizontalOffset, getTreeViewNodeLabelVerticalOffset, getTreeViewNodeVerticalOffset, isBrowseLabelBorderDrawQuirk, isOldBrowseSelectionBar, isTreeViewCheckboxAt, setDownArrowImages, setLeftArrowImages, setOldBrowseSelectionBar, setRightArrowImages, setUpArrowImagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFillInNativeInsets, isFlat, setClientMetricspublic static final java.lang.String NAME
protected static final java.awt.Color SCROLL_GAUGE_COLOR
private static final java.awt.Color WINDOW_BORDER_COLOR_ACTIVE
private static final java.awt.Color WINDOW_BORDER_COLOR_INACTIVE
private static final java.awt.Color WINDOW_TITLEBAR_COLOR_ACTIVE
private static final java.awt.Color WINDOW_TITLEBAR_COLOR_INACTIVE
private static final java.awt.Color WINDOW_TITLE_COLOR_ACTIVE
private static final java.awt.Color WINDOW_TITLE_COLOR_INACTIVE
private static final java.awt.Color CAPTION_BUTTON_COLOR_INACTIVE
private static final java.awt.Color CAPTION_BUTTON_CLOSE_SMALL_COLOR_INACTIVE
private static final java.awt.Color CAPTION_BUTTON_COLOR_ACTIVE
private static final java.awt.Color CAPTION_BUTTON_COLOR_HIGHLIGHT
private static final java.awt.Color CAPTION_BUTTON_COLOR_DOWN
private static final java.awt.Color CAPTION_BUTTON2_COLOR_HIGHLIGHT
private static final java.awt.Color CAPTION_BUTTON2_COLOR_DOWN
private static final java.awt.Color CAPTION_BUTTON_CLOSE_SMALL_ACTIVE
private static final int TITLE_BAR_HEIGHT_DIALOG
private static final int TITLE_BAR_HEIGHT_WINDOW
private static final int TITLE_BAR_HEIGHT_MAXIMIZED
private static final int CAPTION_BUTTON_HEIGHT
private static final int CAPTION_BUTTON_HEIGHT_MAXIMIZED
private static final int CAPTION_BUTTON_CLOSE_SMALL_HEIGHT
private static final int CAPTION_BUTTON_WIDTH
private static final int CAPTION_BUTTON_WIDTH_DIALOG
private static final java.awt.Color SCROLL_CORNER_COLOR
private static final java.awt.Color SCROLL_BORDER_COLOR
private static final java.awt.Color SCROLL_BUTTON_COLOR_PRESSED
private static final java.awt.Color SCROLL_BUTTON_COLOR_NORMAL
private static final java.awt.Color SCROLL_BUTTON_COLOR_DISABLED
private static final java.awt.Color SCROLL_BUTTON_COLOR_HIGHLIGHT
private static final java.awt.Color SCROLL_SLIDER_COLOR_PRESSED
private static final java.awt.Color SCROLL_SLIDER_COLOR_NORMAL
private static final java.awt.Color SCROLL_SLIDER_COLOR_DISABLED
private static final java.awt.Color SCROLL_SLIDER_COLOR_HOVER
private static final java.awt.Color TOOLTIP_BACKGROUND_COLOR
private static final java.awt.Color MENU_POPUP_BACKGROUND_COLOR
private static final java.awt.Color MENU_BACKGROUND_SELECTED_COLOR
private static final java.awt.Color MENU_BAR_BACKGROUND_COLOR
private static final java.awt.Color MENU_FOREGROUND_COLOR
private static final java.awt.Color WORKSPACE_BACKGROUND_COLOR
private static final java.awt.Color HIGHLIGHT_BACKGROUND_COLOR
private static final java.awt.Color BACKGROUND_3DFACE_COLOR
private static final java.awt.Color BUTTON_FOREGROUND_COLOR
private static final int SCROLL_BUTTON_WIDTH
private static final int SCROLL_SLIDER_WIDTH
private static final int SCROLL_GAUGE_WIDTH
private static final int SCROLL_BUTTON_HEIGHT
private static final int CHECKBOX_SIZE
private static final int CHECKBOX_SPACE
protected static final int COMBOBOX_BUTTON_WIDTH
protected static final int MENU_LEFT_PAD
private static final int MENU_RIGHT_PAD
private static final int BROWSE_LABEL_OFFSET_LEFT
private static final int BROWSE_DATA_OFFSET_LEFT
protected static final int MENU_CHECKMARK_WIDTH
private java.util.Map<java.lang.String,ImageWrapper<java.awt.image.BufferedImage>> imgCache
private java.util.Map<java.lang.Integer,ColorRgb> defaultColors
public java.lang.String getName()
Theme.getName in interface ThemegetName in class ClassicThemepublic void releaseResources()
Theme is removed.releaseResources in interface ThemereleaseResources in class ClassicThemepublic ImageWrapper<java.awt.image.BufferedImage> 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 releaseResources() is
called, when a new Theme is loaded and this one is removed.getImage in interface ThemegetImage in class ClassicThemename - 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 java.lang.String getBinaryResourceLocation()
getBinaryResourceLocation in interface ThemegetBinaryResourceLocation in class ClassicThemepublic boolean isMouseHoverSensitive()
isMouseHoverSensitive in interface ThemeisMouseHoverSensitive in class ClassicThemetrue. This theme is mouse hover sensitive.public boolean isClassic()
isClassic in interface ThemeisClassic in class ClassicThemefalse.public java.util.Map<java.lang.Integer,ColorRgb> getDefaultSystemPalette()
getDefaultSystemPalette in interface ThemegetDefaultSystemPalette in class ClassicThemepublic 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 ClassicThemeTheme.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 ClassicThemeTheme.public int getTitleBarHeight(boolean maximized,
boolean dialog)
getTitleBarHeight in interface ThemegetTitleBarHeight in class ClassicThememaximized - On some themes, the maximized window have a different title bar height when
maximized.dialog - Flag indicating this is a dialog title-bar.public NativeInsets getWindowBorderInsets(boolean modal)
getWindowBorderInsets in interface ThemegetWindowBorderInsets in class ClassicThememodal - Usually the modal dialogs/windows have a different width if modal.public int getCaptionButtonHeight(CaptionButtonType type, boolean maximized)
getCaptionButtonHeight in interface ThemegetCaptionButtonHeight in class ClassicThemetype - On some specific themes, the height of buttons is not the same.maximized - On some themes, the maximized window have a different button height when
maximized.public int getCaptionButtonWidth(CaptionButtonType type, boolean dialog)
getCaptionButtonWidth in interface ThemegetCaptionButtonWidth in class ClassicThemetype - On some specific themes, the width of buttons is not the same.dialog - true for dialogs. The dialogs may have specific width for caption buttons.public double layoutTitleBar(TopLevelWindow window, Widget icon, ClientDrivenLabel title, CaptionButton[] buttons, double width, CoordinatesConversion c)
Theme can define how its components are arranged.layoutTitleBar in interface ThemelayoutTitleBar in class ClassicThemewindow - The window whose titlebar is laid out.icon - The icon widget of the window (if any).title - The Label that displays the window's title.buttons - An array with the CaptionButton-s present on the titlebar of this window.width - The width of the window (in character units).c - the CoordinatesConversion used for possible units conversions.public int getCaptionButtonsAlignment(CaptionButtonType type)
getCaptionButtonsAlignment in interface ThemegetCaptionButtonsAlignment in class ClassicThemetype - On some specific themes, the alignment of buttons is not the same.public int getWindowTitleAlignment()
getWindowTitleAlignment in interface ThemegetWindowTitleAlignment in class ClassicThemepublic int getWindowIconAlignment()
getWindowIconAlignment in interface ThemegetWindowIconAlignment in class ClassicThemepublic int getSpaceBeforeButton(CaptionButtonType type)
getSpaceBeforeButton in interface ThemegetSpaceBeforeButton in class ClassicThemetype - The caption button type.public void drawCaptionButton(CaptionButton button, GuiDriver gd, int x, int y, int width, int height)
CaptionButton.drawCaptionButton in interface ThemedrawCaptionButton in class ClassicThemebutton - The CaptionButton to be drawn.gd - The GuiDriver used for drawing operations. Note that internal state of
this object can affect the resulting output.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawWindowTitleBar(GuiDriver gd, int x, int y, int width, int height, boolean active)
drawWindowTitleBar in interface ThemedrawWindowTitleBar in class ClassicThemegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.active - true if the drawn windows is active.public void drawWindowTitle(GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, java.lang.String title, boolean active)
drawWindowTitle in interface ThemedrawWindowTitle in class ClassicThemegd - The GuiDriver used for drawing operations.gf - The GuiFontResolver for selecting the required font.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.title - The title of the window.active - true if the drawn windows is active.public void drawWindowBorder(GuiDriver gd, int x, int y, int width, int height, NativeInsets border, boolean active)
drawWindowBorder in interface ThemedrawWindowBorder in class ClassicThemegd - 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 ClassicThemewidget - 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 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 ClassicThemerb - 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 getRadioButtonImageSpace()
getRadioButtonImageSpace in interface ThemegetRadioButtonImageSpace in class ClassicThemeprotected ImageWrapper getRadioButtonImage(boolean on, boolean enabled, boolean hover, boolean pressed)
getRadioButtonImage in class ClassicThemeon - The button state. true if button is on.enabled - true is button enabled.hover - true if mouse is hovering over the button. Some styles are mouse hovering
sensitive.pressed - true if the radio button is pressed (the mouse button is down on the
button).ImageWrapper containing the image with requested properties.public int getCheckBoxSpace()
getCheckBoxSpace in interface ThemegetCheckBoxSpace in class ClassicThemepublic int getCheckBoxSize()
getCheckBoxSize in interface ThemegetCheckBoxSize in class ClassicThemepublic 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 ClassicThemecb - 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 int getScrollBarButtonWidth()
getScrollBarButtonWidth in interface ThemegetScrollBarButtonWidth in class ClassicThemepublic int getScrollBarThumbWidth()
getScrollBarThumbWidth in interface ThemegetScrollBarThumbWidth in class ClassicThemepublic int getScrollBarGaugeWidth()
getScrollBarGaugeWidth in interface ThemegetScrollBarGaugeWidth in class ClassicThemepublic int getScrollBarButtonHeight()
getScrollBarButtonHeight in interface ThemegetScrollBarButtonHeight in class ClassicThemepublic void drawScrollBarGauge(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean horizontal)
drawScrollBarGauge in interface ThemedrawScrollBarGauge in class ClassicThemegd - 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 ClassicThemegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - If the mouse is dragging the thumb of the scrollbar.hover - Is mouse hovering this component ?horizontal - The direction of the scrollbar, true for horizontal.public void drawScrollBarButton(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, ScrollBar.Position pos, boolean horizontal, boolean enabled, boolean pressed, boolean highlighted)
drawScrollBarButton in interface ThemedrawScrollBarButton in class ClassicThemegd - 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 ClassicThemepublic 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 ClassicThemegd - 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 Theme.TextLookAndFeel getTextLookAndFeel(GuiColorResolver gcd, GuiColorResolver gce)
getTextLookAndFeel in interface ThemegetTextLookAndFeel in class ClassicThemegcd - The gui color resolver used for normal text.gce - The gui color resolver used for selected text.public void drawStatusBar(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, java.lang.String text, GuiFontResolver.FontCache cache, NativePoint bounds, NativeDimension txtDim, boolean resizable)
drawStatusBar in interface ThemedrawStatusBar in class ClassicThemegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used for 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.text - The text in the status bar.cache - The font cache used for text rendering.bounds - The NativePoint where the text is drawn.txtDim - The NativeDimension of the text displayed in status bar.resizable - true window is resizable. In this case a "grip" is drawn in the lower right
corner.public int getComboBoxFieldExtraSpace(boolean horiz,
boolean is3D)
getComboBoxFieldExtraSpace in interface ThemegetComboBoxFieldExtraSpace in class ClassicThemehoriz - Direction. true for horizontal space.is3D - Whether this is widget has a 3D border.public int getComboBoxEntryShift()
getComboBoxEntryShift in interface ThemegetComboBoxEntryShift in class ClassicThemepublic int getComboBoxButtonSize()
getComboBoxButtonSize in interface ThemegetComboBoxButtonSize in class ClassicThemepublic 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 ClassicThemegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget is enabled.hasFocus - Whether the widget has the focus.mouseOver - The mouse is hovering over the fill-in widget.isDropDown - the combo-box type is DROP_DOWNdropDownActive - true if drop-down is visiblepublic void drawComboBoxFieldBorder(ComboBoxGuiImpl combo, GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hover)
drawComboBoxFieldBorder in interface ThemedrawComboBoxFieldBorder in class ClassicThemecombo - The ComboBoxGuiImpl whose border is being painted.gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget has the focus.hover - The mouse is hovering over the fill-in widget.public void drawComboBoxEntryField(ComboBoxGuiImpl combo, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, FontDetails<?> font, boolean pressed, boolean enabled, boolean hover, boolean existsFocusByKeyboard)
drawComboBoxEntryField in interface ThemedrawComboBoxEntryField in class ClassicThemecombo - 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 drawSelectionListBackground(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
drawSelectionListBackground in interface ThemedrawSelectionListBackground in class ClassicThemegd - 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 ClassicThemebox - 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 int getComboBoxDropDownOffset()
getComboBoxDropDownOffset in interface ThemegetComboBoxDropDownOffset in class ClassicThemepublic int getMenuBarElementMinSize(boolean horiz)
getMenuBarElementMinSize in interface ThemegetMenuBarElementMinSize in class ClassicThemehoriz - If true returns the minimum width, if false returns minimum height.public int getMenuLeftPad()
getMenuLeftPad in interface ThemegetMenuLeftPad in class ClassicThemepublic int getMenuRightPad()
getMenuRightPad in interface ThemegetMenuRightPad in class ClassicThemepublic int getMenuCheckmarkWidth()
getMenuCheckmarkWidth in interface ThemegetMenuCheckmarkWidth in class ClassicThemepublic int getMenuSeparatorHeight()
getMenuSeparatorHeight in interface ThemegetMenuSeparatorHeight in class ClassicThemepublic int getMenuItemHeight(MenuElement menuItem)
MenuElement in a menu widget.getMenuItemHeight in interface ThemegetMenuItemHeight in class ClassicThememenuItem - the menu itempublic void drawMenuBackground(GuiDriver gd, int x, int y, int width, int height, boolean popup)
drawMenuBackground in interface ThemedrawMenuBackground in class ClassicThemegd - 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 ClassicThemegd - 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 drawMenuBarElement(MenuElement me, GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, boolean hover)
drawMenuBarElement in interface ThemedrawMenuBarElement in class ClassicThememe - The MenuElement widget to be painted.gd - The GuiDriver used for drawing operations.gf - GUI font resolver.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 drawMenuItemBackground(AbstractWidget item, GuiDriver gd, int x, int y, int width, int height, boolean hover)
drawMenuItemBackground in interface ThemedrawMenuItemBackground in class ClassicThemeitem - 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 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 ClassicThemeitem - 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.private static void drawMenuTitle(MenuElement me, GuiDriver gd, GuiFontResolver gf, java.lang.String title, MnemonicInfo label, int tX, int tY)
me - MenuItem or SubMenu widget.gd - GUI driver.gf - GUI font resolver.title - The title of menu widget.label - Prepared title string.tX - Text starting point.tY - Offset to center text.java.lang.IllegalArgumentException - When me is not a MenuItem or SubMenu.protected ImageWrapper<java.awt.image.BufferedImage> getPngImage(java.lang.String imagePath)
imagePath - The path to image resource inside the bundle (jar).ImageWrapper containing the requested image resource or null if
some error occurred (resource could not be found or it could not be decoded).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 ClassicThemebrowse - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver to be used.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.protected void drawBrowseColumnLabelRect(BrowseColumnGuiImpl column, GuiDriver gd, int topOffset, boolean markersBody, boolean markersLabel, boolean selectedRow)
drawBrowseColumnLabelRect in class ClassicThemecolumn - 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 ?protected void drawBrowseColumnMarker(GuiDriver gd, boolean selected, int topOffset, int w, int h)
gd - The GuiDriver used for drawing operations.selected - Is the current row selected ?topOffset - Top offset, in pixels.w - The border width in pixels.h - The border height in pixels.protected void drawBrowseColumnLabelBorder(BrowseColumnGuiImpl column, GuiDriver gd, int xOffset, int yOffset, int w, int h)
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 ClassicThemegd - the active GuiDriver used to draw the browse widget.public ColorRgb getBrowseCellSeparatorColor(BrowseGuiImpl browse)
getBrowseCellSeparatorColor in interface ThemegetBrowseCellSeparatorColor in class ClassicThemebrowse - The browse widget.protected void setBrowseCellBackgroundSelectionColor(GuiDriver gd, ColorRgb unselColor)
gd GuiDriver.setBrowseCellBackgroundSelectionColor in class ClassicThemegd - The GuiDriver to set the color for separators.unselColor - The color for unselected cells. If null then the unselected cells'
background is not drawn.public ColorRgb getBrowseCellForegroundColor(BrowseColumnGuiImpl column, boolean label, boolean selected, int viewportRowIndex)
getBrowseCellForegroundColor in interface ThemegetBrowseCellForegroundColor in class ClassicThemecolumn - 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.protected ImageWrapper getBrowseMarkerArrow(boolean selected)
getBrowseMarkerArrow in class ClassicThemeselected - true if the row is selected.public void drawToolTip(GuiDriver gd, int x, int y, int width, int height, FontDetails fnt, java.lang.String text)
ToolTip.drawToolTip in interface ThemedrawToolTip in class ClassicThemegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.fnt - The FontDetails to be used when drawing the text.text - The actual text to be drawn.public void drawFrameTitle(FrameGuiImpl frame, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
BrowseGuiImpl widget.
drawBrowseTitlePanel(com.goldencode.p2j.ui.client.gui.BrowseGuiImpl, com.goldencode.p2j.ui.client.gui.driver.GuiDriver, com.goldencode.p2j.ui.client.gui.GuiColorResolver, com.goldencode.p2j.ui.client.gui.GuiFontResolver, int, int, int, int).drawFrameTitle in interface ThemedrawFrameTitle in class ClassicThemeframe - 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 NativePoint getRowToggleOffset(BrowseColumnGuiImpl column, boolean editor)
getRowToggleOffset in interface ThemegetRowToggleOffset in class ClassicThemecolumn - The column that contains the toggle-box.editor - true if the toggle-box is contained in the current cell, i.e. it is the
editor. false for all other inactive toggle boxes.public NativeDimension getRowToggleSize(BrowseColumnGuiImpl column, boolean editor)
getRowToggleSize in interface ThemegetRowToggleSize in class ClassicThemecolumn - The column that contains the toggle-box.editor - true if the toggle-box is contained in the current cell, i.e. it is the
editor. false for all other inactive toggle boxes.public void drawLineBorder(LineBorderGuiImpl border, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
LineBorderGuiImpl widget.drawLineBorder in interface ThemedrawLineBorder in class ClassicThemeborder - 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 ClassicThemerect - 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 ClassicThemeborder - 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 void drawSelectionFocus(GuiDriver gd, int x, int y, int width, int height)
drawSelectionFocus in interface ThemedrawSelectionFocus in class ClassicThemegd - 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 getBrowseLabelOffsetLeft(BrowseTextAlignment alignment)
getBrowseLabelOffsetLeft in interface ThemegetBrowseLabelOffsetLeft in class ClassicThemealignment - Text alignment.public int getBrowseDataOffsetLeft(BrowseTextAlignment alignment)
getBrowseDataOffsetLeft in interface ThemegetBrowseDataOffsetLeft in class ClassicThemealignment - Text alignment.protected ImageWrapper getRowToggleImage(boolean checked)
getRowToggleImage in class ClassicThemechecked - true if the toggle-box is checked, false it is not
checked.public void drawFileChooserThumbnailBackground(GuiDriver gd, int x, int y, int width, int height, boolean selected, boolean hover, boolean focus)
drawFileChooserThumbnailBackground in interface ThemedrawFileChooserThumbnailBackground in class ClassicThemegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.selected - true if the thumbnail is currently selected.hover - true if the mouse is currently hovering the thumbnail.focus - true if the thumbnail has focus.public ColorRgb getFileChooserForegroundColor(GuiDriver gd, boolean focused, boolean selected, boolean hover, boolean filename, boolean infoLabel, boolean infodata)
getFileChooserForegroundColor in interface ThemegetFileChooserForegroundColor in class ClassicThemegd - The GuiDriver used for drawing operations.focused - true if thumbnail is focused.selected - true if thumbnail is selected.hover - true if mouse hovers the thumbnail.filename - true to obtain the color of the filename.infoLabel - true to obtain the info label (for details view).infodata - true to obtain the info value (for details view).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 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.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 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 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 java.lang.String getSliderThumbImageName(SliderGuiImpl slider, boolean horiz)
SliderGuiImpl widget.getSliderThumbImageName in interface ThemegetSliderThumbImageName in class ClassicThemeslider - The SliderGuiImpl widget.horiz - The slider orientation flag TRUE for horizontal, FALSE
for vertical.public NativeDimension getSliderThumbRegularDimension(SliderGuiImpl.TicMarks tm)
SliderGuiImpl widget.getSliderThumbRegularDimension in interface ThemegetSliderThumbRegularDimension in class ClassicThemetm - The tick mark mode used in SliderGuiImpl widget.public void drawSliderTrack(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w)
SliderGuiImpl widget.drawSliderTrack in interface ThemedrawSliderTrack 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.protected ColorRgb getSliderTicmarkColor(GuiColorResolver gc)
Theme.getSliderTicmarkColor in class ClassicThemegc - The GuiColorResolver used color selection.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 ClassicThemepb - 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.public int getDialogExtraHeight()
getDialogExtraHeight in interface ThemegetDialogExtraHeight in class ClassicThemepublic int getDialogExtraWidth()
getDialogExtraWidth in interface ThemegetDialogExtraWidth in class ClassicThemeprivate static 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.