private void drawVertical(Graphics g){
    	 int ch, cw;
         Rectangle trackBounds = trackRect;
    	 Graphics2D g2 = (Graphics2D) g;
         ch = trackBounds.height;
         cw = 3;

         g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                 RenderingHints.VALUE_ANTIALIAS_ON);
         g2.translate(trackBounds.x, trackBounds.y + ch);

         // 背景设为灰色
         g2.setPaint(Color.decode(fillColor));
         g2.fillRect(cw, -ch , cw, ch);

         int trackTop = 0;
         int trackBottom = 0;
         trackBottom = trackRect.height;

         int middleOfThumb = 0;
         int fillTop = 0;
         int fillBottom = 0;
         //坐标换算
         middleOfThumb = thumbRect.y + (thumbRect.height / 2);
         middleOfThumb -= trackRect.y;

         if (!drawInverted()) {
             fillTop = !slider.isEnabled() ? trackTop : trackTop + 1;
             fillBottom = middleOfThumb;
         } else {
             fillTop = middleOfThumb;
             fillBottom = !slider.isEnabled() ? trackBottom - 1 : trackBottom - 2;
         }
         // 设定上边背景
         g2.setPaint(Color.decode(unFillColor));
         g2.fillRect(cw, -ch, cw ,fillBottom - fillTop);

         //圆点的背景
         g2.setPaint(Color.decode(ballColor));
         g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);
         g2.translate(-trackBounds.x + 1, -(trackBounds.y + ch));
    }