本文整理了Java中javax.swing.JToggleButton.setRolloverSelectedIcon()
方法的一些代码示例,展示了JToggleButton.setRolloverSelectedIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToggleButton.setRolloverSelectedIcon()
方法的具体详情如下:
包路径:javax.swing.JToggleButton
类名称:JToggleButton
方法名:setRolloverSelectedIcon
暂无
代码示例来源:origin: org.netbeans.api/org-openide-awt
private void updateRollover( Icon rollover, Icon rolloverSelected ) {
super.setRolloverIcon( rollover );
super.setRolloverSelectedIcon( rolloverSelected );
}
代码示例来源:origin: org.netbeans.api/org-openide-awt
@Override
public void setRolloverSelectedIcon(Icon icon) {
Icon arrow = updateIcons( icon, ICON_ROLLOVER_SELECTED );
arrowIcons.remove( ICON_ROLLOVER_SELECTED_LINE );
super.setRolloverSelectedIcon( hasPopupMenu() ? arrow : icon );
}
代码示例来源:origin: org.gephi/ui-components
private void updateRollover(Icon rollover, Icon rolloverSelected) {
super.setRolloverIcon(rollover);
super.setRolloverSelectedIcon(rolloverSelected);
}
代码示例来源:origin: org.gephi/ui-components
@Override
public void setRolloverSelectedIcon(Icon icon) {
Icon arrow = updateIcons(icon, ICON_ROLLOVER_SELECTED);
arrowIcons.remove(ICON_ROLLOVER_SELECTED_LINE);
super.setRolloverSelectedIcon(hasPopupMenu() ? arrow : icon);
}
代码示例来源:origin: sing-group/GC4S
instance.setSelectedIcon(this.selectedIcon);
instance.setDisabledSelectedIcon(this.selectedIcon);
instance.setRolloverSelectedIcon(this.selectedIcon);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
/**
* Sets the selected icons for a toggle button.
*/
public static void setSelectedIcons(JToggleButton _button, ImageIcon _icon, boolean _effect) {
ImageIcon icon = _icon;
if (_effect) icon = addDefaultEffect(_button, icon);
if (BuPreferences.BU.getBooleanProperty("icons.grey", false)) {
_button.setSelectedIcon(filter(_button, filter(_button, icon, BuFilters.GREY), BuFilters.getSelected()));
_button.setRolloverSelectedIcon(filter(_button, icon, BuFilters.getSelected()));
_button.setDisabledSelectedIcon(filter(_button, filter(_button, icon, BuFilters.getSelected()), BuFilters
.getDisabled()));
} else {
_button.setSelectedIcon(filter(_button, icon, BuFilters.getSelected()));
_button.setRolloverSelectedIcon(filter(_button, icon, BuFilters.getRollover()));
_button.setDisabledSelectedIcon(filter(_button, icon, BuFilters.getDisabled()));
}
}
代码示例来源:origin: org.zaproxy/zap
public static void scaleIcon(JToggleButton button) {
if (isScaleImages() && button != null) {
if (button.getIcon() != null && button.getIcon() instanceof ImageIcon) {
button.setIcon(getScaledIcon((ImageIcon)button.getIcon()));
}
if (button.getSelectedIcon() != null && button.getSelectedIcon() instanceof ImageIcon) {
button.setSelectedIcon(getScaledIcon((ImageIcon)button.getSelectedIcon()));
}
if (button.getRolloverIcon() != null && button.getRolloverIcon() instanceof ImageIcon) {
button.setRolloverIcon(getScaledIcon((ImageIcon)button.getRolloverIcon()));
}
if (button.getRolloverSelectedIcon() != null && button.getRolloverSelectedIcon() instanceof ImageIcon) {
button.setRolloverSelectedIcon(getScaledIcon((ImageIcon)button.getRolloverSelectedIcon()));
}
if (button.getDisabledIcon() != null && button.getDisabledIcon() instanceof ImageIcon) {
button.setDisabledIcon(getScaledIcon((ImageIcon)button.getDisabledIcon()));
}
if (button.getDisabledSelectedIcon() != null && button.getDisabledSelectedIcon() instanceof ImageIcon) {
button.setDisabledSelectedIcon(getScaledIcon((ImageIcon)button.getDisabledSelectedIcon()));
}
if (button.getPressedIcon() != null && button.getPressedIcon() instanceof ImageIcon) {
button.setPressedIcon(getScaledIcon((ImageIcon)button.getPressedIcon()));
}
}
}
内容来源于网络,如有侵权,请联系作者删除!