Module java.desktop

Interface SynthUI

所有超级接口:
SynthConstants
所有已知实现类:
SynthButtonUI, SynthCheckBoxMenuItemUI, SynthCheckBoxUI, SynthColorChooserUI, SynthComboBoxUI, SynthDesktopIconUI, SynthDesktopPaneUI, SynthEditorPaneUI, SynthFormattedTextFieldUI, SynthInternalFrameUI, SynthLabelUI, SynthListUI, SynthMenuBarUI, SynthMenuItemUI, SynthMenuUI, SynthOptionPaneUI, SynthPanelUI, SynthPasswordFieldUI, SynthPopupMenuUI, SynthProgressBarUI, SynthRadioButtonMenuItemUI, SynthRadioButtonUI, SynthRootPaneUI, SynthScrollBarUI, SynthScrollPaneUI, SynthSeparatorUI, SynthSliderUI, SynthSpinnerUI, SynthSplitPaneUI, SynthTabbedPaneUI, SynthTableHeaderUI, SynthTableUI, SynthTextAreaUI, SynthTextFieldUI, SynthTextPaneUI, SynthToggleButtonUI, SynthToolBarUI, SynthToolTipUI, SynthTreeUI, SynthViewportUI

public interface SynthUI extends SynthConstants
SynthUI 用于为特定组件获取 SynthContext。
自从:
1.7
  • Method Details

    • getContext

      SynthContext getContext(JComponent c)
      返回指定组件的上下文。
      参数:
      c - 请求 SynthContext 的组件。
      返回:
      描述组件的 SynthContext。
    • paintBorder

      void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
      绘制边框。
      参数:
      context - 组件上下文
      g - 要绘制的 Graphics
      x - X 坐标
      y - Y 坐标
      w - 边框的宽度
      h - 边框的高度