Methods Summary |
---|
protected javax.swing.border.Border | createNonRolloverBorder()
if (XPStyle.getXP() != null) {
return new EmptyBorder(3, 3, 3, 3);
} else {
return super.createNonRolloverBorder();
}
|
protected javax.swing.border.Border | createRolloverBorder()
if (XPStyle.getXP() != null) {
return new EmptyBorder(3, 3, 3, 3);
} else {
return super.createRolloverBorder();
}
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent c)
return new WindowsToolBarUI();
|
protected javax.swing.border.Border | getRolloverBorder(javax.swing.AbstractButton b){@inheritDoc}
XPStyle xp = XPStyle.getXP();
if (xp != null) {
return xp.getBorder(b, WindowsButtonUI.getXPButtonType(b));
} else {
return super.getRolloverBorder(b);
}
|
protected void | installDefaults()
if (XPStyle.getXP() != null) {
setRolloverBorders(true);
}
super.installDefaults();
|
public void | paint(java.awt.Graphics g, javax.swing.JComponent c)
XPStyle xp = XPStyle.getXP();
if (xp != null) {
xp.getSkin(c, Part.TP_TOOLBAR).paintSkin(g, 0, 0,
c.getWidth(), c.getHeight(), null, true);
} else {
super.paint(g, c);
}
|