mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
add missing Override annotations
This commit is contained in:
parent
3fa2deaa64
commit
5ba206111a
15 changed files with 40 additions and 9 deletions
|
@ -988,6 +988,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
btnDebug.setFocusable(false);
|
||||
btnDebug.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
||||
btnDebug.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
@Override
|
||||
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||
btnDebugMouseClicked(evt);
|
||||
}
|
||||
|
|
|
@ -952,13 +952,16 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg
|
|||
searchByTextField = new JTextField();
|
||||
searchByTextField.setToolTipText("Searches for card names, types, rarity, casting cost and rules text. NB: Mana symbols are written like {W},{U},{C} etc");
|
||||
searchByTextField.addKeyListener(new KeyAdapter() {
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e) {
|
||||
reselectBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void keyTyped(KeyEvent e) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
}
|
||||
});
|
||||
|
|
|
@ -9,6 +9,7 @@ import java.awt.Rectangle;
|
|||
import java.awt.Stroke;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
@ -16,12 +17,12 @@ import javax.swing.JComponent;
|
|||
|
||||
public class ManaBarChart extends JComponent {
|
||||
|
||||
HashMap<String, Integer> pips_at_cmcs = new HashMap<String, Integer>();
|
||||
Map<String, Integer> pips_at_cmcs = new HashMap<String, Integer>();
|
||||
|
||||
ManaBarChart() {
|
||||
}
|
||||
|
||||
ManaBarChart(HashMap<String, Integer> pips_at_cmcs) {
|
||||
ManaBarChart(Map<String, Integer> pips_at_cmcs) {
|
||||
this.pips_at_cmcs = pips_at_cmcs;
|
||||
}
|
||||
|
||||
|
@ -35,6 +36,7 @@ public class ManaBarChart extends JComponent {
|
|||
return preferred;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
drawBar((Graphics2D) g, getBounds());
|
||||
}
|
||||
|
|
|
@ -60,6 +60,7 @@ public class ManaPieChart extends JComponent {
|
|||
return preferred;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
drawPie((Graphics2D) g, getBounds(), slices.toArray(new Slice[slices.size()]));
|
||||
}
|
||||
|
|
|
@ -374,6 +374,7 @@ public class ChatPanelBasic extends javax.swing.JPanel {
|
|||
txtMessage.setName(""); // NOI18N
|
||||
txtMessage.setPreferredSize(new java.awt.Dimension(6, 70));
|
||||
txtMessage.addKeyListener(new java.awt.event.KeyAdapter() {
|
||||
@Override
|
||||
public void keyTyped(java.awt.event.KeyEvent evt) {
|
||||
txtMessageKeyTyped(evt);
|
||||
}
|
||||
|
|
|
@ -20,39 +20,48 @@ class TranslucentSynthSytle extends SynthStyle {
|
|||
style = s;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object get(SynthContext context, Object key) {
|
||||
return style.get(context, key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getBoolean(SynthContext context, Object key,
|
||||
boolean defaultValue) {
|
||||
return style.getBoolean(context, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getColor(SynthContext context, ColorType type) {
|
||||
return style.getColor(context, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Font getFont(SynthContext context) {
|
||||
return style.getFont(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SynthGraphicsUtils getGraphicsUtils(SynthContext context) {
|
||||
return style.getGraphicsUtils(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getIcon(SynthContext context, Object key) {
|
||||
return style.getIcon(context, key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Insets getInsets(SynthContext context, Insets insets) {
|
||||
return style.getInsets(context, insets);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt(SynthContext context, Object key, int defaultValue) {
|
||||
return style.getInt(context, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SynthPainter getPainter(final SynthContext context) {
|
||||
return new SynthPainter() {
|
||||
public void paintInternalFrameBackground(SynthContext context,
|
||||
|
@ -63,19 +72,23 @@ class TranslucentSynthSytle extends SynthStyle {
|
|||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getString(SynthContext context, Object key,
|
||||
String defaultValue) {
|
||||
return style.getString(context, key, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void installDefaults(SynthContext context) {
|
||||
style.installDefaults(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void uninstallDefaults(SynthContext context) {
|
||||
style.uninstallDefaults(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaque(SynthContext context) {
|
||||
if (context.getRegion() == Region.INTERNAL_FRAME) {
|
||||
return false;
|
||||
|
|
|
@ -60,6 +60,8 @@ public class ShadowLabel extends JLabel {
|
|||
this.invertColors = invertColors;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
repaint();
|
||||
|
|
|
@ -338,6 +338,8 @@ public class ConnectDialog extends MageDialog {
|
|||
);
|
||||
|
||||
txtPort.addKeyListener(new java.awt.event.KeyAdapter() {
|
||||
|
||||
@Override
|
||||
public void keyTyped(java.awt.event.KeyEvent evt) {
|
||||
ConnectDialog.this.keyTyped(evt);
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@ public class CombatDialog extends MageDialog {
|
|||
|
||||
JPanel contentPane = new JPanel() {
|
||||
private static final long serialVersionUID = -8283955788355547309L;
|
||||
|
||||
@Override
|
||||
public void paintComponent(Graphics g) {
|
||||
g.setColor(new Color(50, 50, 50, 100));
|
||||
g.fillRect(0, 0, getWidth(), getHeight());
|
||||
|
|
|
@ -119,6 +119,8 @@ public class MusicPlayer {
|
|||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
TimeUnit.MILLISECONDS.sleep(100);
|
||||
|
@ -146,6 +148,8 @@ public class MusicPlayer {
|
|||
|
||||
final byte[] tempBuffer = new byte[320];
|
||||
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
sourceDataLine.flush();
|
||||
|
|
|
@ -32,6 +32,8 @@ public class Arrow extends JPanel {
|
|||
setOpacity(0.6f);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
float ex = endX - startX;
|
||||
|
|
|
@ -56,6 +56,8 @@ public class ImagePanel extends JPanel {
|
|||
super.add(component, constraints);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@ import java.util.UUID;
|
|||
*/
|
||||
public class HideawayAbility extends StaticAbility {
|
||||
|
||||
private final String name;
|
||||
|
||||
public HideawayAbility() {
|
||||
this("land");
|
||||
}
|
||||
|
@ -126,7 +124,7 @@ class HideawayLookAtFaceDownCardEffect extends AsThoughEffectImpl {
|
|||
staticText = "You may look at cards exiled with {this}";
|
||||
}
|
||||
|
||||
public HideawayLookAtFaceDownCardEffect(final HideawayLookAtFaceDownCardEffect effect) {
|
||||
private HideawayLookAtFaceDownCardEffect(final HideawayLookAtFaceDownCardEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
|
|
|
@ -59,6 +59,8 @@ public abstract class PlainTextDeckImporter extends DeckImporter {
|
|||
return deckList;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public DeckCardLists importDeck(String file) {
|
||||
return importDeck(file, null);
|
||||
}
|
||||
|
|
|
@ -58,10 +58,6 @@ public class FilterCreaturePlayerOrPlaneswalker extends FilterPermanentOrPlayer
|
|||
return this.creatureFilter;
|
||||
}
|
||||
|
||||
public FilterPlayer getPlayerFilter() {
|
||||
return this.playerFilter;
|
||||
}
|
||||
|
||||
public FilterPlaneswalkerPermanent getPlaneswalkerFilter() {
|
||||
return this.planeswalkerFilter;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue