兴趣是坚持一件事永不衰竭的动力
发布时间: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.........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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; }.........【阅读全文】
发布时间: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.........【阅读全文】