Class GraphicUtils


  • public final class GraphicUtils
    extends java.lang.Object
    Some graphic utils methods.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setImage​(GRect element, java.lang.String fileName)
      Add image to a rectangle Set the rectangle dimension according to the image.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setImage

        public static void setImage​(GRect element,
                                    java.lang.String fileName)
                             throws java.io.IOException
        Add image to a rectangle Set the rectangle dimension according to the image.
        Parameters:
        element - Rectangle
        fileName - Filename of the image.
        Throws:
        java.io.IOException - if an error occurs during reading or when notable to create required ImageInputStream.