j2me课程设计论文--课程表管理系统内容摘要:
h,int dayofmonth){ =year。 =month。 =dayofmonth。 } public Mydate(){ =2020。 =1。 =18。 } public byte[] toBytes(){ byte[] data = null。 try { ByteArrayOutputStream baos = new ByteArrayOutputStream()。 DataOutputStream dos = new DataOutputStream(baos)。 (year)。 (month)。 (dayofmonth)。 data = ()。 ()。 ()。 } catch (Exception e) { ()。 } return data。 } public void initMydate(byte[] data){ try { ByteArrayInputStream bais = new ByteArrayInputStream(data)。 DataInputStream dis = new DataInputStream(bais)。 year = ()。 month = ()。 dayofmonth = ()。 ()。 ()。 } catch (IOException ex) { 本科课程设计论文 13 ()。 } } public int getDayofmonth() { return dayofmonth。 } public int getMonth() { return month。 } public int getYear() { return year。 } } package entities。 import .*。 /* * 该类完成存储某一个课程一个星期的上课情况内容,并完成了显示功能 * 它继承自 customitem 是 diplayalbe 子类,因此能以表格显示 * setcoursedata 设置该表格里内容 * getcoursedata 则返回表格内容 * data 字符串数组用于显示 “ *” 或者显示空 它是 6 行 8 列数组 它还要显示表头 星期几 以及第几节课 * courseata 整型数组,真正用于存储数据,为 1 则有课,否则没课,它只是 5 行 7 列的数组 */ /** * */ public class OneCourseTable extends CustomItem implements ItemCommandListener{ private static final Command CMD_EDIT = new Command(编辑 , , 1)。 private static final int UPPER = 0。 private static final int IN = 1。 private static final int LOWER = 2。 private int rows = 6。 private int cols = 8。 private int dx = 25。 本科课程设计论文 14 private int dy = 20。 private int location = UPPER。 private int currentX = 1。 private int currentY = 1。 private String[][] data = new String[rows][cols]。 private int[][] coursedata=new int[rows1][cols1]。 // Traversal stuff // indicating support of horizontal traversal internal to the CustomItem boolean horz。 // indicating support for vertical traversal internal to the CustomItem. boolean vert。 public OneCourseTable(String title) { super(title)。 setDefaultCommand(CMD_EDIT)。 setItemCommandListener(this)。 //星期 data[0][1]=一。 data[0][2]=二。 data[0][3]=三。 data[0][4]=四。 data[0][5]=五。 data[0][6]=六。 data[0][7]=日。 data[1][0]=1。 data[2][0]=2。 data[3][0]=3。 data[4][0]=4。 data[5][0]=5。 for(int i=0。 i5。 i++) for(int j=0。 j7。 j++) coursedata[i][j]=0。 int interactionMode = getInteractionModes()。 horz = ((interactionMode amp。 ) != 0)。 vert = ((interactionMode amp。 ) != 0)。 } public OneCourseTable(String title,int[][] a) { super(title)。 setDefaultCommand(CMD_EDIT)。 setItemCommandListener(this)。 //星期 data[0][1]=一。 data[0][2]=二。 data[0][3]=三。 data[0][4]=四。 data[0][5]=五。 data[0][6]=六。 data[0][7]=日。 data[1][0]=1。 data[2][0]=2。 data[3][0]=3。 data[4][0]=4。 data[5][0]=5。 本科课程设计论文 15 for(int i=0。 i5。 i++) for(int j=0。 j7。 j++) { coursedata[i][j]=a[i][j]。 if(coursedata[i][j]!=0) data[i+1][j+1]=*。 } int interactionMode = getInteractionModes()。 horz = ((interactionMode amp。 ) != 0)。 vert = ((interactionMode amp。 ) != 0)。 } protected int getMinContentHeight() { return (rows * dy) + 1。 } protected int getMinContentWidth() { return (cols * dx) + 1。 } protected int getPrefContentHeight(int width) { return (rows * dy) + 1。 } protected int getPrefContentWidth(int height) { return (cols * dx) + 1。 } protected void paint(Graphics g, int w, int h) { for (int i = 0。 i = rows。 i++) { (0, i * dy, cols * dx, i * dy)。 } for (int i = 0。 i = cols。 i++) { (i * dx, 0, i * dx, rows * dy)。 } int oldColor = ()。 (0x00D0D0D0)。 ((currentX * dx) + 1, (currentY * dy) + 1, dx 1, dy 1)。 (oldColor)。 本科课程设计论文 16 for (int i = 0。 i rows。 i++) { for (int j = 0。 j cols。 j++) { if (data[i][j] != null) { // store clipping properties int oldClipX = ()。 int oldClipY = ()。 int oldClipWidth = ()。 int oldClipHeight = ()。 ((j * dx) + 1, i * dy, dx 1, dy 1)。 (data[i][j], (j * dx) + 2, ((i + 1) * dy) 2, | )。 // restore clipping properties (oldClipX, oldClipY, oldClipWidth, oldClipHeight)。 } } } } protected boolean traverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout) { if (horz amp。 amp。 vert) { switch (dir) { case : if (location == UPPER) { location = IN。 } else { if (currentY (rows 1)) { currentY++。 repaint(currentX * dx, (currentY 1) * dy, dx, dy)。j2me课程设计论文--课程表管理系统
相关推荐
设计电子文档及其它相关材料。 太原理工大学毕业设计 (论文 )用纸 第 3 页 主要参考文献(资料): [1] 冯燕奎 ,赵德奎 .JSP 实用案例教程 [M].清华大学出版社 ,2020 [2] 张洪斌 .java2 高级程序设计 [M]中科多媒体出版社, 2020 [3] Jim and the Unified Process[M]机械工业出版社 ,2020 [4] 徐建波,周新莲. Web
xtArea[4].setText( 家教次数 () + )。 jTextArea[5].setText( 家教附加 () + )。 jTextArea[6].setText( 家教缺勤 () + )。 jTextArea[7].setText( 薪水 () + )。 jTextArea[8].setText(new ().toString())。 jTextArea[9]
用方格网控制,直角坐标法测量。 控制点的选取 土方开挖前,要作好工程测量控制,根据工程场地实际情况, 采用主轴线控制法,测设和作好建筑位置控制桩。 具体在轴线形成“井”字形主轴线平面控制方案。 控制点设在地面控制桩上。 控制点的定位 以城市规划或建设单位指定的红线边为准用直接测法,进行测设平面控制桩。 经过闭合后达到要求精度,即为平面控制桩。 并据此测量出建筑物各轴线。 控制点测定后
分图 13 (3)、如果您未处于登录状态的话,将提示您登录。 如果您还未成为 SUN 会员的话,可以马上注册会员。 其登录过程同其它网站会员登录过程相似。 (4)、成功登录后,进入英文版文件下载页面,如图四所示,点击下载链接即可下载英文版文件 ,大小为。 图二: 英文版文件下载页面部分图 (4)、运行 安装程序,当系统提示您提供安装目录时,请确保该安装目录的完全合法的路 径中不包含任何空格。
.......................................................................................... 56 逻辑设计 ....................................................................................................
ce = new Appearance()。 // points to the mesh last made semi transparent private Mesh transparentMesh = null。 private Maze maze = new Maze(10, MAZE_SIDE_LENGTH, WALL_HEIGHT)。 private Thread mainThread