forked from External/mage
[refactoring][minor] Replaced all tabs with four spaces.
This commit is contained in:
parent
e646e4768d
commit
239a4fb100
2891 changed files with 79411 additions and 79411 deletions
|
|
@ -14,17 +14,17 @@ import javax.swing.plaf.synth.SynthStyleFactory;
|
|||
* @author nantuko
|
||||
*/
|
||||
public class MageSynthStyleFactory extends SynthStyleFactory {
|
||||
private SynthStyleFactory wrappedFactory;
|
||||
private SynthStyleFactory wrappedFactory;
|
||||
|
||||
public MageSynthStyleFactory(SynthStyleFactory factory) {
|
||||
this.wrappedFactory = factory;
|
||||
}
|
||||
public MageSynthStyleFactory(SynthStyleFactory factory) {
|
||||
this.wrappedFactory = factory;
|
||||
}
|
||||
|
||||
public SynthStyle getStyle(JComponent c, Region id) {
|
||||
SynthStyle s = wrappedFactory.getStyle(c, id);
|
||||
if (id == Region.INTERNAL_FRAME) {
|
||||
s = new TranslucentSynthSytle(s);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
public SynthStyle getStyle(JComponent c, Region id) {
|
||||
SynthStyle s = wrappedFactory.getStyle(c, id);
|
||||
if (id == Region.INTERNAL_FRAME) {
|
||||
s = new TranslucentSynthSytle(s);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue