Code cleanup

This commit is contained in:
drdev
2014-02-04 22:59:12 +00:00
parent acfe00d6db
commit 83aa60a77c
2 changed files with 33 additions and 37 deletions

View File

@@ -45,7 +45,6 @@ public enum CDetail implements ICDoc {
* @param c   Card object * @param c   Card object
*/ */
public void showCard(final Card c) { public void showCard(final Card c) {
view.getLblFlipcard().setVisible(c != null && (c.isDoubleFaced() || c.isFlipCard() || c.isFaceDown() && Singletons.getControl().mayShowCard(c))); view.getLblFlipcard().setVisible(c != null && (c.isDoubleFaced() || c.isFlipCard() || c.isFaceDown() && Singletons.getControl().mayShowCard(c)));
view.getPnlDetail().setCard(c); view.getPnlDetail().setCard(c);
if( view.getParentCell() != null) if( view.getParentCell() != null)

View File

@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package forge.gui.match.controllers; package forge.gui.match.controllers;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelEvent;
@@ -117,7 +118,6 @@ public enum CPicture implements ICDoc {
* <li>Displays the alternate image for applicable cards on mouse click. * <li>Displays the alternate image for applicable cards on mouse click.
*/ */
private void setMouseButtonListener() { private void setMouseButtonListener() {
this.picturePanel.addMouseListener(new MouseAdapter() { this.picturePanel.addMouseListener(new MouseAdapter() {
private final boolean[] buttonsDown = new boolean[4]; private final boolean[] buttonsDown = new boolean[4];
@@ -225,8 +225,6 @@ public enum CPicture implements ICDoc {
(currentCard.isDoubleFaced() || currentCard.isFlipCard() || isFlippableMorph); (currentCard.isDoubleFaced() || currentCard.isFlipCard() || isFlippableMorph);
} }
/** /**
* Card characteristic state machine. * Card characteristic state machine.
* <p> * <p>
@@ -239,7 +237,6 @@ public enum CPicture implements ICDoc {
* @return the alternate {@code CardCharacteristicName} state or default if not applicable * @return the alternate {@code CardCharacteristicName} state or default if not applicable
*/ */
public static CardCharacteristicName getAlternateState(final Card card, CardCharacteristicName currentState) { public static CardCharacteristicName getAlternateState(final Card card, CardCharacteristicName currentState) {
// Default. Most cards will only ever have an "Original" state represented by a single image. // Default. Most cards will only ever have an "Original" state represented by a single image.
CardCharacteristicName alternateState = CardCharacteristicName.Original; CardCharacteristicName alternateState = CardCharacteristicName.Original;