Uses of Class javax.swing.plaf.synth.SynthContext

Uses in package javax.swing.plaf.synth

Methods with parameter type javax.swing.plaf.synth.SynthContext

int
Returns the width of the string text for the specified font and font metrics.
void
SynthGraphicsUtils.drawLine(SynthContext ctx, Object paintKey, Graphics g, int x1, int y1, int x2, int y2)
Draws a line from (x1,y1) to (x2,y2).
Object
boolean
SynthStyle.getBoolean(SynthContext ctx, Object key, boolean defaultValue)
A convenience method to fetch an integer property.
Color
Color
Font
Font
SynthGraphicsUtils
Icon
A convenience method to fetch an Icon-valued property.
Insets
int
SynthStyle.getInt(SynthContext ctx, Object key, int defaultValue)
A convenience method to fetch an integer property.
int
Returns the maximum character height of the font from the component of the passed in context.
Dimension
SynthGraphicsUtils.getMaximumSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the maximum size that is needed to render the label with text and icon correctly.
Dimension
SynthGraphicsUtils.getMinimumSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the minimums size that is needed to render the label with text and icon correctly.
SynthPainter
Dimension
SynthGraphicsUtils.getPreferredSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the preferred size that is needed to render the label with text and icon correctly.
String
SynthStyle.getString(SynthContext ctx, Object key, String defaultValue)
A convenience method to fetch a String property.
void
boolean
String
SynthGraphicsUtils.layoutText(SynthContext ctx, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPos, int vTextPos, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)
Lays out a label and (if non-null) an icon.
void
SynthPainter.paintArrowButtonBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of an arrow button.
void
SynthPainter.paintArrowButtonBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of an arrow button.
void
SynthPainter.paintArrowButtonForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int dir)
Paints the foreground of an arrow button.
void
SynthPainter.paintButtonBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a button.
void
SynthPainter.paintButtonBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a button.
void
SynthPainter.paintCheckBoxBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a check box.
void
SynthPainter.paintCheckBoxBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a check box.
void
SynthPainter.paintCheckBoxMenuItemBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a check box menu item.
void
SynthPainter.paintCheckBoxMenuItemBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a check box menu item.
void
SynthPainter.paintColorChooserBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a color chooser.
void
SynthPainter.paintColorChooserBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a color chooser.
void
SynthPainter.paintComboBoxBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a combo box.
void
SynthPainter.paintComboBoxBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a combo box.
void
SynthPainter.paintDesktopIconBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a desktop icon.
void
SynthPainter.paintDesktopIconBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a desktop icon.
void
SynthPainter.paintDesktopPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a desktop pane.
void
SynthPainter.paintDesktopPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a desktop pane.
void
SynthPainter.paintEditorPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of an editor pane.
void
SynthPainter.paintEditorPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of an editor pane.
void
SynthPainter.paintFileChooserBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a file chooser.
void
SynthPainter.paintFileChooserBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a file chooser.
void
SynthPainter.paintFormattedTextFieldBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a formatted text field.
void
SynthPainter.paintFormattedTextFieldBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a formatted text field.
void
SynthPainter.paintInternalFrameBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of an internal frame.
void
SynthPainter.paintInternalFrameBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of an internal frame.
void
Paints the background of an internal frame's title pane.
void
SynthPainter.paintInternalFrameTitlePaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of an internal frame's title pane.
void
SynthPainter.paintLabelBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a label.
void
SynthPainter.paintLabelBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a label.
void
SynthPainter.paintListBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a list.
void
SynthPainter.paintListBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a list.
void
SynthPainter.paintMenuBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a menu.
void
SynthPainter.paintMenuBarBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a menu bar.
void
SynthPainter.paintMenuBarBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a menu bar.
void
SynthPainter.paintMenuBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a menu.
void
SynthPainter.paintMenuItemBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a menu item.
void
SynthPainter.paintMenuItemBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a menu item.
void
SynthPainter.paintOptionPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of an option pane.
void
SynthPainter.paintOptionPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of an option pane.
void
SynthPainter.paintPanelBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a panel.
void
SynthPainter.paintPanelBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a panel.
void
SynthPainter.paintPasswordFieldBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a password field.
void
SynthPainter.paintPasswordFieldBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a password field.
void
SynthPainter.paintPopupMenuBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a popup menu.
void
SynthPainter.paintPopupMenuBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a popup menu.
void
SynthPainter.paintProgressBarBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a progress bar.
void
SynthPainter.paintProgressBarBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a progress bar.
void
SynthPainter.paintProgressBarForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int dir)
Paints the foreground of a progress bar.
void
SynthPainter.paintRadioButtonBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a radio button.
void
SynthPainter.paintRadioButtonBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a radio button.
void
SynthPainter.paintRadioButtonMenuItemBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a radio button menu item.
void
SynthPainter.paintRadioButtonMenuItemBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a radio button menu item.
void
SynthPainter.paintRootPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a root pane.
void
SynthPainter.paintRootPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a root pane.
void
SynthPainter.paintScrollBarBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a scrollbar.
void
SynthPainter.paintScrollBarBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a scrollbar.
void
SynthPainter.paintScrollBarThumbBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation)
Paints the background of a scrollbar's thumb.
void
SynthPainter.paintScrollBarThumbBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation)
Paints the border of a scrollbar's thumb.
void
SynthPainter.paintScrollBarTrackBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a scrollbar's track.
void
SynthPainter.paintScrollBarTrackBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a scrollbar's track.
void
SynthPainter.paintScrollPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a scroll pane.
void
SynthPainter.paintScrollPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a scroll pane.
void
SynthPainter.paintSeparatorBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a separator.
void
SynthPainter.paintSeparatorBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a separator.
void
SynthPainter.paintSeparatorForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int dir)
Paints the foreground of a separator.
void
SynthPainter.paintSliderBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a slider.
void
SynthPainter.paintSliderBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a slider.
void
SynthPainter.paintSliderThumbBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation)
Paints the background of a slider's thumb.
void
SynthPainter.paintSliderThumbBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation)
Paints the border of a slider's thumb.
void
SynthPainter.paintSliderTrackBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a slider's track.
void
SynthPainter.paintSliderTrackBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a slider's track.
void
SynthPainter.paintSpinnerBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a spinner.
void
SynthPainter.paintSpinnerBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a spinner.
void
SynthPainter.paintSplitPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a split pane.
void
SynthPainter.paintSplitPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a split pane.
void
SynthPainter.paintSplitPaneDividerBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a split pane's divider.
void
SynthPainter.paintSplitPaneDividerForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int dir)
Paints the foreground of a split pane's divider.
void
SynthPainter.paintSplitPaneDragDivider(SynthContext ctx, Graphics g, int x, int y, int w, int h, int dir)
Paints a split pane's divider, when it is being dragged.
void
SynthPainter.paintTabbedPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a tabbed pane.
void
SynthPainter.paintTabbedPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a tabbed pane.
void
SynthPainter.paintTabbedPaneContentBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of the contents of a tabbed pane.
void
SynthPainter.paintTabbedPaneContentBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of the contents of a tabbed pane.
void
SynthPainter.paintTabbedPaneTabAreaBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of the tab area of a tabbed pane.
void
SynthPainter.paintTabbedPaneTabAreaBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of the tab area of a tabbed pane.
void
SynthPainter.paintTabbedPaneTabBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int index)
Paints the background of a tab of a tabbed pane.
void
SynthPainter.paintTabbedPaneTabBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h, int index)
Paints the border of a tab of a tabbed pane.
void
SynthPainter.paintTableBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a table.
void
SynthPainter.paintTableBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a table.
void
SynthPainter.paintTableHeaderBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a table's header.
void
SynthPainter.paintTableHeaderBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a table's header.
void
SynthGraphicsUtils.paintText(SynthContext ctx, Graphics g, String text, int x, int y, int mnemonicIndex)
Renders the specified text at the specified location.
void
SynthGraphicsUtils.paintText(SynthContext ctx, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
Renders the specified text within the bounds.
void
SynthGraphicsUtils.paintText(SynthContext ctx, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)
void
SynthPainter.paintTextAreaBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a text area.
void
SynthPainter.paintTextAreaBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a text area.
void
SynthPainter.paintTextFieldBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a text field.
void
SynthPainter.paintTextFieldBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a text field.
void
SynthPainter.paintTextPaneBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a text pane.
void
SynthPainter.paintTextPaneBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a text pane.
void
SynthPainter.paintToggleButtonBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a toggle button.
void
SynthPainter.paintToggleButtonBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a toggle button.
void
SynthPainter.paintToolBarBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a toolbar.
void
SynthPainter.paintToolBarBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a toolbar.
void
SynthPainter.paintToolBarContentBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of the contents of a toolbar.
void
SynthPainter.paintToolBarContentBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of the contents of a toolbar.
void
SynthPainter.paintToolBarDragWindowBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of the window of a detached toolbar.
void
SynthPainter.paintToolBarDragWindowBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of the window of a detached toolbar.
void
SynthPainter.paintToolTipBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a tool tip.
void
SynthPainter.paintToolTipBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a tool tip.
void
SynthPainter.paintTreeBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a tree.
void
SynthPainter.paintTreeBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a tree.
void
SynthPainter.paintTreeCellBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a cell in a tree.
void
SynthPainter.paintTreeCellBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a cell in a tree.
void
SynthPainter.paintTreeCellFocus(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the indicator for a tree cell which has the focus.
void
SynthPainter.paintViewportBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the background of a viewport.
void
SynthPainter.paintViewportBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h)
Paints the border of a viewport.
void