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.
Modifier and Type | Field and Description |
---|---|
private static java.awt.Color |
BACKGROUND_3DFACE_COLOR
Main background color for 3D objects.
|
private static java.awt.Color |
BUTTON_FOREGROUND_COLOR
The test colors on enabled buttons.
|
private static java.awt.Color |
CAPTION_BUTTON_COLOR_ACTIVE
The background color of 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.
|
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.
|
private 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
The height of the titlebar of normal window (NOT maximized).
|
private static int |
TITLE_BAR_HEIGHT_MAXIMIZED
The height of the titlebar when window is 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
|
ROW_TOGGLE_SIZE, SCROLLBAR_THUMB_MIN_SIZE, SCROLLBAR_WIDTH, THREE_D_BORDER_OFFSET
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_NONE, ALIGN_RIGHT, ALIGN_TOP, 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 |
drawBrowseColumnLabelRect(BrowseColumnGuiImpl column,
GuiDriver gd,
int topOffset,
boolean markersBody,
boolean markersLabel,
boolean selectedRow)
Draw label-style rectangle.
|
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(ButtonGuiImpl button,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Renders borders of a top-level window.
|
void |
drawCaptionButton(CaptionButton button,
GuiDriver gd,
int x,
int y,
int width,
int height)
Renders a
CaptionButton . |
void |
drawComboBoxButton(ComboBoxGuiImpl combo,
GuiDriver gd,
int x,
int y,
int width,
int height,
boolean pressed,
boolean enabled,
boolean hover)
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 |
drawFillInSelection(FillInGuiImpl fillIn,
GuiDriver gd,
int clipWidth,
int clipHeight,
int selX,
int selWidth,
int selHeight,
java.lang.String selTxt,
int font,
ColorRgb bgColor,
ColorRgb fgColor)
Renders the selection (and possibly its background) of the fill-in widget 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(SubMenuGuiImpl 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 void |
drawMenuTitle(MenuElement me,
GuiDriver gd,
GuiFontResolver gf,
java.lang.String title,
MnemonicInfo label,
int tX,
int tY) |
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 |
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)
Renders a single item in a combo box selection list.
|
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)
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.
|
protected ImageWrapper |
getBrowseMarkerArrow(boolean selected)
Get row marker image for a row.
|
int |
getCaptionButtonHeight(boolean maximized)
Returns the height of a caption button on window's title bar.
|
int |
getCaptionButtonsAlignment()
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.
|
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
support 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.
|
int |
getSpaceBeforeButton(CaptionButtonType type)
Return the amount of space to the right of this button.
|
java.util.Map<java.lang.String,java.lang.String> |
getStandardFontTable()
Obtain the map of standard fonts specific to current
Theme , to which a key defaults,
if not overridden in the directory. |
int |
getTitleBarHeight(boolean maximized)
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 |
isMouseHoverSensitive()
Check if the theme is mouse hover sensitive.
|
double |
layoutTitleBar(TopLevelWindow window,
Widget icon,
Label 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)
Set the selected cell background color into the
gd GuiDriver . |
protected void |
setBrowseCellSeparatorColor(GuiDriver gd,
BrowseGuiImpl browse)
Set the cell separator color into the
gd GuiDriver . |
protected void |
setCompositeXorColor(GuiDriver gd)
Sets the composite color for XOR operations on browse widgets.
|
drawAlertBox, drawBrowseCell, drawBrowseCellText, drawBrowseColumnDrag, drawBrowseColumnLabel, drawBrowseMarkersColumn, drawBrowseNormalColumn, drawBrowseResizingColumn, drawBrowseRowHighlight, drawCaret, drawEditorCaret, drawEditorContent, drawFillInCaret, drawLabel, drawLabelUnderline, drawRowToggleImage, get3DBorderOffset, getAlertBoxPadding, getMenuInsets, getMenuSmArrowWidth, getPrebuiltArrowImageSize, getRadioButtonExtraDist, getRowToggleOffsetCentered, getScrollBarThumbMinSize, getTitleBarFont, getTitleBarTextColor, setBrowseCellForegroundColor
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_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 int TITLE_BAR_HEIGHT
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_WIDTH
private static final int CAPTION_BUTTON_WIDTH_DIALOG
private static final java.awt.Color SCROLL_GAUGE_COLOR
private static final java.awt.Color SCROLL_CORNER_COLOR
private static final java.awt.Color SCROLL_BORDER_COLOR
private static final java.awt.Color SCROLL_BUTTON_COLOR_PRESSED
private static final java.awt.Color SCROLL_BUTTON_COLOR_NORMAL
private static final java.awt.Color SCROLL_BUTTON_COLOR_DISABLED
private static final java.awt.Color SCROLL_BUTTON_COLOR_HIGHLIGHT
private static final java.awt.Color SCROLL_SLIDER_COLOR_PRESSED
private static final java.awt.Color SCROLL_SLIDER_COLOR_NORMAL
private static final java.awt.Color SCROLL_SLIDER_COLOR_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
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 Theme
getName
in class ClassicTheme
public void releaseResources()
Theme
is removed.releaseResources
in interface Theme
releaseResources
in class ClassicTheme
public 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 Theme
getImage
in class ClassicTheme
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 ClassicTheme
true
. This theme is mouse hover sensitive.public java.util.Map<java.lang.Integer,ColorRgb> getDefaultSystemPalette()
getDefaultSystemPalette
in interface Theme
getDefaultSystemPalette
in class ClassicTheme
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 ClassicTheme
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 ClassicTheme
Theme
.public int getTitleBarHeight(boolean maximized)
getTitleBarHeight
in interface Theme
getTitleBarHeight
in class ClassicTheme
maximized
- On some themes, the maximized window have a different title bar height when
maximized.public NativeInsets getWindowBorderInsets(boolean modal)
getWindowBorderInsets
in interface Theme
getWindowBorderInsets
in class ClassicTheme
modal
- Usually the modal dialogs/windows have a different width if modal.public int getCaptionButtonHeight(boolean maximized)
getCaptionButtonHeight
in interface Theme
getCaptionButtonHeight
in class ClassicTheme
maximized
- On some themes, the maximized window have a different button height when
maximized.public int getCaptionButtonWidth(CaptionButtonType type, boolean dialog)
getCaptionButtonWidth
in interface Theme
getCaptionButtonWidth
in class ClassicTheme
type
- 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, Label title, CaptionButton[] buttons, double width, CoordinatesConversion c)
Theme
can define how its components are arranged.layoutTitleBar
in interface Theme
layoutTitleBar
in class ClassicTheme
window
- 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()
getCaptionButtonsAlignment
in interface Theme
getCaptionButtonsAlignment
in class ClassicTheme
public int getWindowTitleAlignment()
getWindowTitleAlignment
in interface Theme
getWindowTitleAlignment
in class ClassicTheme
public int getWindowIconAlignment()
getWindowIconAlignment
in interface Theme
getWindowIconAlignment
in class ClassicTheme
public int getSpaceBeforeButton(CaptionButtonType type)
getSpaceBeforeButton
in interface Theme
getSpaceBeforeButton
in class ClassicTheme
type
- The caption button type.public void drawCaptionButton(CaptionButton button, GuiDriver gd, int x, int y, int width, int height)
CaptionButton
.drawCaptionButton
in interface Theme
drawCaptionButton
in class ClassicTheme
button
- 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 Theme
drawWindowTitleBar
in class ClassicTheme
gd
- The GuiDriver
used for drawing operations.x
- The horizontal location (in pixel units) of the widget to be painted/component.y
- The vertical location (in pixel units) of the widget to be painted/component.width
- The width of the painted widget/component.height
- The height of the painted widget/component.active
- true
if the drawn windows is active.public void drawWindowTitle(GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, java.lang.String title, boolean active)
drawWindowTitle
in interface Theme
drawWindowTitle
in class ClassicTheme
gd
- 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 Theme
drawWindowBorder
in class ClassicTheme
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(ButtonGuiImpl button, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
drawButton
in interface Theme
drawButton
in class ClassicTheme
button
- The ButtonGuiImpl
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.public void drawRadioButton(RadioButtonGuiImpl rb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height, boolean focused, boolean hover)
drawRadioButton
in interface Theme
drawRadioButton
in class ClassicTheme
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 getRadioButtonImageSpace()
getRadioButtonImageSpace
in interface Theme
getRadioButtonImageSpace
in class ClassicTheme
protected ImageWrapper getRadioButtonImage(boolean on, boolean enabled, boolean hover, boolean pressed)
getRadioButtonImage
in class ClassicTheme
on
- 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 Theme
getCheckBoxSpace
in class ClassicTheme
public int getCheckBoxSize()
getCheckBoxSize
in interface Theme
getCheckBoxSize
in class ClassicTheme
public 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 ClassicTheme
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 int getScrollBarButtonWidth()
getScrollBarButtonWidth
in interface Theme
getScrollBarButtonWidth
in class ClassicTheme
public int getScrollBarThumbWidth()
getScrollBarThumbWidth
in interface Theme
getScrollBarThumbWidth
in class ClassicTheme
public int getScrollBarGaugeWidth()
getScrollBarGaugeWidth
in interface Theme
getScrollBarGaugeWidth
in class ClassicTheme
public int getScrollBarButtonHeight()
getScrollBarButtonHeight
in interface Theme
getScrollBarButtonHeight
in class ClassicTheme
public void drawScrollBarGauge(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean horizontal)
drawScrollBarGauge
in interface Theme
drawScrollBarGauge
in class ClassicTheme
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 ClassicTheme
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 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 ClassicTheme
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 ClassicTheme
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 ClassicTheme
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 drawFillInSelection(FillInGuiImpl fillIn, GuiDriver gd, int clipWidth, int clipHeight, int selX, int selWidth, int selHeight, java.lang.String selTxt, int font, ColorRgb bgColor, ColorRgb fgColor)
drawFillInSelection
in interface Theme
drawFillInSelection
in class ClassicTheme
fillIn
- The FillInGuiImpl
to be drawn.gd
- The GuiDriver
used for drawing operations.clipWidth
- The width of the clipping area.clipHeight
- The height of the clipping area.selX
- The offset where the selection starts.selWidth
- The width of the selection.selHeight
- The height of the selection.selTxt
- The selected text.font
- The font to be used.bgColor
- The background color of the selection (selection color).fgColor
- The selected text color (foreground color).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 Theme
drawStatusBar
in class ClassicTheme
gd
- 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 Theme
getComboBoxFieldExtraSpace
in class ClassicTheme
horiz
- Direction. true
for horizontal space.is3D
- Whether this is widget has a 3D border.public int getComboBoxEntryShift()
getComboBoxEntryShift
in interface Theme
getComboBoxEntryShift
in class ClassicTheme
public int getComboBoxButtonSize()
getComboBoxButtonSize
in interface Theme
getComboBoxButtonSize
in class ClassicTheme
public void drawComboBoxButton(ComboBoxGuiImpl combo, GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hover)
drawComboBoxButton
in interface Theme
drawComboBoxButton
in class ClassicTheme
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 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 ClassicTheme
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 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 ClassicTheme
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 drawSelectionListBackground(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
drawSelectionListBackground
in interface Theme
drawSelectionListBackground
in class ClassicTheme
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 ClassicTheme
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 int getComboBoxDropDownOffset()
getComboBoxDropDownOffset
in interface Theme
getComboBoxDropDownOffset
in class ClassicTheme
public int getMenuBarElementMinSize(boolean horiz)
getMenuBarElementMinSize
in interface Theme
getMenuBarElementMinSize
in class ClassicTheme
horiz
- If true
returns the minimum width, if false
returns minimum height.public int getMenuLeftPad()
getMenuLeftPad
in interface Theme
getMenuLeftPad
in class ClassicTheme
public int getMenuRightPad()
getMenuRightPad
in interface Theme
getMenuRightPad
in class ClassicTheme
public int getMenuCheckmarkWidth()
getMenuCheckmarkWidth
in interface Theme
getMenuCheckmarkWidth
in class ClassicTheme
public int getMenuSeparatorHeight()
getMenuSeparatorHeight
in interface Theme
getMenuSeparatorHeight
in class ClassicTheme
public int getMenuItemHeight(MenuElement menuItem)
MenuElement
in a menu widget.getMenuItemHeight
in interface Theme
getMenuItemHeight
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 ClassicTheme
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 ClassicTheme
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 drawMenuBarElement(SubMenuGuiImpl me, GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, boolean hover)
drawMenuBarElement
in interface Theme
drawMenuBarElement
in class ClassicTheme
me
- The SubMenuGuiImpl
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 Theme
drawMenuItemBackground
in class ClassicTheme
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 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 ClassicTheme
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.private void drawMenuTitle(MenuElement me, GuiDriver gd, GuiFontResolver gf, java.lang.String title, MnemonicInfo label, int tX, int tY)
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 Theme
drawBrowseTitlePanel
in class ClassicTheme
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.protected void drawBrowseColumnLabelRect(BrowseColumnGuiImpl column, GuiDriver gd, int topOffset, boolean markersBody, boolean markersLabel, boolean selectedRow)
drawBrowseColumnLabelRect
in class ClassicTheme
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 ?protected void setCompositeXorColor(GuiDriver gd)
setCompositeXorColor
in class ClassicTheme
gd
- the active GuiDriver
used to draw the browse widget.protected void setBrowseCellSeparatorColor(GuiDriver gd, BrowseGuiImpl browse)
gd
GuiDriver
.setBrowseCellSeparatorColor
in class ClassicTheme
gd
- The GuiDriver
to set the color for separators.browse
- The browse widget.protected void setBrowseCellBackgroundSelectionColor(GuiDriver gd)
gd
GuiDriver
.setBrowseCellBackgroundSelectionColor
in class ClassicTheme
gd
- The GuiDriver
to set the color for separators.protected ImageWrapper getBrowseMarkerArrow(boolean selected)
getBrowseMarkerArrow
in class ClassicTheme
selected
- 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 Theme
drawToolTip
in class ClassicTheme
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.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 Theme
drawFrameTitle
in class ClassicTheme
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 NativePoint getRowToggleOffset(BrowseColumnGuiImpl column, boolean editor)
getRowToggleOffset
in interface Theme
getRowToggleOffset
in class ClassicTheme
column
- 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 Theme
getRowToggleSize
in class ClassicTheme
column
- 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 Theme
drawLineBorder
in class ClassicTheme
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 ClassicTheme
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 ClassicTheme
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 void drawSelectionFocus(GuiDriver gd, int x, int y, int width, int height)
drawSelectionFocus
in interface Theme
drawSelectionFocus
in class ClassicTheme
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.protected ImageWrapper getRowToggleImage(boolean checked)
getRowToggleImage
in class ClassicTheme
checked
- true
if the toggle-box is checked, false
it is not
checked.