public class ClassicTheme extends java.lang.Object implements Theme
Theme emulates the look of old Windows classic theme. It features very static UI,
with little or no sensitivity to mouse hovering. The color palette is low, with few colors
outside the line of gray tones. This makes the theme useful when application need to run with
lower resources.
The theme features multiple widgets with 3D aspect in order to improve overall look.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassicTheme.TextLookAndFeelImpl
Implements text look and feel immutable instances.
|
Theme.TextLookAndFeel| Modifier and Type | Field and Description |
|---|---|
private static int |
ALERT_BOX_PADDING
Padding for alert boxes.
|
private static java.util.regex.Pattern |
ALL_SPACES_END
Precompiled pattern to work with all space chagacters from the end.
|
private static java.util.regex.Pattern |
ALL_SPACES_START
Precompiled pattern to work with all space chagacters from the start.
|
private static int |
BORDER_SIZE
Border size of main window border.
|
private static int |
BROWSE_DATA_OFFSET_LEFT
Left offset of a text inside a browse cell.
|
private static int |
BROWSE_DATA_OFFSET_LEFT_RA
Left offset of a text inside a browse cell, if column is right-aligned.
|
private static int |
BROWSE_LABEL_OFFSET_LEFT
Left offset of a text inside a browse label.
|
private static int |
BROWSE_LABEL_OFFSET_LEFT_RA
Left offset of a text inside a browse label, if column is right-aligned.
|
private static int |
BROWSE_LABEL_OFFSET_RIGHT
Right offset of a text inside a browse label.
|
private static ColorRgb |
BROWSE_ROW_XOR_COLOR
Color which is XORed with background to draw current row highlighting (dotted rectangle) in
browse widget.
|
private static int |
CAPTION_BUTTON_HEIGHT
Standard caption button height for this theme.
|
private static int |
CAPTION_BUTTON_WIDTH
Standard caption button width for this theme.
|
private java.util.Map<java.lang.String,ImageWrapper<?>> |
captionButtonImages
Cache with images from caption buttons.
|
private static ColorRgb |
CARET_XOR_WHITE_COLOR
The second caret color of two opposites.
|
protected static java.lang.String |
CELLS_NEW_LINE
New line separators for a cell text.
|
private static int |
CHECKBOX_SIZE
Checkbox width or length
|
private static int |
CHECKBOX_SPACE
The space between checkbox and its label.
|
private static int |
COMBO_BOX_BUTTON_SIZE
Size of the drop-down button image.
|
private static int |
COMBO_BOX_ENTRY_DELTA
Dimension delta to draw entry field for DROP-DOWN and SIMPLE modes.
|
private static int |
COMBO_BOX_ENTRY_SHIFT
Shift in X and Y to draw entry field for DROP-DOWN and SIMPLE modes.
|
private java.util.Map<java.lang.Integer,ColorRgb> |
defaultColors
Cached map with default system colors.
|
private java.util.Map<java.lang.String,ImageWrapper> |
imageCache
Image cache
|
protected CentralLogger |
LOG
Logger
|
private static int |
MENU_CHECKMARK_WIDTH
Check-mark width (for toggle-box) in pixels.
|
private static int |
MENU_LEFT_PAD
This menu-item left padding in a sub-menu body or in a MENUBAR in pixels.
|
private static int |
MENU_RIGHT_PAD
This menu-item right padding in a sub-menu body or in a MENUBAR in pixels.
|
private static int |
MENU_SM_ARROW_WIDTH
Sub-menu arrow width in pixels.
|
private static int |
MODAL_BORDER_SIZE
Border size of modal window border.
|
static java.lang.String |
NAME
Short name
|
(package private) static ColorRgb |
NON_SORTABLE_COLUMN_LABEL_COLOR
Color used for marking label areas of non-sortable columns.
|
private boolean |
oldBrowseSelectionBar
true if the selected browse row is drawn in the "old" mode, which is drawing it opaque
using the highlight colors, rather than drawing it translucent. |
private static int |
PREBUILT_ARROW_IMAGE_SIZE
Prebuilt image size of the arrow style button.
|
private static int |
RADIO_BUTTON_EXTRA_DIST
Radio Button Radio buttons extra distance.
|
private static int |
RADIO_BUTTON_IMAGE_SIZE
Radio Button Control image size.
|
private static int |
RADIO_BUTTON_IMAGE_SPACE
Radio Button Control image reserved space.
|
private static ColorRgb |
ROW_TOGGLE_OUTLINE_COLOR
Color of the outline of the current toggle-box cell.
|
protected static int |
ROW_TOGGLE_SIZE
Default size of an in-browse toggle-box.
|
private static int |
SCROLLBAR_THUMB_MIN_SIZE
Scrollbar's Thumb button minimum size
|
private static int |
SCROLLBAR_WIDTH
The overall pixel width for vertical scrollbar or height for horizontal scrollbar.
|
private ImageWrapper<?> |
scrollbarImgBg
The image object for background fill.
|
private boolean |
scrollbarImgBgLoaded
Prohibits multiple attempts to load
scrollbarImgBg. |
private static int |
SMALL_CAPTION_BUTTON_HEIGHT
Small caption button height for this theme.
|
private static int |
SMALL_CAPTION_BUTTON_WIDTH
Small caption button width for this theme.
|
private static int |
THREE_D_BORDER_OFFSET
Additional offset for 3d borders.
|
private static int |
TITLE_BAR_HEIGHT
Standard titlebar height for this theme.
|
private static ColorRgb |
TREELIST_CAPTION_COLOR
Treelist caption bg color
|
protected static ColorRgb |
TREELIST_CAPTION_SELECTED_COLOR
Selected treelist caption bg color
|
protected static ColorRgb |
TREELIST_CAPTION_SELECTED_TEXT_COLOR
Selected treelist caption text color
|
protected static int |
TREELIST_COLUMN_CAPTION_LEFT_PADDING
Left treelist caption padding
|
static int |
TREELIST_COLUMN_CAPTION_Y_PADDING
Vertical treelist caption padding
|
private static int |
TREELIST_COLUMN_SORT_ICON_PADDING
Treelist caption sort icon padding
|
static int |
TREELIST_COLUMN_SORT_ICON_WIDTH
Treelist caption sort icon width
|
protected static ColorRgb |
TREELIST_COLUMN_SPACER_COLOR
Treelist column spacer color
|
static int |
TREELIST_COLUMN_SPACING
Treelist column spacing in pixels
|
private static int |
TREEVIEW_CHECKBOX_HORIZONTAL_LEFT_OFFSET |
private static int |
TREEVIEW_CHECKBOX_HORIZONTAL_RIGHT_OFFSET |
private static ColorRgb |
TREEVIEW_DOTS_COLOR
Color of the treeview nodes-connecting dots
|
private static ColorRgb |
TREEVIEW_EXPAND_ICON_COLOR
Color of the treeview expand icon
|
static int |
TREEVIEW_EXPAND_ICON_OFFSET
Treeview expand icon horizontal offset
|
static int |
TREEVIEW_EXPAND_ICON_SIZE
Treeview expand icon size
|
static int |
TREEVIEW_INNER_PADDING
Treeview body inner padding
|
private static int |
TREEVIEW_NODE_LEVEL_OFFSET
Treeview node level offset
|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_NONE, ALIGN_RIGHT, ALIGN_TOP, COMMON_RESOURCES_PATH, HORIZONTAL_ALIGN_MASK, VERTICAL_ALIGN_MASK| Constructor and Description |
|---|
ClassicTheme() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw3DBorder(ThreeDBorderGuiImpl border,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draws a
ThreeDBorderGuiImpl widget. |
void |
drawAlertBox(GuiDriver gd,
int x,
int y,
int width,
int height,
int paragraphWidth,
ImageWrapper icon,
java.lang.String text,
FontDetails font)
Renders borders of a top-level window.
|
protected void |
drawBrowseCell(BrowseColumnGuiImpl column,
GuiDriver gd,
int viewportIndex,
java.lang.String text)
Draw the cell.
|
protected void |
drawBrowseCellLabel(BrowseColumnGuiImpl column,
GuiDriver gd,
java.lang.String text,
int x,
int y)
Draw the text inside a label or cell.
|
protected void |
drawBrowseCellText(BrowseColumnGuiImpl column,
GuiDriver gd,
boolean label,
boolean selectedRow,
java.lang.String text,
NativeRectangle clipRectangle,
int lineNumber,
int viewportRowIndex,
java.lang.Integer rowDisplayFont)
Draw the text inside a label or cell.
|
void |
drawBrowseColumnDrag(BrowseGuiImpl browseGui,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draw animation of a dragged column in a
BrowseGuiImpl widget. |
void |
drawBrowseColumnLabel(BrowseColumnGuiImpl column,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draw the label on a
BrowseColumnGuiImpl widget. |
protected void |
drawBrowseColumnLabelRect(BrowseColumnGuiImpl column,
GuiDriver gd,
int topOffset,
boolean markersBody,
boolean markersLabel,
boolean selectedRow)
Draw label-style rectangle.
|
void |
drawBrowseColumnSetBackground(BrowseGuiImpl browseGui,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
boolean locked)
Draw a normal column
BrowseColumnGuiImpl widget (without label). |
void |
drawBrowseMarkersColumn(BrowseColumnGuiImpl column,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draw a browse marker column
BrowseColumnGuiImpl widget (without label). |
void |
drawBrowseNormalColumn(BrowseColumnGuiImpl column,
GuiDriver gd,
int x,
int y,
int width,
int height)
Draw a normal column
BrowseColumnGuiImpl widget (without label). |
void |
drawBrowseResizingColumn(BrowseGuiImpl browse,
GuiDriver gd,
int left,
int top,
int right,
int bottom)
Draw animation of a dragged column in a
BrowseGuiImpl widget. |
void |
drawBrowseRowHighlight(BrowseGuiImpl browse,
GuiDriver gd,
int x,
int y,
int width,
int height)
Highlight the currently active row in a
BrowseGuiImpl widget. |
void |
drawBrowseTitlePanel(BrowseGuiImpl browse,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draw the title panel of a
BrowseGuiImpl widget. |
void |
drawButton(AbstractWidget<GuiOutputManager> widget,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int width,
int height,
boolean flat,
boolean highlighted,
boolean isDefault,
boolean mouseOver,
boolean pressed,
boolean keyPressed,
boolean noFocus,
boolean hasPrepackagedImages,
boolean existsFocusByKeyboard,
MnemonicInfo mnemonic,
java.lang.String textLabel,
boolean useResolverColors,
ImageWrapper<?> img,
boolean convert3D,
boolean transparent,
int imgWidth,
int imgHeight,
int imgOffsetX,
int imgOffsetY,
ColorRgb frameBgColor)
Draw a button.
|
private static void |
drawButtonBorder(GuiDriver gd,
NativeDimension dim,
boolean focused,
boolean pressed,
boolean flat,
boolean mouseIn)
Draw bottom border simulating 3D effect.
|
private static void |
drawButtonImages(GuiDriver<?,?> gd,
GuiColorResolver gc,
NativeDimension dim,
boolean pressed,
boolean flat,
boolean mouseIn,
boolean noFocusFlag,
boolean enabled,
int imageX,
int imageY,
ImageWrapper img,
boolean convert3D,
boolean transparent)
Draw button internals with different states using pre-loaded images.
|
void |
drawCaptionButton(CaptionButton button,
GuiDriver gd,
int x,
int y,
int width,
int height)
Renders a
CaptionButton. |
protected void |
drawCaret(GuiDriver gd,
int x1,
int y1,
int x2,
int y2)
Renders a caret for an enabled widget (
FillInGuiImpl or EditorGuiImpl). |
private void |
drawCheckBox(boolean enabled,
boolean checked,
GuiDriver gd,
int x,
int y,
int height,
boolean pressed)
Draws a check box.
|
private void |
drawCheckmark(GuiDriver gd,
NativePoint p,
ColorRgb chkMarkColor)
Draws checkmark at specified point using specified driver and using specified color.
|
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 |
drawEditorCaret(EditorGuiImpl editor,
GuiDriver gd,
int x1,
int y1,
int x2,
int y2)
Renders caret of the editor widget.
|
void |
drawEditorContent(EditorGuiImpl editor,
GuiDriver gd,
GuiFontResolver gf,
GuiColorResolver gc,
int x,
int y,
int width,
int height,
NativePoint selStart,
NativePoint selEnd,
int dx,
int dy)
Renders the content of an
EditorGuiImpl 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 |
drawFillInCaret(FillInGuiImpl fillIn,
GuiDriver gd,
int x1,
int y1,
int x2,
int y2)
Renders caret of the fill-in widget.
|
void |
drawFrameTitle(FrameGuiImpl frame,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draw the title panel of a
BrowseGuiImpl widget. |
void |
drawLabel(LabelGuiImpl label,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
boolean emptyMode)
Renders a label.
|
void |
drawLabelUnderline(GuiDriver gd,
int x,
int y,
int width,
int height,
ColorRgb fgColor)
Draw the horizontal bar under a label if the label is underlined.
|
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 element,
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<?> menuElement,
GuiDriver gd,
GuiFontResolver gf,
NativePoint tp,
java.lang.String title,
MnemonicInfo label)
Draws title string at the specified point.
|
private static void |
drawPrepackagedImages(GuiDriver<?,?> gd,
GuiColorResolver gc,
NativeDimension dim,
boolean pressed,
boolean flat,
boolean mouseIn,
boolean noFocusFlag,
boolean enabled,
int imageX,
int imageY,
ImageWrapper img,
boolean convert3D)
Draw button internals with different states using pre-loaded pre-packaged images.
|
void |
drawProgressBar(ProgressBarGui pb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws progress bar
ProgressBarGui widget. |
private void |
drawProgressBarBar(ProgressBarGui pb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws progress bar
ProgressBarGui widget bar. |
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. |
protected void |
drawRowToggleImage(GuiDriver gd,
BrowseColumnGuiImpl column,
int viewportRowIndex,
boolean checked)
Draw the image of a non-edited in-browse toggle-box.
|
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 |
drawSliderFrame(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w,
int h)
Draws the dotted frame border of a
SliderGuiImpl widget. |
void |
drawSliderThumb(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w,
int h)
Draws the slider thumb of a
SliderGuiImpl widget. |
void |
drawSliderTicMarks(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int length)
Draws the slider tic marks of a
SliderGuiImpl widget. |
void |
drawSliderTrack(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
int x,
int y,
int w)
Draws the slide track of a
SliderGuiImpl widget. |
void |
drawSliderValue(SliderGuiImpl slider,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int w,
int h)
Draws the current screen value 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 |
drawTabBarWidget(TabSetGuiImpl tabSetGui,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
NativePoint p,
NativeDimension d,
java.util.ArrayList<TabSetGuiImpl.TabSetItem> items)
Draw TabBar
TabSetGuiImpl widget. |
void |
drawTabBarWidgetItem(TabSetGuiImpl tabSetGui,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int width,
int height,
FontDetails customFont,
java.lang.String text,
boolean selected)
Draws items set of the TabBar
TabSetGuiImpl widget. |
void |
drawTabPageWidget(TabSetGuiImpl tabSetGui,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
NativePoint p,
NativeDimension d,
java.util.ArrayList<TabSetGuiImpl.TabSetItem> items)
Draw TabPage
TabSetGuiImpl widget. |
void |
drawTabPageWidgetItem(TabSetGuiImpl tabSetGui,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int width,
int height,
FontDetails customFont,
java.lang.String text,
boolean selected)
Draws TabPage items set of the
TabSetGuiImpl widget. |
private void |
drawTabSetButton(GuiDriver gd,
int x,
int y,
int width,
int height,
boolean selected,
boolean flat,
TabSetConfig config)
Draw TabSet Tab button simulating 3D effect.
|
void |
drawText(TextGuiImpl textGui,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height)
Draws a
TextGuiImpl widget. |
void |
drawToggleBox(ToggleBoxGuiImpl cb,
GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver gf,
int x,
int y,
int width,
int height,
boolean pressed,
boolean hover,
boolean existsFocusByKeyboard)
Renders a GUI toggle box widget.
|
void |
drawToolTip(GuiDriver gd,
int x,
int y,
int width,
int height,
FontDetails fnt,
java.lang.String text)
Draw a
ToolTip. |
void |
drawTooltipWorker(GuiDriver gd,
FontDetails fnt,
java.lang.String text,
int x,
int y)
Draw the text inside the tooltip rectangle.
|
void |
drawTreeListBody(GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver.FontCache fc,
TreeListGuiImpl tree,
TreeGuiImpl.TreeNode topNode,
TreeGuiImpl.TreeNode currentNode,
java.util.List<java.lang.Integer> selectedNodes,
int width,
int height,
ColorRgb selectionBack,
ColorRgb selectionFore)
Draws treeview body.
|
void |
drawTreeListCaption(GuiDriver gd,
GuiColorResolver gc,
int width,
int height)
Draws TREELIST caption.
|
void |
drawTreeListCaptionItem(GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver.FontCache font,
int width,
int height,
TreeListGuiImpl.ColumnCache column,
boolean selected,
boolean drawEdges,
boolean isLast)
Draws TREELIST caption item.
|
private void |
drawTreeListCell(GuiDriver gd,
GuiFontResolver.FontCache fc,
TreeListGuiImpl tree,
int width,
int rowHeight,
ColorRgb fgColor,
ColorRgb bgColor,
java.lang.Object value,
byte align,
boolean selected,
TreeListConfig.Column.DataType dataType)
Draws TREELIST cell.
|
void |
drawTreeViewBody(GuiDriver gd,
GuiColorResolver gc,
GuiFontResolver.FontCache font,
TreeGuiImpl tree,
TreeGuiImpl.TreeNode topNode,
TreeGuiImpl.TreeNode currentNode,
int valueIndex,
int width,
int height,
ColorRgb selectionBack,
ColorRgb selectionFore,
ColorRgb disabledFore)
Draws treeview body.
|
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.
|
int |
get3DBorderOffset()
Obtain the offset in a 3D bordered widget.
|
int |
getAlertBoxPadding()
Obtain the padding for alert boxes.
|
java.io.InputStream |
getBinaryResource(java.lang.String name)
Returns input stream for a class path resource from the theme's binary resource location.
|
java.lang.String |
getBinaryResourceCommonLocation()
Obtain the location of common binary resources (like pixmaps and sprites) used by all
themes.
|
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.
|
int |
getBrowseLabelOffsetRight()
Get right offset of a text inside a browse label.
|
protected ImageWrapper |
getBrowseMarkerArrow(boolean selected)
Get row marker image for a row.
|
int |
getCalendarBodyBackgroundColor()
Gets the background color index for the body of the calendar popup.
|
int |
getCalendarBodyForegroundColor()
Gets the foreground color index for the body of the calendar popup.
|
int |
getCalendarTitleBackgroundColor()
Gets the background color index for the title of the calendar popup.
|
int |
getCalendarTitleForegroundColor()
Gets the foreground color index for the title of the calendar popup.
|
int |
getCalendarTrailingBackgroundColor()
Gets the background color index for the trailing days around the current month
of the calendar popup.
|
int |
getCalendarTrailingForegroundColor()
Gets the foreground color index for the trailing days around the current month
of the calendar popup.
|
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.
|
ColorRgb |
getColumnBackgroundColor(BrowseColumnGuiImpl column)
Get column background color.
|
ColorRgb |
getColumnLabelBackgroundColor(BrowseColumnGuiImpl column)
Get column label background color.
|
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 classic theme specific extra pixels difference value for fialog frame height.
|
int |
getDialogExtraWidth()
Get the classic 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.
|
ColorRgb |
getHyperlinkColor(boolean selectedRow)
Get the hyperlink color.
|
FontDetails |
getHyperlinkFont(WidgetId windowId,
FontDetails sourceFont)
Get the hyperlink font basing on the regular text font.
|
ImageWrapper |
getImage(java.lang.String name,
boolean cache)
Reads image data from the theme binary resource location and creates an image instance by calling
AbstractGuiDriver.createImage(byte[]). |
ImageWrapper |
getImage(java.lang.String name,
int width,
int height,
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.
|
NativeInsets |
getMenuInsets()
Obtain the insets of a popup menu.
|
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.
|
int |
getMenuSmArrowWidth()
Obtain the width of the arrow marking menus with submenus (including additional space).
|
java.lang.String |
getName()
Get the name of this
Theme. |
char |
getPasswordCharacter()
Obtain the character used to replace text in password fields.
|
int |
getPrebuiltArrowImageSize()
Utility method that returns the size of the prebuilt arrow images.
|
int |
getRadioButtonExtraDist()
Obtain the extra distance in a radio button.
|
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.
|
protected NativePoint |
getRowToggleOffsetCentered(BrowseColumnGuiImpl column,
boolean editor)
Get the offset of the in-browse toggle-box, centered in the containing cell, relatively to
that 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.
|
ColorRgb |
getScrollBarIntersectionColor(GuiDriver gd)
Obtain the color of the dead space generated by the bottom-right corner
intersection of the horizontal and vertical scroll bars.
|
int |
getScrollBarThumbMinSize()
Obtain the minimum size of the thumb/slider of a scrollbar widget.
|
int |
getScrollBarThumbWidth()
Obtain the thumb/slider width in a scrollbar widget.
|
int |
getSelectedDayBackgroundColor()
Gets the background color index for the selected day of the calendar popup.
|
int |
getSelectedDayForegroundColor()
Gets the foreground color index for the selected day of the calendar popup.
|
java.lang.String |
getSliderThumbImageName(SliderGuiImpl slider,
boolean horiz)
Gets the Classic theme slider thumb image name to draw of a
SliderGuiImpl widget. |
NativeDimension |
getSliderThumbRegularDimension(SliderGuiImpl.TicMarks tm)
Gets the Classic theme slider thumb regular size of a
SliderGuiImpl widget. |
NativeDimension |
getSliderThumbSmallDimension(SliderGuiImpl.TicMarks tm)
Gets the Classic theme slider thumb small size of a
SliderGuiImpl widget. |
protected ColorRgb |
getSliderTicmarkColor(GuiColorResolver gc)
Obtain the color used for drawing the tic-marks for this
Theme. |
protected NativePoint |
getSortArrowClipPoint(BrowseColumnGuiImpl column,
NativePoint textClipPoint,
NativeRectangle textClipRectangle)
Get clip point for the sort arrow inside the column header.
|
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.
|
Theme.TextLookAndFeel |
getTextLookAndFeel(GuiDriver gd,
GuiColorResolver gc,
boolean enabledTextProperty,
boolean verticallyCenteredText)
Returns the text look and feel depending on the requested text properties to be selected or
unselected and enabled or disabled.
|
java.awt.Font |
getTitleBarFont()
Obtain the
Font used to render the windows title. |
int |
getTitleBarHeight(boolean maximized,
boolean dialog)
Returns the height of window's titleBar.
|
java.awt.Color |
getTitleBarTextColor(boolean active)
Obtain the
Color used to render the windows title. |
int |
getTreeViewCheckBoxWidth(int fontHeight,
int rowHeight,
boolean includeLeftPadding,
boolean includeRightPadding)
Returns the treeview check box width including the left and right padding.
|
int |
getTreeViewNodeContentHorizontalOffset(int level)
Returns the tree node label's horizontal offset for the given tree level.
|
int |
getTreeViewNodeHeight(GuiFontResolver.FontCache font)
Gets the current row height depending on chosen font.
|
int |
getTreeViewNodeHorizontalOffset(int level)
Returns the horizontal offset (where drawing starts) for a particular tree level.
|
int |
getTreeViewNodeImageVerticalOffset(int rowIndex,
int nodeHeight,
int imageHeight)
Returns the tree node image's vertical offset in pixel units by the given row index,
the node height and the image height.
|
int |
getTreeViewNodeLabelAvailableWidth(int level,
int imageWidth,
int treeBodyWidth,
boolean checkBoxes,
int fontHeight,
int rowHeight)
Returns the available width of the tree node label in pixel units for the given tree node's level,
the image height, the tree body width in pixels.
|
int |
getTreeViewNodeLabelHeight(GuiFontResolver.FontCache font)
Returns the tree node label's height in pixel units by the given font.
|
int |
getTreeViewNodeLabelHorizontalOffset(int level,
int imageWidth,
boolean checkBoxes,
int fontHeight,
int rowHeight)
Returns the tree node label's horizontal offset for the given tree node's level and the image
height.
|
int |
getTreeViewNodeLabelVerticalOffset(int rowIndex,
int nodeHeight,
GuiFontResolver.FontCache font)
Returns the tree node label's vertical offset in pixel units by the given row index,
the node height and the font.
|
int |
getTreeViewNodeVerticalOffset(int rowIndex,
int nodeHeight,
GuiFontResolver.FontCache font)
Returns the tree node's vertical offset in pixel units by the given row index, the node height
and the font.
|
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.
|
protected boolean |
isBrowseLabelBorderDrawQuirk(BrowseColumnGuiImpl column)
There is 4GL quirk: right edge of the label's border is not drawn for the last locked
column.
|
boolean |
isClassic()
Check whether this is a classic theme.
|
boolean |
isMouseHoverSensitive()
Check if the theme is mouse hover sensitive.
|
boolean |
isOldBrowseSelectionBar()
Returns
true if the selected browse row is drawn in the "old" mode, which is drawing it
opaque using the highlight colors, rather than drawing it translucent. |
boolean |
isTreeViewCheckboxAt(int x,
GuiDriver gd,
int nodeLevel,
GuiFontResolver.FontCache font)
Test if node checkbox bounds contain specified horizontal position.
|
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. |
private static void |
setButtonImages(ButtonGuiImpl button,
java.lang.String enableImage,
java.lang.String disableImage,
java.lang.String location,
int width,
int height)
Assigns the target images for the given button.
|
protected void |
setCompositeXorColor(GuiDriver gd)
Sets the composite color for XOR operations on browse widgets.
|
void |
setDownArrowImages(ButtonGuiImpl button)
Sets DOWN arrow images for the given button.
|
void |
setLeftArrowImages(ButtonGuiImpl button)
Sets LEFT arrow images for the given button.
|
void |
setOldBrowseSelectionBar(boolean oldBrowseSelectionBar)
Set the selected browse row drawing mode.
|
void |
setRightArrowImages(ButtonGuiImpl button)
Sets RIGHT arrow images for the given button.
|
void |
setUpArrowImages(ButtonGuiImpl button)
Sets UP arrow images for the given button.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFillInNativeInsets, isFlat, setClientMetricspublic static final java.lang.String NAME
private static final int TREEVIEW_CHECKBOX_HORIZONTAL_RIGHT_OFFSET
private static final int TREEVIEW_CHECKBOX_HORIZONTAL_LEFT_OFFSET
public static final int TREEVIEW_INNER_PADDING
public static final int TREEVIEW_EXPAND_ICON_OFFSET
public static final int TREEVIEW_EXPAND_ICON_SIZE
public static final int TREELIST_COLUMN_SPACING
public static final int TREELIST_COLUMN_CAPTION_Y_PADDING
protected static final int TREELIST_COLUMN_CAPTION_LEFT_PADDING
public static final int TREELIST_COLUMN_SORT_ICON_WIDTH
private static final int TREELIST_COLUMN_SORT_ICON_PADDING
private static final int SCROLLBAR_WIDTH
private static final int SCROLLBAR_THUMB_MIN_SIZE
private static final int THREE_D_BORDER_OFFSET
protected CentralLogger LOG
private static final int TITLE_BAR_HEIGHT
private static final int CAPTION_BUTTON_WIDTH
private static final int CAPTION_BUTTON_HEIGHT
private static final int SMALL_CAPTION_BUTTON_HEIGHT
private static final int SMALL_CAPTION_BUTTON_WIDTH
private static final int BORDER_SIZE
private static final int MODAL_BORDER_SIZE
private static final int PREBUILT_ARROW_IMAGE_SIZE
private static final int RADIO_BUTTON_IMAGE_SIZE
private static final int RADIO_BUTTON_EXTRA_DIST
private static final int RADIO_BUTTON_IMAGE_SPACE
private static final int CHECKBOX_SPACE
private static final int CHECKBOX_SIZE
private static final int MENU_LEFT_PAD
private static final int MENU_RIGHT_PAD
private static final int MENU_CHECKMARK_WIDTH
private static final int MENU_SM_ARROW_WIDTH
private static int ALERT_BOX_PADDING
static final ColorRgb NON_SORTABLE_COLUMN_LABEL_COLOR
private static final int COMBO_BOX_BUTTON_SIZE
private static final int COMBO_BOX_ENTRY_SHIFT
private static final int COMBO_BOX_ENTRY_DELTA
private static final ColorRgb ROW_TOGGLE_OUTLINE_COLOR
private static final ColorRgb BROWSE_ROW_XOR_COLOR
private static final ColorRgb CARET_XOR_WHITE_COLOR
private static final int BROWSE_LABEL_OFFSET_LEFT
private static final int BROWSE_LABEL_OFFSET_LEFT_RA
private static final int BROWSE_LABEL_OFFSET_RIGHT
private static final int BROWSE_DATA_OFFSET_LEFT
private static final int BROWSE_DATA_OFFSET_LEFT_RA
protected static final int ROW_TOGGLE_SIZE
private static final int TREEVIEW_NODE_LEVEL_OFFSET
private static final ColorRgb TREEVIEW_EXPAND_ICON_COLOR
private static final ColorRgb TREEVIEW_DOTS_COLOR
private static final ColorRgb TREELIST_CAPTION_COLOR
private static final java.util.regex.Pattern ALL_SPACES_END
private static final java.util.regex.Pattern ALL_SPACES_START
protected static final ColorRgb TREELIST_CAPTION_SELECTED_COLOR
protected static final ColorRgb TREELIST_CAPTION_SELECTED_TEXT_COLOR
protected static final ColorRgb TREELIST_COLUMN_SPACER_COLOR
protected static final java.lang.String CELLS_NEW_LINE
private ImageWrapper<?> scrollbarImgBg
private boolean scrollbarImgBgLoaded
scrollbarImgBg.private java.util.Map<java.lang.String,ImageWrapper<?>> captionButtonImages
private java.util.Map<java.lang.Integer,ColorRgb> defaultColors
private java.util.Map<java.lang.String,ImageWrapper> imageCache
private boolean oldBrowseSelectionBar
true if the selected browse row is drawn in the "old" mode, which is drawing it opaque
using the highlight colors, rather than drawing it translucent.public java.lang.String getName()
Theme.public boolean isOldBrowseSelectionBar()
true if the selected browse row is drawn in the "old" mode, which is drawing it
opaque using the highlight colors, rather than drawing it translucent.isOldBrowseSelectionBar in interface Themepublic void setOldBrowseSelectionBar(boolean oldBrowseSelectionBar)
setOldBrowseSelectionBar in interface ThemeoldBrowseSelectionBar - true if the selected browse row is drawn in the "old" mode, which is drawing it
opaque using the highlight colors. false for the normal mode, which is drawing it
translucent.public void releaseResources()
Theme is removed.releaseResources in interface Themepublic ImageWrapper getImage(java.lang.String name, int width, int height, 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 Themename - The name of the image as path within jar bundle.width - 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.height - 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 Themepublic java.lang.String getBinaryResourceCommonLocation()
getBinaryResourceCommonLocation in interface Themepublic java.io.InputStream getBinaryResource(java.lang.String name)
getBinaryResourceLocation() and "common".getBinaryResource in interface Themename - The resource name to return.public ImageWrapper getImage(java.lang.String name, boolean cache)
AbstractGuiDriver.createImage(byte[]). The supplied name may be a file name or any name recognized by
the theme.
Optionally the resource may be cached when directed by the cache parameter. The cached
resources are released when releaseResources() is called.getImage in interface Themename - The image name.cache - When true, the resource will be first read from cache and then from the resource
location, also the read resource will be inserted in the cache if not yet present.null.public boolean isMouseHoverSensitive()
isMouseHoverSensitive in interface Themefalse. This theme is NOT mouse hover sensitive.public boolean isClassic()
public java.util.Map<java.lang.Integer,ColorRgb> getDefaultSystemPalette()
getDefaultSystemPalette in interface Themepublic 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 ThemeTheme.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 ThemeTheme.public int getPrebuiltArrowImageSize()
getPrebuiltArrowImageSize in interface Themepublic int getTitleBarHeight(boolean maximized,
boolean dialog)
getTitleBarHeight in interface Thememaximized - On some themes, the maximized windows 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 Thememodal - Usually the modal dialogs/windows have a different width if modal.public int getCaptionButtonHeight(CaptionButtonType type, boolean maximized)
getCaptionButtonHeight in interface Themetype - On some specific themes, the height of buttons is not the same.maximized - On some themes, the maximized windows have a different button height when
maximized.public int getCaptionButtonWidth(CaptionButtonType type, boolean dialog)
getCaptionButtonWidth in interface Themetype - 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 int getCaptionButtonsAlignment(CaptionButtonType type)
getCaptionButtonsAlignment in interface Themetype - On some specific themes, the alignment of buttons is not the same.public int getWindowTitleAlignment()
getWindowTitleAlignment in interface Themepublic int getWindowIconAlignment()
getWindowIconAlignment in interface Themepublic int getSpaceBeforeButton(CaptionButtonType type)
getSpaceBeforeButton in interface Themetype - The caption button type.public java.awt.Color getTitleBarTextColor(boolean active)
Color used to render the windows title.getTitleBarTextColor in interface Themeactive - true if the rendered window is active. The inactive window is usually fade.Color used to render the windows title.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 Themewindow - The window whose titlebar is laid out.icon - The icon widget of the window (if any).title - The ClientDrivenLabel that displays the window's title.buttons - An array with the CaptionButton-s present on the titlebar of this window.width - The width of the window (in character units).c - the CoordinatesConversion used for possible units conversions.public java.awt.Font getTitleBarFont()
Font used to render the windows title.getTitleBarFont in interface ThemeFont used to render the windows title.public void drawCaptionButton(CaptionButton button, GuiDriver gd, int x, int y, int width, int height)
CaptionButton.drawCaptionButton in interface Themebutton - 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 Themegd - 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 Themegd - 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 Themegd - 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 Themewidget - the widget to be rendered.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver to be used for color selection.gf - The GuiFontResolver to be used.width - The width of the widget to be rendered.height - The height of the widget to be rendered.flat - Button FLAT-BUTTON flag.highlighted - Button highlighted state, must be false if button flat is true.isDefault - true if this button works as default one.mouseOver - true if the mouse hovers over this widget.pressed - true if the button is pressed and mouse hovers over this widget.keyPressed - true if the button is pressed by keyboard.noFocus - button NO-FOCUS flaghasPrepackagedImages - true if the button has pre-packaged images to be used to draw button.existsFocusByKeyboard - true if a focus event was created by keyboard in the current window.mnemonic - get mnemonic info.textLabel - Get label textuseResolverColors - true if this button uses the resolver colors for its background and foreground,
or false if the current UI theme colors shall be used.img - the image to draw or null is button has no imageconvert3D - convert image colors to system 3D colorstransparent - draw image transparentimgWidth - image width in pixels, may differ from the image own widthimgHeight - image height in pixels, may differ from the image own heightimgOffsetX - image X offset in pixelsimgOffsetY - image Y offset in pixelsprivate static void drawButtonBorder(GuiDriver gd, NativeDimension dim, boolean focused, boolean pressed, boolean flat, boolean mouseIn)
gd - The GuiDriver.dim - Button size.focused - Is the button focused.pressed - Is the button pressed.flat - Is the button flat?mouseIn - true if mouse hovering the button.private static void drawButtonImages(GuiDriver<?,?> gd, GuiColorResolver gc, NativeDimension dim, boolean pressed, boolean flat, boolean mouseIn, boolean noFocusFlag, boolean enabled, int imageX, int imageY, ImageWrapper img, boolean convert3D, boolean transparent)
gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver to be used for color selection.dim - Button size.pressed - Is the button pressed.flat - Draw button flatmouseIn - true if mouse is hovering the button.imageX - image location XimageY - image locatioon Yimg - the button image or null if button has no imageconvert3D - convert image colors to system 3D colorstransparent - draw image transparentprivate static void drawPrepackagedImages(GuiDriver<?,?> gd, GuiColorResolver gc, NativeDimension dim, boolean pressed, boolean flat, boolean mouseIn, boolean noFocusFlag, boolean enabled, int imageX, int imageY, ImageWrapper img, boolean convert3D)
gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver to be used for color selection.dim - Button size.pressed - Is the button pressed.flat - Draw button flatmouseIn - true if mouse is hovering the button.imageX - image location XimageY - image location Yimg - the image to draw or null if button has no imageconvert3D - convert image colors to system 3D colorspublic int getAlertBoxPadding()
getAlertBoxPadding in interface Themepublic void drawAlertBox(GuiDriver gd, int x, int y, int width, int height, int paragraphWidth, ImageWrapper icon, java.lang.String text, FontDetails font)
drawAlertBox in interface Themegd - 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.paragraphWidth - The width of the paragraph.icon - The ImageWrapper containing the image to be shown in the alert dialog. May
be null.text - The text to be displayed in this alert box.font - The FontDetails needed for text layout.public void drawRadioButton(RadioButtonGuiImpl rb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height, boolean focused, boolean existsFocusByKeyboard, boolean hover)
IMPORTANT: The first statement which set the background color is mandatory only when graphical
cache is enabled for correct image recording. That's because the FWD design is to set the
background color when RadioSetGuiImpl.draw() widget
is draw and used when the RadioButtonGuiImpl.draw()
widget is draw as well. Because the graphical cache operations are cached per widget and
RadioButtonGuiImpl is implemented as a separate widget
we must add the set background color to draw sequence operations stored in cache in order to
have correct color information for cached image.
drawRadioButton in interface Themerb - 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 getRadioButtonExtraDist()
getRadioButtonExtraDist in interface Themepublic int getRadioButtonImageSpace()
getRadioButtonImageSpace in interface Themeprotected ImageWrapper getRadioButtonImage(boolean on, boolean enabled, boolean hover, boolean pressed)
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 Themepublic int getCheckBoxSize()
getCheckBoxSize in interface Themepublic 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 Themecb - 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.private void drawCheckBox(boolean enabled,
boolean checked,
GuiDriver gd,
int x,
int y,
int height,
boolean pressed)
enabled - The check box enable state.checked - The check box state.gd - Gui driver.x - The draw origin.y - The draw origin.height - The height of the area where the check box will be drawn.pressed - Press state.private void drawCheckmark(GuiDriver gd, NativePoint p, ColorRgb chkMarkColor)
p - Target point.chkMarkColor - ColorRgb - RGB color for checkmark.public int getScrollBarButtonWidth()
getScrollBarButtonWidth in interface Themepublic int getScrollBarThumbWidth()
getScrollBarThumbWidth in interface Themepublic int getScrollBarGaugeWidth()
getScrollBarGaugeWidth in interface Themepublic int getScrollBarButtonHeight()
getScrollBarButtonHeight in interface Themepublic int getScrollBarThumbMinSize()
getScrollBarThumbMinSize in interface Themepublic ColorRgb getScrollBarIntersectionColor(GuiDriver gd)
getScrollBarIntersectionColor in interface Themegd - The GuiDriver used for drawing operations.public void drawScrollBarGauge(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean horizontal)
drawScrollBarGauge in interface Themegd - 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 Themegd - 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 Themegd - 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 int get3DBorderOffset()
get3DBorderOffset in interface Themepublic char getPasswordCharacter()
getPasswordCharacter in interface Themepublic void drawFillInBorder(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean border3D, boolean hasFocus, boolean hover)
drawFillInBorder in interface Themegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.border3D - If fill-in widget has a 3d border. Some flat Themes may ignore this.hasFocus - The fill-in widget is focused.hover - The mouse is hovering over the fill-in widget.public void drawFillInCaret(FillInGuiImpl fillIn, GuiDriver gd, int x1, int y1, int x2, int y2)
drawFillInCaret in interface ThemefillIn - The FillInGuiImpl widget whose caret is to be rendered.gd - The GuiDriver used for drawing operations.x1 - The left extremity of the caret.y1 - The top extremity of the caret.x2 - The right extremity of the caret.y2 - The bottom extremity of the caret.protected void drawCaret(GuiDriver gd, int x1, int y1, int x2, int y2)
FillInGuiImpl or EditorGuiImpl).gd - The GuiDriver used for drawing operations.x1 - The left extremity of the caret.y1 - The top extremity of the caret.x2 - The right extremity of the caret.y2 - The bottom extremity of the caret.public 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 Themegd - 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 Themehoriz - Direction. true for horizontal space.is3D - Whether this is widget has a 3D border.public int getComboBoxEntryShift()
getComboBoxEntryShift in interface Themepublic 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 Themecombo - The ComboBoxGuiImpl whose entry field is painted.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.font - A FontDetails used for text rendering.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget has the focus.hover - The mouse is hovering over the fill-in widget.existsFocusByKeyboard - true if a focus event was created by keyboard in the current window.public void drawComboBoxFieldBorder(ComboBoxGuiImpl combo, GuiDriver gd, int x, int y, int width, int height, boolean pressed, boolean enabled, boolean hover)
drawComboBoxFieldBorder in interface Themecombo - 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 int getComboBoxButtonSize()
getComboBoxButtonSize in interface Themepublic 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 Themegd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.pressed - true if the widget is pressed (and eventually open).enabled - Whether the widget is enabled.hasFocus - Whether the widget has the focus.mouseOver - The mouse is hovering over the fill-in widget.isDropDown - the combo-box type is DROP_DOWNdropDownActive - true if drop-down is visiblepublic void drawSelectionListBackground(GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height)
drawSelectionListBackground in interface Themegd - 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 Themebox - 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 Themepublic int getMenuBarElementMinSize(boolean horiz)
getMenuBarElementMinSize in interface Themehoriz - If true returns the minimum width, if false returns minimum height.public int getMenuLeftPad()
getMenuLeftPad in interface Themepublic int getMenuRightPad()
getMenuRightPad in interface Themepublic int getMenuCheckmarkWidth()
getMenuCheckmarkWidth in interface Themepublic int getMenuSmArrowWidth()
getMenuSmArrowWidth in interface Themepublic NativeInsets getMenuInsets()
getMenuInsets in interface Themepublic int getMenuSeparatorHeight()
getMenuSeparatorHeight in interface Themepublic int getMenuItemHeight(MenuElement menuItem)
MenuElement in a menu widget.getMenuItemHeight in interface ThememenuItem - the menu itempublic void drawMenuBackground(GuiDriver gd, int x, int y, int width, int height, boolean popup)
drawMenuBackground in interface Themegd - 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 Themegd - 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 drawMenuItemContent(AbstractWidget item, GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, int textHeight, boolean focused)
drawMenuItemContent in interface Themeitem - The MenuItemGuiImpl or SubMenuGuiImpl to be drawn.gd - The GuiDriver used for drawing operations.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.textHeight - The height of the text.focused - true if this item is highlighted/focused.private static void drawMenuTitle(MenuElement<?> menuElement, GuiDriver gd, GuiFontResolver gf, NativePoint tp, java.lang.String title, MnemonicInfo label)
menuElement - MenuItem or SubMenu widget.gd - GUI driver.gf - GUI font resolver.tp - Target point.title - The title of menu widget.label - Prepared title string.java.lang.IllegalArgumentException - When menuWdg is not a MenuItem or SubMenu.public void drawMenuBarElement(MenuElement element, GuiDriver gd, GuiFontResolver gf, int x, int y, int width, int height, boolean hover)
drawMenuBarElement in interface Themeelement - 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 Themeitem - 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 drawLabel(LabelGuiImpl label, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height, boolean emptyMode)
drawLabel in interface Themelabel - The LabelGuiImpl to be drawn.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.emptyMode - If it is true, empty string is displayed.public void drawLabelUnderline(GuiDriver gd, int x, int y, int width, int height, ColorRgb fgColor)
drawLabelUnderline in interface Themegd - 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.fgColor - The color attribute for the line.protected void setCompositeXorColor(GuiDriver gd)
gd - the active GuiDriver used to draw the browse widget.public void drawBrowseRowHighlight(BrowseGuiImpl browse, GuiDriver gd, int x, int y, int width, int height)
BrowseGuiImpl widget.drawBrowseRowHighlight in interface Themegd - 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.browse - The BrowseGuiImpl widget.public void drawBrowseColumnDrag(BrowseGuiImpl browseGui, GuiDriver gd, int x, int y, int width, int height)
BrowseGuiImpl widget.drawBrowseColumnDrag in interface Themegd - 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.browseGui - The BrowseGuiImpl widget.public void drawBrowseResizingColumn(BrowseGuiImpl browse, GuiDriver gd, int left, int top, int right, int bottom)
BrowseGuiImpl widget.drawBrowseResizingColumn in interface Themebrowse - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.left - The left offset of the resized column.top - The top offset where the columns start.right - The right offset of the resized column.bottom - The bottom offset where the columns end.public void drawBrowseTitlePanel(BrowseGuiImpl browse, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
BrowseGuiImpl widget.drawBrowseTitlePanel in interface Themebrowse - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver to be used.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawBrowseColumnLabel(BrowseColumnGuiImpl column, GuiDriver gd, int x, int y, int width, int height)
BrowseColumnGuiImpl widget.drawBrowseColumnLabel in interface Themecolumn - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawBrowseMarkersColumn(BrowseColumnGuiImpl column, GuiDriver gd, int x, int y, int width, int height)
BrowseColumnGuiImpl widget (without label).drawBrowseMarkersColumn in interface Themecolumn - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawBrowseNormalColumn(BrowseColumnGuiImpl column, GuiDriver gd, int x, int y, int width, int height)
BrowseColumnGuiImpl widget (without label).drawBrowseNormalColumn in interface Themecolumn - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void drawBrowseColumnSetBackground(BrowseGuiImpl browseGui, GuiDriver gd, GuiColorResolver gc, int x, int y, int width, int height, boolean locked)
BrowseColumnGuiImpl widget (without label).drawBrowseColumnSetBackground in interface ThemebrowseGui - The BrowseGuiImpl 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.locked - true for locked column set.protected ImageWrapper getBrowseMarkerArrow(boolean selected)
selected - true if the row is selected.protected void drawRowToggleImage(GuiDriver gd, BrowseColumnGuiImpl column, int viewportRowIndex, boolean checked)
gd - The GuiDriver used for drawing operations.column - Column which contains the toggle-box.viewportRowIndex - 0-based index (in the viewport) of the row which contains the toggle-box.checked - true if the toggle-box is checked, false it is not
checked.protected ImageWrapper getRowToggleImage(boolean checked)
checked - true if the toggle-box is checked, false it is not
checked.protected void setBrowseCellBackgroundSelectionColor(GuiDriver gd, ColorRgb unselColor)
gd GuiDriver.gd - The GuiDriver to set the color for separators.unselColor - The color for unselected cells. If null then the unselected cells'
background is not drawn.public ColorRgb getBrowseCellSeparatorColor(BrowseGuiImpl browse)
getBrowseCellSeparatorColor in interface Themebrowse - The browse widget.public ColorRgb getBrowseCellForegroundColor(BrowseColumnGuiImpl column, boolean label, boolean selected, int viewportRowIndex)
getBrowseCellForegroundColor in interface Themecolumn - The parent BrowseColumnGuiImpl of the cell.label - true for label cell, false for normal cell.selected - true if the row is selected.viewportRowIndex - 0-based number of the target row in the viewport (for cells only). -1
for general cell foreground color.public ColorRgb getColumnBackgroundColor(BrowseColumnGuiImpl column)
getColumnBackgroundColor in interface Themecolumn - The browse column.public ColorRgb getColumnLabelBackgroundColor(BrowseColumnGuiImpl column)
getColumnLabelBackgroundColor in interface Themecolumn - The browse column.protected void drawBrowseColumnLabelRect(BrowseColumnGuiImpl column, GuiDriver gd, int topOffset, boolean markersBody, boolean markersLabel, boolean selectedRow)
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 drawBrowseCell(BrowseColumnGuiImpl column, GuiDriver gd, int viewportIndex, java.lang.String text)
column - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.viewportIndex - 0-based viewport index of the row the cell belongs to.text - Cell text.protected void drawBrowseCellText(BrowseColumnGuiImpl column, GuiDriver gd, boolean label, boolean selectedRow, java.lang.String text, NativeRectangle clipRectangle, int lineNumber, int viewportRowIndex, java.lang.Integer rowDisplayFont)
column - The BrowseGuiImpl widget.gd - The GuiDriver used for drawing operations.label - true to draw the text inside a label. false to draw the
text inside a cell.selectedRow - true if the row the cell belongs to is selected.text - ext to draw.clipRectangle - Clipping rectangle.lineNumber - 0-based number of line in the label/cell.viewportRowIndex - 0-based number of the target row in the viewport (for cells only).rowDisplayFont - Font number defined for the cell in the ROW-DISPLAY trigger. null if it is not
defined.protected NativePoint getSortArrowClipPoint(BrowseColumnGuiImpl column, NativePoint textClipPoint, NativeRectangle textClipRectangle)
column - Target browse column.textClipPoint - Clip point of the text inside the column header.textClipRectangle - Clip rectangle of the text inside the column header.protected void drawBrowseCellLabel(BrowseColumnGuiImpl column, GuiDriver gd, java.lang.String text, int x, int y)
column - The BrowseColumnGuiImpl widget.gd - The GuiDriver used for drawing operations.text - Text to draw.x - Starting X coord of the text.y - Starting Y coord of the text.public void drawTooltipWorker(GuiDriver gd, FontDetails fnt, java.lang.String text, int x, int y)
gd - The GuiDriver used for drawing operations.fnt - The FontDetails to be used when drawing the text.text - The actual text to be drawn.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The horizontal location (in pixel units) of the widget to be painted/component.public void drawToolTip(GuiDriver gd, int x, int y, int width, int height, FontDetails fnt, java.lang.String text)
ToolTip.drawToolTip in interface Themegd - 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.drawFrameTitle in interface Themeframe - 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 Themecolumn - 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 Themecolumn - 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 Themeborder - 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 Themerect - 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 Themeborder - 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 drawEditorContent(EditorGuiImpl editor, GuiDriver gd, GuiFontResolver gf, GuiColorResolver gc, int x, int y, int width, int height, NativePoint selStart, NativePoint selEnd, int dx, int dy)
EditorGuiImpl widget.drawEditorContent in interface Themeeditor - The EditorGuiImpl widget.gd - The GuiDriver used for drawing operations.gf - The GuiFontResolver to be used.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.selStart - selection start anchor.selEnd - selection end anchor.dx - the full horizontal delta (left-side text which is scrolled by caret or by mouse).dy - offset when scrolling vertically via the scrollbar (the cursor does not move).public void drawEditorCaret(EditorGuiImpl editor, GuiDriver gd, int x1, int y1, int x2, int y2)
drawEditorCaret in interface Themeeditor - The EditorGuiImpl widget whose caret is to be rendered.gd - The GuiDriver used for drawing operations.x1 - The left extremity of the caret.y1 - The top extremity of the caret.x2 - The right extremity of the caret.y2 - public void drawSelectionFocus(GuiDriver gd, int x, int y, int width, int height)
drawSelectionFocus in interface Themegd - 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 Themealignment - Text alignment.public int getBrowseLabelOffsetRight()
getBrowseLabelOffsetRight in interface Themepublic int getBrowseDataOffsetLeft(BrowseTextAlignment alignment)
getBrowseDataOffsetLeft in interface Themealignment - Text alignment.public Theme.TextLookAndFeel getTextLookAndFeel(GuiDriver gd, GuiColorResolver gc, boolean enabledTextProperty, boolean verticallyCenteredText)
getTextLookAndFeel in interface Themegd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.enabledTextProperty - The true value defines a request to get the enabled text look and feel, otherwise
the false value defines a request for the look and feel of disabled text.verticallyCenteredText - The true value defines a request to get the vertically centered text.public Theme.TextLookAndFeel getTextLookAndFeel(GuiColorResolver gcd, GuiColorResolver gce)
getTextLookAndFeel in interface Themegcd - The gui color resolver used for normal text.gce - The gui color resolver used for selected text.protected NativePoint getRowToggleOffsetCentered(BrowseColumnGuiImpl column, boolean editor)
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.protected boolean isBrowseLabelBorderDrawQuirk(BrowseColumnGuiImpl column)
Because in FWD a browse column contains its right separator, not the left, scrollable area has no leftmost border and we emulate the underlying part of the leftmost border by fully drawing rightmost border of the locked area if the scroll position is 0.
column - Column which is tested if it is the last locked column.true if the upper part of the column's right separator should NOT be
drawn because of the quirk described above.public void drawFileChooserThumbnailBackground(GuiDriver gd, int x, int y, int width, int height, boolean selected, boolean hover, boolean focus)
drawFileChooserThumbnailBackground in interface Themegd - 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 Themegd - 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 FontDetails getHyperlinkFont(WidgetId windowId, FontDetails sourceFont)
getHyperlinkFont in interface ThemewindowId - ID of the currentWindow.sourceFont - Regular font.public ColorRgb getHyperlinkColor(boolean selectedRow)
getHyperlinkColor in interface ThemeselectedRow - true if the hyperlink belongs to the selected row.public void drawSliderBackground(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderBackground in interface Themeslider - The SliderGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.w - The width of the painted widget/component.h - The height of the painted widget/component.public void drawSliderTrack(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w)
SliderGuiImpl widget.drawSliderTrack in interface Themeslider - The SliderGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.w - The width of the painted widget/component.public void drawSliderThumb(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderThumb in interface Themeslider - 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 Themeslider - 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 Themetm - The tick mark mode used in SliderGuiImpl widget.public NativeDimension getSliderThumbSmallDimension(SliderGuiImpl.TicMarks tm)
SliderGuiImpl widget.getSliderThumbSmallDimension in interface Themetm - The tick mark mode used in SliderGuiImpl widget.public void drawSliderTicMarks(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int length)
SliderGuiImpl widget.drawSliderTicMarks in interface Themeslider - The SliderGuiImpl widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.length - The trackbar length.protected ColorRgb getSliderTicmarkColor(GuiColorResolver gc)
Theme.gc - The GuiColorResolver used color selection.public void drawSliderFrame(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderFrame in interface Themeslider - 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 drawSliderValue(SliderGuiImpl slider, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int w, int h)
SliderGuiImpl widget.drawSliderValue in interface Themeslider - The SliderGuiImpl widget.gd - The GuiDriver used for drawing operations.gf - The GuiFontResolver to be used.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 drawText(TextGuiImpl textGui, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
TextGuiImpl widget.drawText in interface ThemetextGui - The widget to be drawn.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver 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 int getTreeViewNodeHeight(GuiFontResolver.FontCache font)
getTreeViewNodeHeight in interface Themefont - Font to use for the calculation.public int getTreeViewNodeHorizontalOffset(int level)
getTreeViewNodeHorizontalOffset in interface Themelevel - Tree level.public int getTreeViewNodeContentHorizontalOffset(int level)
getTreeViewNodeContentHorizontalOffset in interface Themelevel - Tree level.public int getTreeViewNodeVerticalOffset(int rowIndex,
int nodeHeight,
GuiFontResolver.FontCache font)
getTreeViewNodeVerticalOffset in interface ThemerowIndex - The node's row indexnodeHeight - The node heightfont - The fontpublic int getTreeViewNodeLabelVerticalOffset(int rowIndex,
int nodeHeight,
GuiFontResolver.FontCache font)
getTreeViewNodeLabelVerticalOffset in interface ThemerowIndex - The node's row indexnodeHeight - The node heightfont - The fontpublic int getTreeViewNodeLabelHeight(GuiFontResolver.FontCache font)
getTreeViewNodeLabelHeight in interface Themefont - The fontpublic int getTreeViewNodeLabelHorizontalOffset(int level,
int imageWidth,
boolean checkBoxes,
int fontHeight,
int rowHeight)
getTreeViewNodeLabelHorizontalOffset in interface Themelevel - Tree level.imageWidth - The width of the node imagecheckBoxes - Set to true when the tree shows check boxes.fontHeight - Font height as returned by GuiDriver.getFontHeight(FontDetails). The value is
ignored when checkBoxes is false.rowHeight - Tree row height. The value is ignored when checkBoxes is false.public int getTreeViewCheckBoxWidth(int fontHeight,
int rowHeight,
boolean includeLeftPadding,
boolean includeRightPadding)
getTreeViewCheckBoxWidth in interface ThemefontHeight - Font height as returned by GuiDriver.getFontHeight(FontDetails).rowHeight - Tree row height.includeLeftPadding - When true left padding will be included in the returned size.includeRightPadding - When true right padding will be included in the returned size.public int getTreeViewNodeImageVerticalOffset(int rowIndex,
int nodeHeight,
int imageHeight)
getTreeViewNodeImageVerticalOffset in interface ThemerowIndex - The node's row indexnodeHeight - The node heightimageHeight - The image heightpublic int getTreeViewNodeLabelAvailableWidth(int level,
int imageWidth,
int treeBodyWidth,
boolean checkBoxes,
int fontHeight,
int rowHeight)
getTreeViewNodeLabelAvailableWidth in interface Themelevel - Tree level.imageWidth - The width of the node image in pixel unitstreeBodyWidth - The tree body width in pixel unitscheckBoxes - Set to true when the tree shows check boxes.fontHeight - Font height as returned by GuiDriver.getFontHeight(FontDetails).rowHeight - Tree row height.public final void drawTreeViewBody(GuiDriver gd, GuiColorResolver gc, GuiFontResolver.FontCache font, TreeGuiImpl tree, TreeGuiImpl.TreeNode topNode, TreeGuiImpl.TreeNode currentNode, int valueIndex, int width, int height, ColorRgb selectionBack, ColorRgb selectionFore, ColorRgb disabledFore)
gd - GUI driver.gc - Color resolver.font - Text font.tree - Tree widget, the owner of the tree body.topNode - the first node to draw, may by null for an empty tree.currentNode - Current node.valueIndex - The index of the value to be displayed. For TREEVIEW widget this is always 0.width - Treeview body width.height - Treeview body height.selectionBack - Selection back color.selectionFore - Selection foreground color.disabledFore - Disabled widget foreground color.public final void drawTreeListBody(GuiDriver gd, GuiColorResolver gc, GuiFontResolver.FontCache fc, TreeListGuiImpl tree, TreeGuiImpl.TreeNode topNode, TreeGuiImpl.TreeNode currentNode, java.util.List<java.lang.Integer> selectedNodes, int width, int height, ColorRgb selectionBack, ColorRgb selectionFore)
gd - GUI driver.gc - Color resolver.fc - Text font.tree - Tree widget, the owner of the tree body.topNode - the first node to draw or null for an empty tree.currentNode - Selected node or null for an empty tree.width - widget width.height - widget height.selectionBack - Selection background color.selectionFore - Selection foreground color.public void drawTabPageWidget(TabSetGuiImpl tabSetGui, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, NativePoint p, NativeDimension d, java.util.ArrayList<TabSetGuiImpl.TabSetItem> items)
TabSetGuiImpl widget.drawTabPageWidget in interface ThemetabSetGui - The widget to be drawn.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver used color selection.p - Native location.d - Native dimension.items - Collection of tabs.public void drawTabPageWidgetItem(TabSetGuiImpl tabSetGui, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int width, int height, FontDetails customFont, java.lang.String text, boolean selected)
TabSetGuiImpl widget.
Classic theme version.drawTabPageWidgetItem in interface ThemetabSetGui - The widget to be drawn.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.width - The width (in pixel units) of the painted widget/component.height - The height (in pixel units) of the painted widget/component.customFont - The custom font to be used to draw the tab item.text - The label text to draw for the tab item.selected - The flag indicating if the current tab item is selected or not.private void drawTabSetButton(GuiDriver gd, int x, int y, int width, int height, boolean selected, boolean flat, TabSetConfig config)
gd - The GuiDriver.x - Horizontal origin.y - Vertical origin.width - Tab width.height - Tab height.selected - Is tab selected.flat - Is tab button flat?config - The tabset configuration.public void drawTabBarWidget(TabSetGuiImpl tabSetGui, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, NativePoint p, NativeDimension d, java.util.ArrayList<TabSetGuiImpl.TabSetItem> items)
TabSetGuiImpl widget.drawTabBarWidget in interface ThemetabSetGui - The widget to be drawn.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver used color selection.p - Native location.d - Native dimension.items - Collection of tabs.public void drawTabBarWidgetItem(TabSetGuiImpl tabSetGui, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int width, int height, FontDetails customFont, java.lang.String text, boolean selected)
TabSetGuiImpl widget.drawTabBarWidgetItem in interface ThemetabSetGui - The widget to be drawn.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver used color selection.x - The horizontal location (in pixel units) of the widget to be painted/component.width - The width (in pixel units) of the painted widget/component.height - The height (in pixel units) of the painted widget/component.customFont - The custom font to be used to draw the tab item.text - The label text to draw for the tab item.selected - The flag indicating if the current tab item is selected or not.public final void drawTreeListCaption(GuiDriver gd, GuiColorResolver gc, int width, int height)
gd - GUI driver.gc - Color resolver.width - Caption height.height - Caption height.public final void drawTreeListCaptionItem(GuiDriver gd, GuiColorResolver gc, GuiFontResolver.FontCache font, int width, int height, TreeListGuiImpl.ColumnCache column, boolean selected, boolean drawEdges, boolean isLast)
gd - GUI driver.gc - Color resolver.font - Text font.width - Caption widthheight - Caption height.column - Treelist columns.selected - Draw item as selected (effectively in inverse colors)drawEdges - true to draw edges. The edges should not be drawn if this is a ghost item.isLast - the caption it the last caption from the rightprivate void drawTreeListCell(GuiDriver gd, GuiFontResolver.FontCache fc, TreeListGuiImpl tree, int width, int rowHeight, ColorRgb fgColor, ColorRgb bgColor, java.lang.Object value, byte align, boolean selected, TreeListConfig.Column.DataType dataType)
gd - GUI driver.fc - Text font.tree - Treelist instance.width - Cell width in pixels.rowHeight - Row height in pixels.fgColor - Text color.bgColor - Background color.value - The value to render.align - The object alignment option.selected - The flag to indicate if the cell is selected or not.dataType - The column data type: 0 for string, 4 for iconpublic void drawProgressBar(ProgressBarGui pb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
ProgressBarGui widget.drawProgressBar in interface Themepb - The ProgressBarGui widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver to be used.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.private void drawProgressBarBar(ProgressBarGui pb, GuiDriver gd, GuiColorResolver gc, GuiFontResolver gf, int x, int y, int width, int height)
ProgressBarGui widget bar.pb - The ProgressBarGui widget.gd - The GuiDriver used for drawing operations.gc - The GuiColorResolver used color selection.gf - The GuiFontResolver to be used.x - The horizontal location (in pixel units) of the widget to be painted/component.y - The vertical location (in pixel units) of the widget to be painted/component.width - The width of the painted widget/component.height - The height of the painted widget/component.public void setDownArrowImages(ButtonGuiImpl button)
setDownArrowImages in interface Themebutton - The given buttonpublic void setLeftArrowImages(ButtonGuiImpl button)
setLeftArrowImages in interface Themebutton - The given buttonpublic void setRightArrowImages(ButtonGuiImpl button)
setRightArrowImages in interface Themebutton - The given buttonpublic void setUpArrowImages(ButtonGuiImpl button)
setUpArrowImages in interface Themebutton - The given buttonpublic int getSelectedDayBackgroundColor()
getSelectedDayBackgroundColor in interface Themepublic int getSelectedDayForegroundColor()
getSelectedDayForegroundColor in interface Themepublic int getCalendarTitleBackgroundColor()
getCalendarTitleBackgroundColor in interface Themepublic int getCalendarTitleForegroundColor()
getCalendarTitleForegroundColor in interface Themepublic int getCalendarTrailingBackgroundColor()
getCalendarTrailingBackgroundColor in interface Themepublic int getCalendarTrailingForegroundColor()
getCalendarTrailingForegroundColor in interface Themepublic int getCalendarBodyBackgroundColor()
getCalendarBodyBackgroundColor in interface Themepublic int getCalendarBodyForegroundColor()
getCalendarBodyForegroundColor in interface Themepublic boolean isTreeViewCheckboxAt(int x,
GuiDriver gd,
int nodeLevel,
GuiFontResolver.FontCache font)
isTreeViewCheckboxAt in interface Themex - the horizontal positiongd - GUI drivernodeLevel - the node hierarchical levelfont - the node fonttrue if the specified horizontal position is within the node checkbox bounds.public int getDialogExtraHeight()
getDialogExtraHeight in interface Themepublic int getDialogExtraWidth()
getDialogExtraWidth in interface Themeprivate static void setButtonImages(ButtonGuiImpl button, java.lang.String enableImage, java.lang.String disableImage, java.lang.String location, int width, int height)
button - The image consumerenableImage - The resource name for the enabled buttondisableImage - The resource name for the disabled buttonlocation - The resource directorywidth - The image width in pixelsheight - The image height in pixels