Rule Designer API

ilog.rules.dtree.ui
Class IlrDTreeUIHelper

java.lang.Object
  extended by ilog.rules.dtree.ui.IlrDTreeUIHelper

public class IlrDTreeUIHelper
extends Object

This class provides static helpers used to manipulate a Decision Tree Swing User Interface. Currently only provides the necessary API to generate an image of a decision tree.


Constructor Summary
IlrDTreeUIHelper()
           
 
Method Summary
static byte[] computeImageBytes(IlrDTController controller)
          This method returns a PNG image of the Decision Tree represented by the given DT controller.
static byte[] computeImageBytes(IlrDTController controller, String imageFormat)
          This method returns a image of the Decision Tree represented by the given DT controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrDTreeUIHelper

public IlrDTreeUIHelper()
Method Detail

computeImageBytes

public static byte[] computeImageBytes(IlrDTController controller)
This method returns a PNG image of the Decision Tree represented by the given DT controller.

Parameters:
controller - A Decision Tree controller.
Returns:
An array of bytes containing the image in PNG format or null if no writer for PNG was found or if an error occurs dumping the image.

computeImageBytes

public static byte[] computeImageBytes(IlrDTController controller,
                                       String imageFormat)
This method returns a image of the Decision Tree represented by the given DT controller. The image format is specified.

Parameters:
controller - A Decision Tree controller.
imageFormat - The format of the image.
Returns:
An array of bytes containing the image or null if no writer for the given image format was found or if an error occurs dumping the image.

Rule Designer API

© Copyright IBM Corp. 1987, 2013