兴趣是坚持一件事永不衰竭的动力
发布时间: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.........【阅读全文】
发布时间:2015-11-24 23:48:09
package com.ddChat.graphic;public class GData{private double value;private int resolution;private final int MIN_RESOLUTION = 0;private final int MAX_RESOLUTION = 10;public GData(){}public GData(double value, int resolution){super();resolution = resolution < MIN_RESOLUTION ? MIN_RESOL.........【阅读全文】
发布时间:2015-11-24 23:47:21
package com.ddChat.graphic;public class Config{public final static int MIN_TICK_COUNT = 3;public final static int MAX_TICK_COUNT = 5;public final static int GRAPHIC_SCREEN_WHITH = 400;public final static int GRAPHIC_SCREEN_HEIGHT = 300;public final static int TICK_INTERVAL_BASE[] = {1,2,5};.........【阅读全文】