本文整理匯總了Java中com.intellij.util.ui.UIUtil.getBgFillColor方法的典型用法代碼示例。如果您正苦於以下問題:Java UIUtil.getBgFillColor方法的具體用法?Java UIUtil.getBgFillColor怎麽用?Java UIUtil.getBgFillColor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.intellij.util.ui.UIUtil
的用法示例。
在下文中一共展示了UIUtil.getBgFillColor方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: JBTabsPaneImpl
import com.intellij.util.ui.UIUtil; //導入方法依賴的package包/類
public JBTabsPaneImpl(@Nullable Project project, int tabPlacement, @NotNull Disposable parent) {
myTabs = new JBEditorTabs(project, ActionManager.getInstance(), project == null ? null : IdeFocusManager.getInstance(project), parent) {
@Override
public boolean isAlphabeticalMode() {
return false;
}
@Override
public boolean supportsCompression() {
return false;
}
@Override
protected Color getEmptySpaceColor() {
return UIUtil.getBgFillColor(getParent());
}
@Override
protected void paintSelectionAndBorder(Graphics2D g2d) {
super.paintSelectionAndBorder(g2d);
}
};
myTabs.setFirstTabOffset(10);
myTabs.addListener(new TabsListener.Adapter() {
@Override
public void selectionChanged(TabInfo oldSelection, TabInfo newSelection) {
fireChanged(new ChangeEvent(myTabs));
}
}).getPresentation()
.setPaintBorder(1, 1, 1, 1)
.setTabSidePaintBorder(2)
.setPaintFocus(UIUtil.isUnderDarcula() || UIUtil.isUnderIntelliJLaF())
.setAlwaysPaintSelectedTab(UIUtil.isUnderDarcula() || UIUtil.isUnderIntelliJLaF())
.setGhostsAlwaysVisible(true);
setTabPlacement(tabPlacement);
}
示例2: getBackground
import com.intellij.util.ui.UIUtil; //導入方法依賴的package包/類
@Override
public Color getBackground() {
return UIUtil.isUnderNimbusLookAndFeel() ? UIUtil.getPanelBackground() : UIUtil.getBgFillColor(getParent());
}
示例3: getEmptySpaceColor
import com.intellij.util.ui.UIUtil; //導入方法依賴的package包/類
@Override
protected Color getEmptySpaceColor() {
return UIUtil.getBgFillColor(getParent());
}