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,81 +14,81 @@ import javax.swing.plaf.synth.SynthPainter;
|
|||
import javax.swing.plaf.synth.SynthStyle;
|
||||
|
||||
class TranslucentSynthSytle extends SynthStyle {
|
||||
private final SynthStyle style;
|
||||
private final SynthStyle style;
|
||||
|
||||
public TranslucentSynthSytle(SynthStyle s) {
|
||||
style = s;
|
||||
}
|
||||
public TranslucentSynthSytle(SynthStyle s) {
|
||||
style = s;
|
||||
}
|
||||
|
||||
public Object get(SynthContext context, Object key) {
|
||||
return style.get(context, key);
|
||||
}
|
||||
public Object get(SynthContext context, Object key) {
|
||||
return style.get(context, key);
|
||||
}
|
||||
|
||||
public boolean getBoolean(SynthContext context, Object key,
|
||||
boolean defaultValue) {
|
||||
return style.getBoolean(context, key, defaultValue);
|
||||
}
|
||||
public boolean getBoolean(SynthContext context, Object key,
|
||||
boolean defaultValue) {
|
||||
return style.getBoolean(context, key, defaultValue);
|
||||
}
|
||||
|
||||
public Color getColor(SynthContext context, ColorType type) {
|
||||
return style.getColor(context, type);
|
||||
}
|
||||
public Color getColor(SynthContext context, ColorType type) {
|
||||
return style.getColor(context, type);
|
||||
}
|
||||
|
||||
public Font getFont(SynthContext context) {
|
||||
return style.getFont(context);
|
||||
}
|
||||
public Font getFont(SynthContext context) {
|
||||
return style.getFont(context);
|
||||
}
|
||||
|
||||
public SynthGraphicsUtils getGraphicsUtils(SynthContext context) {
|
||||
return style.getGraphicsUtils(context);
|
||||
}
|
||||
public SynthGraphicsUtils getGraphicsUtils(SynthContext context) {
|
||||
return style.getGraphicsUtils(context);
|
||||
}
|
||||
|
||||
public Icon getIcon(SynthContext context, Object key) {
|
||||
return style.getIcon(context, key);
|
||||
}
|
||||
public Icon getIcon(SynthContext context, Object key) {
|
||||
return style.getIcon(context, key);
|
||||
}
|
||||
|
||||
public Insets getInsets(SynthContext context, Insets insets) {
|
||||
return style.getInsets(context, insets);
|
||||
}
|
||||
public Insets getInsets(SynthContext context, Insets insets) {
|
||||
return style.getInsets(context, insets);
|
||||
}
|
||||
|
||||
public int getInt(SynthContext context, Object key, int defaultValue) {
|
||||
return style.getInt(context, key, defaultValue);
|
||||
}
|
||||
public int getInt(SynthContext context, Object key, int defaultValue) {
|
||||
return style.getInt(context, key, defaultValue);
|
||||
}
|
||||
|
||||
public SynthPainter getPainter(final SynthContext context) {
|
||||
return new SynthPainter() {
|
||||
public void paintInternalFrameBackground(SynthContext context,
|
||||
Graphics g, int x, int y, int w, int h) {
|
||||
g.setColor(new Color(50, 50, 50, 100));
|
||||
g.fillRoundRect(x, y, w, h, 5, 5);
|
||||
}
|
||||
};
|
||||
}
|
||||
public SynthPainter getPainter(final SynthContext context) {
|
||||
return new SynthPainter() {
|
||||
public void paintInternalFrameBackground(SynthContext context,
|
||||
Graphics g, int x, int y, int w, int h) {
|
||||
g.setColor(new Color(50, 50, 50, 100));
|
||||
g.fillRoundRect(x, y, w, h, 5, 5);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public String getString(SynthContext context, Object key,
|
||||
String defaultValue) {
|
||||
return style.getString(context, key, defaultValue);
|
||||
}
|
||||
public String getString(SynthContext context, Object key,
|
||||
String defaultValue) {
|
||||
return style.getString(context, key, defaultValue);
|
||||
}
|
||||
|
||||
public void installDefaults(SynthContext context) {
|
||||
style.installDefaults(context);
|
||||
}
|
||||
public void installDefaults(SynthContext context) {
|
||||
style.installDefaults(context);
|
||||
}
|
||||
|
||||
public void uninstallDefaults(SynthContext context) {
|
||||
style.uninstallDefaults(context);
|
||||
}
|
||||
public void uninstallDefaults(SynthContext context) {
|
||||
style.uninstallDefaults(context);
|
||||
}
|
||||
|
||||
public boolean isOpaque(SynthContext context) {
|
||||
if (context.getRegion() == Region.INTERNAL_FRAME) {
|
||||
return false;
|
||||
} else {
|
||||
return style.isOpaque(context);
|
||||
}
|
||||
}
|
||||
public boolean isOpaque(SynthContext context) {
|
||||
if (context.getRegion() == Region.INTERNAL_FRAME) {
|
||||
return false;
|
||||
} else {
|
||||
return style.isOpaque(context);
|
||||
}
|
||||
}
|
||||
|
||||
public Color getColorForState(SynthContext context, ColorType type) {
|
||||
return null;
|
||||
}
|
||||
public Color getColorForState(SynthContext context, ColorType type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Font getFontForState(SynthContext context) {
|
||||
return null;
|
||||
}
|
||||
public Font getFontForState(SynthContext context) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue