39 |
|
|
40 |
package javax.swing.plaf.metal; |
package javax.swing.plaf.metal; |
41 |
|
|
42 |
|
import java.awt.Color; |
43 |
|
|
44 |
import javax.swing.UIDefaults; |
import javax.swing.UIDefaults; |
45 |
import javax.swing.plaf.ColorUIResource; |
import javax.swing.plaf.ColorUIResource; |
46 |
|
import javax.swing.plaf.FontUIResource; |
47 |
|
|
48 |
public abstract class MetalTheme |
public abstract class MetalTheme |
49 |
{ |
{ |
50 |
private ColorUIResource BLACK = new ColorUIResource(0, 0, 0); |
private ColorUIResource BLACK = new ColorUIResource(Color.BLACK); |
51 |
private ColorUIResource WHITE = new ColorUIResource(255, 255, 255); |
private ColorUIResource WHITE = new ColorUIResource(Color.WHITE); |
52 |
|
|
53 |
public MetalTheme() |
public MetalTheme() |
54 |
{ |
{ |
125 |
|
|
126 |
public ColorUIResource getInactiveControlTextColor() |
public ColorUIResource getInactiveControlTextColor() |
127 |
{ |
{ |
128 |
return getSecondary2(); |
return getControlDisabled(); |
129 |
} |
} |
130 |
|
|
131 |
public ColorUIResource getInactiveSystemTextColor() |
public ColorUIResource getInactiveSystemTextColor() |
140 |
|
|
141 |
public ColorUIResource getMenuDisabledForeground() |
public ColorUIResource getMenuDisabledForeground() |
142 |
{ |
{ |
143 |
return getSecondary2(); |
return getSecondary3(); |
144 |
} |
} |
145 |
|
|
146 |
public ColorUIResource getMenuForeground() |
public ColorUIResource getMenuForeground() |
249 |
protected abstract ColorUIResource getSecondary1(); |
protected abstract ColorUIResource getSecondary1(); |
250 |
protected abstract ColorUIResource getSecondary2(); |
protected abstract ColorUIResource getSecondary2(); |
251 |
protected abstract ColorUIResource getSecondary3(); |
protected abstract ColorUIResource getSecondary3(); |
252 |
|
|
253 |
|
public abstract FontUIResource getControlTextFont(); |
254 |
|
public abstract FontUIResource getMenuTextFont(); |
255 |
|
public abstract FontUIResource getSubTextFont(); |
256 |
|
public abstract FontUIResource getSystemTextFont(); |
257 |
|
public abstract FontUIResource getUserTextFont(); |
258 |
|
public abstract FontUIResource getWindowTitleFont(); |
259 |
} |
} |