jInfer

cz.cuni.mff.ksi.jinfer.basicruledisplayer.logic
Class RulePainter

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.basicruledisplayer.logic.RulePainter

public class RulePainter
extends Object

Class responsible for rendering a set of rules to a canvas.


Constructor Summary
RulePainter(Component root)
          Full constructor.
 
Method Summary
 void paint(Graphics2D g)
          Paint the rendered image to the specified graphics object.
 void setRules(List<Element> rules)
          Set the rules this painter will render.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulePainter

public RulePainter(Component root)
Full constructor.

Parameters:
root - Root component, in which rules will be rendered.
Method Detail

setRules

public void setRules(List<Element> rules)
Set the rules this painter will render.


paint

public void paint(Graphics2D g)
Paint the rendered image to the specified graphics object.

Parameters:
g - Graphics object to paint rendered rules to.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011