ilog.rules.dtree.ui

Class IlrDTreeUIHelper

  • java.lang.Object
    • ilog.rules.dtree.ui.IlrDTreeUIHelper


  • public class IlrDTreeUIHelper
    extends java.lang.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

      Constructors 
      Constructor and Description
      IlrDTreeUIHelper() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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, java.lang.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,
                               java.lang.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.

© Copyright IBM Corp. 1987, 2017