test_class.declarator: uiLiaison
test_class.modifier: private
test_class.original_string: private UILiaison uiLiaison;
test_class.type: UILiaison
test_class.var_name: uiLiaison
test_class.declarator: impl
test_class.modifier: private
test_class.original_string: private Canvas impl;
test_class.type: Canvas
test_class.var_name: impl
test_class.declarator: canvas
test_class.modifier: private
test_class.original_string: private SwingCanvas canvas;
test_class.type: SwingCanvas
test_class.var_name: canvas
test_class.declarator: frame
test_class.modifier: private
test_class.original_string: private JFrame frame;
test_class.type: JFrame
test_class.var_name: frame
test_class.declarator: paint = new SwingPaint() {
  		{
  			setStyle(PaintStyle.FILL);
  		}
  	}
test_class.modifier: private final
test_class.original_string: private final RSPaint paint = new SwingPaint() {
  		{
  			setStyle(PaintStyle.FILL);
  		}
  	};
test_class.type: RSPaint
test_class.var_name: paint
test_class.declarator: painter
test_class.modifier: private
test_class.original_string: private Painter painter;
test_class.type: Painter
test_class.var_name: painter
test_class.file: swing/src/test/java/org/nargila/robostroke/ui/swing/SwingCanvasTest.java
test_class.identifier: SwingCanvasTest
test_case.body: @Test
  	public void testDrawPath() throws Exception {
  		
  		final RSPath path = new SwingPath();
  		
  		RSRect r = canvas.getClipBounds();
  		
  		path.moveTo(20, 20);
  		
  		path.lineTo(r.right - 20, 20);
  		path.lineTo(r.right - 20, r.bottom - 20);
  		path.moveTo(20, r.bottom - 20);
  		path.lineTo(20, 20);
  		
  		final RSPaint paint = new SwingPaint();
  		paint.setStyle(PaintStyle.STROKE);
  		paint.setStrokeWidth(5);
  		paint.setColor(uiLiaison.getRedColor());
  		
  		painter = new Painter() {
  			
  			@Override
  			public void paint(SwingCanvas canvas) {				
  				
  				canvas.drawPath(path, paint);
  			}
  		};
  
  		uiLiaison.repaint();
  		
  		Thread.sleep(5000);
  
  	}
test_case.class_method_signature: SwingCanvasTest.testDrawPath()
test_case.full_signature: @Test public void testDrawPath()
test_case.identifier: testDrawPath
test_case.invocations: getClipBounds moveTo lineTo lineTo moveTo lineTo setStyle setStrokeWidth setColor getRedColor drawPath repaint sleep
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDrawPath()
focal_class.declarator: canvas
focal_class.modifier: private final
focal_class.original_string: private final Component canvas;
focal_class.type: Component
focal_class.var_name: canvas
focal_class.declarator: g
focal_class.modifier: private final
focal_class.original_string: private final Graphics2D g;
focal_class.type: Graphics2D
focal_class.var_name: g
focal_class.file: swing/src/main/java/org/nargila/robostroke/ui/swing/SwingCanvas.java
focal_class.identifier: SwingCanvas
focal_class.interfaces: implements RSCanvas
focal_class.class_method_signature: SwingCanvas.SwingCanvas(Component canvas, Graphics g)
focal_class.full_signature: public  SwingCanvas(Component canvas, Graphics g)
focal_class.identifier: SwingCanvas
focal_class.modifiers: public
focal_class.parameters: (Component canvas, Graphics g)
focal_class.signature:  SwingCanvas(Component canvas, Graphics g)
focal_class.class_method_signature: SwingCanvas.drawLine(int left, float y, int right, float y2,
  			RSPaint gridPaint)
focal_class.full_signature: public void drawLine(int left, float y, int right, float y2,
  			RSPaint gridPaint)
focal_class.identifier: drawLine
focal_class.modifiers: public
focal_class.parameters: (int left, float y, int right, float y2,
  			RSPaint gridPaint)
focal_class.return: void
focal_class.signature: void drawLine(int left, float y, int right, float y2,
  			RSPaint gridPaint)
focal_class.class_method_signature: SwingCanvas.drawPath(RSPath path, RSPaint strokePaint)
focal_class.full_signature: public void drawPath(RSPath path, RSPaint strokePaint)
focal_class.identifier: drawPath
focal_class.modifiers: public
focal_class.parameters: (RSPath path, RSPaint strokePaint)
focal_class.return: void
focal_class.signature: void drawPath(RSPath path, RSPaint strokePaint)
focal_class.class_method_signature: SwingCanvas.drawRect(int left, int top, int right, int bottom,
  			RSPaint paint)
focal_class.full_signature: public void drawRect(int left, int top, int right, int bottom,
  			RSPaint paint)
focal_class.identifier: drawRect
focal_class.modifiers: public
focal_class.parameters: (int left, int top, int right, int bottom,
  			RSPaint paint)
focal_class.return: void
focal_class.signature: void drawRect(int left, int top, int right, int bottom,
  			RSPaint paint)
focal_class.class_method_signature: SwingCanvas.getClipBounds()
focal_class.full_signature: public RSRect getClipBounds()
focal_class.identifier: getClipBounds
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RSRect
focal_class.signature: RSRect getClipBounds()
focal_method.body: public void drawPath(RSPath path, RSPaint strokePaint) {
  		SwingPaint p = (SwingPaint) strokePaint;
  		SwingPath pth = (SwingPath) path;
  		g.setColor(p.color);
  		g.setStroke(p.stroke);
  		g.draw(pth);
  	}
focal_method.class_method_signature: SwingCanvas.drawPath(RSPath path, RSPaint strokePaint)
focal_method.full_signature: public void drawPath(RSPath path, RSPaint strokePaint)
focal_method.identifier: drawPath
focal_method.invocations: setColor setStroke draw
focal_method.modifiers: public
focal_method.parameters: (RSPath path, RSPaint strokePaint)
focal_method.return: void
focal_method.signature: void drawPath(RSPath path, RSPaint strokePaint)