⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 card.java

📁 java绘图 java awt 经典绘图的例子,对于初学awt模块的人非常有帮助.
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package cardmanager;import java.io.Serializable;/** * * @author zhaolin */public class Card implements Serializable,ICardDetail,ICardAttachment{    //卡片详细信息    private CardDetail detail;    //卡片附加信息    private CardAttachment attachment;        public Card(){        detail = new CardDetail();        attachment = new CardAttachment();    }        public Card(CardDetail detail,CardAttachment attachment){        this.detail = detail;        this.attachment = attachment;    }    public String toString(){                return detail==null?"":detail.getName();    }    public String getAddress() {        return detail.getAddress();    }    public String getMail() {        return detail.getMail();    }    public String getName() {        return detail.getName();    }    public String getTel() {        return detail.getTel();    }    public void setAddress(String address) {        detail.setAddress(address);    }    public void setMail(String mail) {        detail.setMail(mail);    }    public void setName(String name) {        detail.setName(name);    }    public void setTel(String tel) {        detail.setTel(tel);    }    public int getDegree() {        return attachment.getDegree();    }    public boolean isFavor(int index) {        return attachment.isFavor(index);    }    public void removeFavor(int index) {        attachment.removeFavor(index);    }    public void setDegree(int degree) {        attachment.setDegree(degree);    }    public void setFavor(int index) {        attachment.setFavor(index);    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -