("Param itemmonth error!");
System.out.println(e);
}
try{
xCode=Subicode(getParameter("itemcode"));
Len=xCode.length;
hx=w/Len;
}
catch(Exception e){
System.out.println("Param itemcode error!");
System.out.println(e);
}
try{
yData=Substr(getParameter("itemval"));
}
catch(Exception e){
System.out.println("Param itemval error!");
System.out.println(e);
}
try{
xPce=Substr(getParameter("itempce"));
MaxPce=getMaxVal(xPce);
majStick=Integer.parseInt(MaxPce.substring(0,1))+2; //取最大pce的最大整数
}
catch(Exception e){
System.out.println("Param itempce error!");
System.out.println(e);
}
try{
addMouseListener(new MouseAdapter(){
public void mouseReleased(MouseEvent evt){//检测释放鼠标按键事件
setCursor(Cursor.getDefaultCursor());
Point ioc=evt.getPoint();
X=ioc.x; //把当前座标传递给另一线程
Y=ioc.y;
//repaint();
}
});
addMouseMotionListener(new MouseMotionAdapter(){
public void mouseDragged(MouseEvent evt){
Point ioc=evt.getPoint();
if((ioc.x>leftMargine & ioc.x< w+leftMargine) & (ioc.y >topMargine & ioc.y< h+topMargine))
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
else
setCursor(Cursor.getDefaultCursor());
}
public void mouseMoved(MouseEvent evt){ //检测鼠标移动事件