freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

通信工程學習資料全-資料下載頁

2025-06-29 18:02本頁面
  

【正文】 { JFileChooser fileChooser=new JFileChooser()。 ()。 int result =(this)。 if(result==) return 。 File fileName=()。 ()。 if (fileName==null||().equals()) (fileChooser,文件名無效, 文件名無效, )。 else{ try { ()。 FileOutputStream fos=new FileOutputStream(fileName)。 output=new ObjectOutputStream(fos)。 drawings record。 ( index )。 for(int i=0。i index 。i++) { drawings p= itemList[ i ] 。 (p)。 ()。 //將所有圖形信息強制轉換成父類線性化存儲到文件中 } ()。 ()。 } catch(IOException ioe) { ()。 } } }//打開一個圖形文件程序段,loadFile函數(shù)通過建立FileInputStream對象讀入文件 public void loadFile() { JFileChooser fileChooser=new JFileChooser()。 ()。 int result =(this)。 if(result==) return 。 File fileName=()。 ()。 if (fileName==null||().equals()) (fileChooser,文件名無效, 文件名無效, )。 else { try { FileInputStream fis=new FileInputStream(fileName)。 input=new ObjectInputStream(fis)。 drawings inputRecord。 int countNumber=0。 countNumber=()。 for(index=0。index countNumber 。index++) { inputRecord=(drawings)()。 itemList[ index ] = inputRecord 。 } createNewItem()。 ()。 repaint()。 } catch(EOFException endofFileException){ (this,文件里沒有更多的記錄, 無法找到類, )。 } catch(ClassNotFoundException classNotFoundException){ (this,不能創(chuàng)建對象, 文件結束, )。 } catch (IOException ioException){ (this,從文件讀取資料出錯, 讀出錯誤, )。 } } }//新建一個文件程序段 public void newFile() { index=0。 currentChoice=3。 color=。 stroke=。 createNewItem()。 repaint()。//將有關值設置為初始狀態(tài),并且重畫 }//主函數(shù)段 public static void main(String args[]) {try { ( ())。 } catch ( Exception e ) {}//將界面設置為當前windows風格 QingDrawPad newPad=new QingDrawPad()。 ( new WindowAdapter(){ public void windowClosing(WindowEvent e) {(0)。}})。 }}//定義畫圖的基本圖形單元class drawings implements Serializable//父類,基本圖形單元,用到串行化接口,保存時所用 { int x1,y1,x2,y2。 //定義坐標屬性 int R,G,B。 //定義色彩屬性 float stroke。 //定義線條粗細屬性 int type。 //定義字體屬性 String s1。 String s2。 //定義字體風格屬性 void draw(Graphics2D g2d){}。//定義繪圖函數(shù) }/************************************************* 下面是各種基本圖形單元的子類,都繼承自父類drawings,請仔細理解繼承的概念**************************************************/ class Line extends drawings //直線類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke, ,))。 (x1,y1,x2,y2)。 } } class Rect extends drawings//矩形類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), (x1x2),(y1y2))。 } } class fillRect extends drawings//實心矩形類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), (x1x2),(y1y2))。 } } class Oval extends drawings//橢圓類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), (x1x2),(y1y2))。 } } class fillOval extends drawings//實心橢圓 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), (x1x2),(y1y2))。 } } class Circle extends drawings//圓類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), ((x1x2),(y1y2)), ((x1x2),(y1y2)) )。 } } class fillCircle extends drawings//實心圓 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), ((x1x2),(y1y2)), ((x1x2),(y1y2)) )。 } } class RoundRect extends drawings//圓角矩形類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), (x1x2),(y1y2), 50,35)。 } } class fillRoundRect extends drawings//實心圓角矩形類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke))。 ((x1,x2),(y1,y2), (x1x2),(y1y2), 50,35)。 } } class Pencil extends drawings//隨筆畫類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new BasicStroke(stroke, ,))。 (x1,y1,x2,y2)。 } } class Rubber extends drawings//橡皮擦類 { void draw(Graphics2D g2d) { (new Color(255,255,255))。 (new BasicStroke(stroke+4, ,))。 (x1,y1,x2,y2)。 } } class Word extends drawings//輸入文字類 { void draw(Graphics2D g2d) { (new Color(R,G,B))。 (new Font(s2,x2+y2,((int)stroke)*18))。 if (s1!= null ) (s1,x1,y1)。 } }七:參考文獻:1::清華大學出版社,2008.2:楊樹林、:清華大學出版社,2006.3:(第二版).北京:清華大學出版社,2006.4:(第二版)題解與上機指導(修訂版),2010.通信原理期末考試試題及答案一、填空題(總分24,共12小題,每空1分)數(shù)字通信系統(tǒng)的有效性用 傳輸頻帶利用率 衡量,可靠性用 差錯率 衡量。模擬信號是指信號的參量可 連續(xù) 取值的信號,數(shù)字信號是指信號的參量可 離散 取值的信號。廣義平均隨機過程的數(shù)學期望、方差與 時間 無關,自相關函數(shù)只與時間間隔有關。一個均值為零方差為的窄帶平穩(wěn)高斯過程,其包絡的一維分布服從瑞利分布,相位的一維分布服從均勻分布。當無信號時,加性噪聲是否存在? 是 乘性噪聲是否存在? 否 。信道容量是指: 信道傳輸信息的速率的最大值 ,香農公式可表示為:。設調制信號為f(t)載波為,則抑制載波雙邊帶調幅信號的時域表達式為,頻域表達式為。對最高頻率為fH的調制信號m(t)分別進行A
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1