Chinaunix首页 | 论坛 | 博客
  • 博客访问: 960229
  • 博文数量: 93
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 880
  • 用 户 组: 普通用户
  • 注册时间: 2013-06-29 09:58
个人简介

兴趣是坚持一件事永不衰竭的动力

文章分类

全部博文(93)

文章存档

2019年(15)

2018年(9)

2016年(23)

2015年(43)

2013年(3)

我的朋友

发布时间:2015-11-25 23:51:40

package com.ddChat.graphic;import java.awt.Graphics;import javax.swing.JFrame;import javax.swing.JPanel;public class PlotPanel extends JPanel{Graphics g;Plot plot;public PlotPanel(){g = this.getGraphics();System.out.println(g);plot = new Plot(g);}public void paint(Graphics g){S.........【阅读全文】

阅读(898) | 评论(0) | 转发(0)

发布时间:2015-11-25 23:51:04

package com.ddChat.graphic;import java.awt.Graphics;import java.util.Vector;public class Plot extends Painter{Curve curve;XScale xScale;YScale yScale;GData min ;GData max ;public Plot(Graphics g){super(g);min = new GData(1, 2);max = new GData(100, 2);curve = new Curve(g);xScale.........【阅读全文】

阅读(735) | 评论(0) | 转发(0)

发布时间:2015-11-25 23:50:28

package com.ddChat.graphic;import java.awt.Graphics;public class YScale extends Scale{GData min;GData max;private final int MAJOR_TICK_LEN = 10;public YScale(Graphics g){super(g);min = new GData(1, 2);max = new GData(300, 2);}@Overridevoid setG(Graphics g){this.g = g;}@Ov.........【阅读全文】

阅读(889) | 评论(0) | 转发(0)

发布时间:2015-11-25 23:49:48

package com.ddChat.graphic;import java.awt.Graphics;public class XScale extends Scale{GData min ;GData max ;private final int MAJOR_TICK_LEN = 10;public XScale(Graphics g){super(g);min = new GData(1, 2);max = new GData(290, 2);}@Overridevoid setG(Graphics g){this.g = g; }.........【阅读全文】

阅读(794) | 评论(0) | 转发(0)

发布时间:2015-11-25 23:49:10

package com.ddChat.graphic;import java.awt.Graphics;public abstract class Scale extends Painter{TickInfo tickInfo;TickProp tickProp;public Scale(Graphics g){super(g); }void draw(){if(g == null)return;if(tickInfo == null)return;if(tickProp == null)return; drawSkel();drawMajorTic.........【阅读全文】

阅读(777) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册