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 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) {
String category = "toolbar";
String subCategory = (String)c.getClientProperty("XPStyle.subClass");
if (subCategory != null) {
category = subCategory + "::" + category;
}
xp.getSkin(category).paintSkin(g, 0, 0, c.getSize().width, c.getSize().height, 0);
} else {
super.paint(g, c);
}
|