本文整理了Java中javax.swing.JTabbedPane.isOpaque()
方法的一些代码示例,展示了JTabbedPane.isOpaque()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.isOpaque()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:isOpaque
暂无
代码示例来源:origin: com.jtattoo/JTattoo
protected boolean isTabOpaque() {
if (!tabPane.isOpaque()) {
if (UIManager.get("TabbedPane.tabsOpaque") != null) {
return UIManager.getBoolean("TabbedPane.tabsOpaque");
}
}
return true;
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = OPAQUE_TEXT_JSDOC)
@Override
public boolean getOpaque() {
return super.isOpaque();
}
代码示例来源:origin: com.jtattoo/JTattoo
protected boolean isContentOpaque() {
if (!tabPane.isOpaque()) {
if (UIManager.get("TabbedPane.contentOpaque") != null) {
return UIManager.getBoolean("TabbedPane.contentOpaque");
}
}
return true;
}
代码示例来源:origin: com.jtattoo/JTattoo
protected Color getGapColor(int tabIndex) {
if (isTabOpaque() || tabIndex == tabPane.getSelectedIndex()) {
if ((tabIndex >= 0) && (tabIndex < tabCount)) {
Color tabColors[] = getTabColors(tabIndex, tabIndex == tabPane.getSelectedIndex(), false);
if (tabColors != null && tabColors.length > 0) {
return tabColors[tabColors.length - 1];
} else {
return tabPane.getBackgroundAt(tabIndex);
}
}
}
if (!tabPane.isOpaque()) {
Container parent = tabPane.getParent();
while (parent != null) {
if (parent.isOpaque()) {
return parent.getBackground();
}
parent = parent.getParent();
}
}
return tabAreaBackground;
}
代码示例来源:origin: com.jtattoo/JTattoo
int tabAreaWidth = calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth);
if (tabPane.isOpaque()) {
int xt = tabPlacement == RIGHT ? w - tabAreaWidth : 0;
int yt = tabPlacement == BOTTOM ? h - tabAreaHeight : 0;
代码示例来源:origin: com.jtattoo/JTattoo
if (tabPane.isOpaque()) {
int xt = tabPlacement == RIGHT ? w - tabAreaWidth : 0;
int yt = tabPlacement == BOTTOM ? h - tabAreaHeight : 0;
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
if (tabPane.getTabCount() > 0 && (contentOpaque || tabPane.isOpaque())) {
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
boolean isSelected = selectedIndex == tabIndex;
if (tabsOpaque || tabPane.isOpaque()) {
paintTabBackground(g, tabPlacement, tabIndex, tabRect.x, tabRect.y,
tabRect.width, tabRect.height, isSelected);
内容来源于网络,如有侵权,请联系作者删除!