VAqua.src.org.violetlib.aqua.EmptyIcon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaqua Show documentation
Show all versions of vaqua Show documentation
An improved native Swing look and feel for macOS
The newest version!
/*
* @(#)EmptyIcon.java
*
* Copyright 2010 Werner Randelshofer, Switzerland.
* All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with Werner Randelshofer.
* For details see accompanying license terms.
*/
package org.violetlib.aqua;
import java.awt.*;
import java.io.Serializable;
import javax.swing.*;
/**
* {@code EmptyIcon}.
*
* @author Werner Randelshofer
* @version $Id$
*/
public class EmptyIcon implements Icon, Serializable {
private int width;
private int height;
public EmptyIcon(int width, int height) {
this.width = width;
this.height = height;
}
public void paintIcon(Component c, Graphics g, int x, int y) {
// empty
}
public int getIconWidth() {
return width;
}
public int getIconHeight() {
return height;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy