cardattachment.java
来自「java绘图 java awt 经典绘图的例子,对于初学awt模块的人非常有帮助」· Java 代码 · 共 40 行
JAVA
40 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package cardmanager;/** * * @author zhaolin */public class CardAttachment implements java.io.Serializable, ICardAttachment { private int degree; private boolean[] favors; public CardAttachment() { favors = new boolean[6]; } public int getDegree() { return degree; } public void setDegree(int degree) { this.degree = degree; } public boolean isFavor(int index){ return favors[index]; } public void setFavor(int index){ favors[index] = true; } public void removeFavor(int index){ favors[index] = false; } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?