|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SynthContext | |
---|---|
javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated. |
Uses of SynthContext in javax.swing.plaf.synth |
---|
Methods in javax.swing.plaf.synth with parameters of type SynthContext | |
---|---|
int |
SynthGraphicsUtils.computeStringWidth(SynthContext ss,
Font font,
FontMetrics metrics,
String text)
Returns the size of the passed in string. |
void |
SynthGraphicsUtils.drawLine(SynthContext context,
Object paintKey,
Graphics g,
int x1,
int y1,
int x2,
int y2)
Draws a line between the two end points. |
Object |
SynthStyle.get(SynthContext context,
Object key)
Getter for a region specific style property. |
boolean |
SynthStyle.getBoolean(SynthContext context,
Object key,
boolean defaultValue)
Convenience method to get a specific style property whose value is an Boolean. |
Color |
SynthStyle.getColor(SynthContext context,
ColorType type)
Returns the color for the specified state. |
protected abstract Color |
SynthStyle.getColorForState(SynthContext context,
ColorType type)
Returns the color for the specified state. |
Font |
SynthStyle.getFont(SynthContext context)
Returns the Font for the specified state. |
protected abstract Font |
SynthStyle.getFontForState(SynthContext context)
Returns the font for the specified state. |
SynthGraphicsUtils |
SynthStyle.getGraphicsUtils(SynthContext context)
Returns the SynthGraphicUtils for the specified context. |
Icon |
SynthStyle.getIcon(SynthContext context,
Object key)
Convenience method to get a specific style property whose value is an Icon. |
Insets |
SynthStyle.getInsets(SynthContext context,
Insets insets)
Returns the Insets that are used to calculate sizing information. |
int |
SynthStyle.getInt(SynthContext context,
Object key,
int defaultValue)
Convenience method to get a specific style property whose value is a Number . |
int |
SynthGraphicsUtils.getMaximumCharHeight(SynthContext context)
Returns the maximum height of the the Font from the passed in SynthContext. |
Dimension |
SynthGraphicsUtils.getMaximumSize(SynthContext ss,
Font font,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
int iconTextGap,
int mnemonicIndex)
Returns the maximum size needed to properly render an icon and text. |
Dimension |
SynthGraphicsUtils.getMinimumSize(SynthContext ss,
Font font,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
int iconTextGap,
int mnemonicIndex)
Returns the minimum size needed to properly render an icon and text. |
SynthPainter |
SynthStyle.getPainter(SynthContext context)
Returns the SynthPainter that will be used for painting. |
Dimension |
SynthGraphicsUtils.getPreferredSize(SynthContext ss,
Font font,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
int iconTextGap,
int mnemonicIndex)
Returns the preferred size needed to properly render an icon and text. |
String |
SynthStyle.getString(SynthContext context,
Object key,
String defaultValue)
Convenience method to get a specific style property whose value is a String. |
void |
SynthStyle.installDefaults(SynthContext context)
Installs the necessary state from this Style on the JComponent from context . |
boolean |
SynthStyle.isOpaque(SynthContext context)
Returns true if the region is opaque. |
String |
SynthGraphicsUtils.layoutText(SynthContext ss,
FontMetrics fm,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int iconTextGap)
Lays out text and an icon returning, by reference, the location to place the icon and text. |
void |
SynthPainter.paintArrowButtonBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of an arrow button. |
void |
SynthPainter.paintArrowButtonBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of an arrow button. |
void |
SynthPainter.paintArrowButtonForeground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int direction)
Paints the foreground of an arrow button. |
void |
SynthPainter.paintButtonBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a button. |
void |
SynthPainter.paintButtonBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a button. |
void |
SynthPainter.paintCheckBoxBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a check box. |
void |
SynthPainter.paintCheckBoxBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a check box. |
void |
SynthPainter.paintCheckBoxMenuItemBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a check box menu item. |
void |
SynthPainter.paintCheckBoxMenuItemBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a check box menu item. |
void |
SynthPainter.paintColorChooserBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a color chooser. |
void |
SynthPainter.paintColorChooserBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a color chooser. |
void |
SynthPainter.paintComboBoxBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a combo box. |
void |
SynthPainter.paintComboBoxBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a combo box. |
void |
SynthPainter.paintDesktopIconBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a desktop icon. |
void |
SynthPainter.paintDesktopIconBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a desktop icon. |
void |
SynthPainter.paintDesktopPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a desktop pane. |
void |
SynthPainter.paintDesktopPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a desktop pane. |
void |
SynthPainter.paintEditorPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of an editor pane. |
void |
SynthPainter.paintEditorPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of an editor pane. |
void |
SynthPainter.paintFileChooserBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a file chooser. |
void |
SynthPainter.paintFileChooserBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a file chooser. |
void |
SynthPainter.paintFormattedTextFieldBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a formatted text field. |
void |
SynthPainter.paintFormattedTextFieldBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a formatted text field. |
void |
SynthPainter.paintInternalFrameBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of an internal frame. |
void |
SynthPainter.paintInternalFrameBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of an internal frame. |
void |
SynthPainter.paintInternalFrameTitlePaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of an internal frame title pane. |
void |
SynthPainter.paintInternalFrameTitlePaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of an internal frame title pane. |
void |
SynthPainter.paintLabelBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a label. |
void |
SynthPainter.paintLabelBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a label. |
void |
SynthPainter.paintListBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a list. |
void |
SynthPainter.paintListBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a list. |
void |
SynthPainter.paintMenuBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a menu. |
void |
SynthPainter.paintMenuBarBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a menu bar. |
void |
SynthPainter.paintMenuBarBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a menu bar. |
void |
SynthPainter.paintMenuBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a menu. |
void |
SynthPainter.paintMenuItemBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a menu item. |
void |
SynthPainter.paintMenuItemBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a menu item. |
void |
SynthPainter.paintOptionPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of an option pane. |
void |
SynthPainter.paintOptionPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of an option pane. |
void |
SynthPainter.paintPanelBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a panel. |
void |
SynthPainter.paintPanelBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a panel. |
void |
SynthPainter.paintPasswordFieldBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a password field. |
void |
SynthPainter.paintPasswordFieldBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a password field. |
void |
SynthPainter.paintPopupMenuBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a popup menu. |
void |
SynthPainter.paintPopupMenuBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a popup menu. |
void |
SynthPainter.paintProgressBarBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a progress bar. |
void |
SynthPainter.paintProgressBarBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a progress bar. |
void |
SynthPainter.paintProgressBarForeground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the foreground of a progress bar. |
void |
SynthPainter.paintRadioButtonBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a radio button. |
void |
SynthPainter.paintRadioButtonBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a radio button. |
void |
SynthPainter.paintRadioButtonMenuItemBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a radio button menu item. |
void |
SynthPainter.paintRadioButtonMenuItemBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a radio button menu item. |
void |
SynthPainter.paintRootPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a root pane. |
void |
SynthPainter.paintRootPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a root pane. |
void |
SynthPainter.paintScrollBarBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a scrollbar. |
void |
SynthPainter.paintScrollBarBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a scrollbar. |
void |
SynthPainter.paintScrollBarThumbBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the background of the thumb of a scrollbar. |
void |
SynthPainter.paintScrollBarThumbBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the border of the thumb of a scrollbar. |
void |
SynthPainter.paintScrollBarTrackBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the track of a scrollbar. |
void |
SynthPainter.paintScrollBarTrackBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the track of a scrollbar. |
void |
SynthPainter.paintScrollPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a scroll pane. |
void |
SynthPainter.paintScrollPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a scroll pane. |
void |
SynthPainter.paintSeparatorBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a separator. |
void |
SynthPainter.paintSeparatorBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a separator. |
void |
SynthPainter.paintSeparatorForeground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the foreground of a separator. |
void |
SynthPainter.paintSliderBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a slider. |
void |
SynthPainter.paintSliderBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a slider. |
void |
SynthPainter.paintSliderThumbBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the background of the thumb of a slider. |
void |
SynthPainter.paintSliderThumbBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the border of the thumb of a slider. |
void |
SynthPainter.paintSliderTrackBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the track of a slider. |
void |
SynthPainter.paintSliderTrackBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the track of a slider. |
void |
SynthPainter.paintSpinnerBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a spinner. |
void |
SynthPainter.paintSpinnerBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a spinner. |
void |
SynthPainter.paintSplitPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a split pane. |
void |
SynthPainter.paintSplitPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a split pane. |
void |
SynthPainter.paintSplitPaneDividerBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the divider of a split pane. |
void |
SynthPainter.paintSplitPaneDividerForeground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the foreground of the divider of a split pane. |
void |
SynthPainter.paintSplitPaneDragDivider(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int orientation)
Paints the divider, when the user is dragging the divider, of a split pane. |
void |
SynthPainter.paintTabbedPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneContentBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the area that contains the content of the selected tab of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneContentBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the area that contains the content of the selected tab of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneTabAreaBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the area behind the tabs of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneTabAreaBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the area behind the tabs of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneTabBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int tabIndex)
Paints the background of a tab of a tabbed pane. |
void |
SynthPainter.paintTabbedPaneTabBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h,
int tabIndex)
Paints the border of a tab of a tabbed pane. |
void |
SynthPainter.paintTableBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a table. |
void |
SynthPainter.paintTableBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a table. |
void |
SynthPainter.paintTableHeaderBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the header of a table. |
void |
SynthPainter.paintTableHeaderBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the header of a table. |
void |
SynthGraphicsUtils.paintText(SynthContext ss,
Graphics g,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
int iconTextGap,
int mnemonicIndex,
int textOffset)
Paints an icon and text. |
void |
SynthGraphicsUtils.paintText(SynthContext ss,
Graphics g,
String text,
int x,
int y,
int mnemonicIndex)
Paints text at the specified location. |
void |
SynthGraphicsUtils.paintText(SynthContext ss,
Graphics g,
String text,
Rectangle bounds,
int mnemonicIndex)
Paints text at the specified location. |
void |
SynthPainter.paintTextAreaBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a text area. |
void |
SynthPainter.paintTextAreaBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a text area. |
void |
SynthPainter.paintTextFieldBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a text field. |
void |
SynthPainter.paintTextFieldBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a text field. |
void |
SynthPainter.paintTextPaneBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a text pane. |
void |
SynthPainter.paintTextPaneBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a text pane. |
void |
SynthPainter.paintToggleButtonBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a toggle button. |
void |
SynthPainter.paintToggleButtonBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a toggle button. |
void |
SynthPainter.paintToolBarBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a tool bar. |
void |
SynthPainter.paintToolBarBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a tool bar. |
void |
SynthPainter.paintToolBarContentBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the tool bar's content area. |
void |
SynthPainter.paintToolBarContentBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the content area of a tool bar. |
void |
SynthPainter.paintToolBarDragWindowBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the window containing the tool bar when it has been detached from its primary frame. |
void |
SynthPainter.paintToolBarDragWindowBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the window containing the tool bar when it has been detached from it's primary frame. |
void |
SynthPainter.paintToolTipBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a tool tip. |
void |
SynthPainter.paintToolTipBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a tool tip. |
void |
SynthPainter.paintTreeBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of a tree. |
void |
SynthPainter.paintTreeBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a tree. |
void |
SynthPainter.paintTreeCellBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the row containing a cell in a tree. |
void |
SynthPainter.paintTreeCellBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of the row containing a cell in a tree. |
void |
SynthPainter.paintTreeCellFocus(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the focus indicator for a cell in a tree when it has focus. |
void |
SynthPainter.paintViewportBackground(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the background of the viewport. |
void |
SynthPainter.paintViewportBorder(SynthContext context,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border of a viewport. |
void |
SynthStyle.uninstallDefaults(SynthContext context)
Uninstalls any state that this style installed on the JComponent from context . |
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.