@Test
public void testDrawLine() throws Exception {

	
	painter = new Painter() {
		
		@Override
		public void paint(SwingCanvas canvas) {
			RSRect r = canvas.getClipBounds();
			r.left += 20;
			r.top += 20;
			r.right -= 20;
			r.bottom -= 20;
			
			int center = (r.bottom - r.top) / 2;
			
			RSPaint paint = new SwingPaint();
			paint.setStyle(PaintStyle.STROKE);
			paint.setStrokeWidth(5);
			paint.setColor(uiLiaison.getRedColor());
			
			canvas.drawLine(r.left, center , r.right, center, paint);
		}
	};
	uiLiaison.repaint();
	
	Thread.sleep(5000);
}