370371372373374375376377378
@Override public ImageCapabilities getCapabilities(GraphicsConfiguration gc) { if (isConfigValid(gc)) { return isAccelerationEnabled() ? new AcceleratedImageCapabilities() : new ImageCapabilities(false); } return super.getCapabilities(gc); }