package graphics; public class GraphicsUtil { private static GraphicsUtil instance; /** * Public access for the singleton. * * @return the singleton object. */ public static GraphicsUtil getInstance() { if (instance == null) { instance = new GraphicsUtil(); } return instance; } }