兴趣是坚持一件事永不衰竭的动力
发布时间: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.........【阅读全文】
发布时间:2015-11-25 23:48:29
package com.ddChat.graphic;import java.awt.Graphics;public abstract class Painter{Graphics g;public Painter(){}public Painter(Graphics g){super();this.g = g;}abstract void draw();abstract void setG(Graphics g); public Graphics getG(){return g;}}.........【阅读全文】
发布时间:2015-11-24 23:49:30
package com.ddChat.graphic;public class TickProp{int tickCount;double tickInterval;public TickProp(){}public TickProp(int tickCount, double tickInterval){super();this.tickCount = tickCount;this.tickInterval = tickInterval;}public int getTickCount(){return tickCount;}public void.........【阅读全文】
发布时间:2015-11-24 23:48:50
package com.ddChat.graphic;public class TickInfo{GData min, max,len;GData alignMin, alignMax,alignLen;TickProp tickProp,alignTickProp;public TickInfo(GData min, GData max){super();this.min = min;this.max = max;this.len = new GData();len.setValue(max.getValue() - min.getValue());len.........【阅读全文】