本文整理了Java中javax.swing.AbstractButton.getPressedIcon()
方法的一些代码示例,展示了AbstractButton.getPressedIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractButton.getPressedIcon()
方法的具体详情如下:
包路径:javax.swing.AbstractButton
类名称:AbstractButton
方法名:getPressedIcon
暂无
代码示例来源:origin: khuxtable/seaglass
/**
* DOCUMENT ME!
*
* @param b DOCUMENT ME!
* @param defaultIcon DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
private Icon getPressedIcon(AbstractButton b, Icon defaultIcon) {
return getIcon(b, b.getPressedIcon(), defaultIcon, SynthConstants.PRESSED);
}
代码示例来源:origin: stackoverflow.com
protected Object doInBackground() throws Exception {
if(_alreadyPressedButton != pressedButton){
pressedButton.setIcon(pressedButton.getPressedIcon());
代码示例来源:origin: khuxtable/seaglass
/**
* Returns the amount to shift the text/icon when painting.
*
* @param state DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
protected int getTextShiftOffset(SeaGlassContext state) {
AbstractButton button = (AbstractButton) state.getComponent();
ButtonModel model = button.getModel();
if (model.isArmed() && model.isPressed() && button.getPressedIcon() == null) {
return state.getStyle().getInt(state, getPropertyPrefix() + "textShiftOffset", 0);
}
return 0;
}
代码示例来源:origin: com.jtattoo/JTattoo
ico = b.getPressedIcon();
} else {
if (model.isRollover()) {
代码示例来源:origin: net.sf.tinylaf/tinylaf
icon = b.getPressedIcon();
代码示例来源:origin: org.tentackle/tentackle-swing
altIcon = b.getPressedIcon();
if (altIcon == null) {
代码示例来源:origin: org.tentackle/tentackle-swing
altIcon = b.getPressedIcon();
if (altIcon == null) {
代码示例来源:origin: org.java.net.substance/substance
tmpIcon = b.getPressedIcon();
} else if (b.isRolloverEnabled() && model.isRollover()) {
if (model.isSelected()) {
代码示例来源:origin: com.github.insubstantial/substance
tmpIcon = b.getPressedIcon();
} else if (b.isRolloverEnabled() && model.isRollover()) {
if (model.isSelected()) {
代码示例来源:origin: net.sf.tinylaf/tinylaf
tmpIcon = b.getPressedIcon();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf
SmartStickyListener.hookListener(c, listener);
icon = button.getPressedIcon();
listener = new PressedIconListener();
if (listener.shouldRecord(icon)) {
代码示例来源:origin: com.synaptix/SynaptixSwing
tmpIcon = (Icon) b.getPressedIcon();
if (tmpIcon != null) {
代码示例来源:origin: net.sf.tinylaf/tinylaf
icon = (Icon)b.getPressedIcon();
if(icon == null) {
代码示例来源:origin: com.jidesoft/jide-oss
tmpIcon = b.getPressedIcon();
if (tmpIcon != null) {
代码示例来源:origin: com.jidesoft/jide-oss
tmpIcon = b.getPressedIcon();
if (tmpIcon != null) {
代码示例来源:origin: com.jidesoft/jide-oss
tmpIcon = b.getPressedIcon();
if (tmpIcon != null) {
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
tmpIcon = b.getPressedIcon();
} else if (b.isRolloverEnabled() && model.isRollover()) {
if (model.isSelected()) {
代码示例来源:origin: org.netbeans.api/org-netbeans-swing-plaf
private Icon getIconForState (AbstractButton b) {
ButtonModel mdl = b.getModel();
Icon result = null;
if (!b.isEnabled()) {
result = mdl.isSelected() ? b.getDisabledSelectedIcon() : b.getDisabledIcon();
if (result == null && mdl.isSelected()) {
result = b.getDisabledIcon();
}
} else {
if (mdl.isArmed() && !mdl.isPressed()) {
result = mdl.isSelected() ? b.getRolloverSelectedIcon() : b.getRolloverIcon();
if (result == null & mdl.isSelected()) {
result = b.getRolloverIcon();
}
}
if (mdl.isPressed()) {
result = b.getPressedIcon();
} else if (mdl.isSelected()) {
result = b.getSelectedIcon();
}
}
if (result == null) {
result = b.getIcon();
}
return result;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
altIcon= b.getPressedIcon();
if (altIcon == null)
代码示例来源:origin: org.netbeans.api/org-netbeans-swing-plaf
result = b.getPressedIcon();
} else if (mdl.isSelected()) {
result = b.getSelectedIcon();
内容来源于网络,如有侵权,请联系作者删除!