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();
drawMajorTick();
}
/**
* 画骨架
*/
abstract void drawSkel();
/**
* 画主刻度
*/
abstract void drawMajorTick();
public TickInfo getTickInfo()
{
return tickInfo;
}
public void setTickInfo(TickInfo tickInfo)
{
this.tickInfo = tickInfo;
}
public TickProp getTickProp()
{
return tickProp;
}
public void setTickProp(TickProp tickProp)
{
this.tickProp = tickProp;
}
}
阅读(1720) | 评论(0) | 转发(0) |