Class GraphicUtils
- java.lang.Object
-
- edu.ubo.satellitebeacons.main.simulation.utils.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.
-
-
-
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
- RectanglefileName
- Filename of the image.- Throws:
java.io.IOException
- if an error occurs during reading or when notable to create required ImageInputStream.
-
-