Example usage for javax.swing Icon interface-usage

List of usage examples for javax.swing Icon interface-usage

Introduction

In this page you can find the example usage for javax.swing Icon interface-usage.

Usage

From source file DiamondIcon.java

class DiamondIcon implements Icon {
    public DiamondIcon() {
    }

    public int getIconHeight() {
        return 20;

From source file DiamondAbstractButtonStateIcon.java

class DiamondAbstractButtonStateIcon implements Icon {
    public DiamondAbstractButtonStateIcon() {
    }

    public int getIconHeight() {
        return 20;

From source file PlainColorIcon.java

public class PlainColorIcon implements Icon {

    private Color color;

    public PlainColorIcon(Color color) {
        this.color = color;

From source file CheckBoxIcon.java

class CheckBoxIcon implements Icon {
    public void paintIcon(Component component, Graphics g, int x, int y) {
        AbstractButton abstractButton = (AbstractButton) component;
        ButtonModel buttonModel = abstractButton.getModel();

        Color color = buttonModel.isSelected() ? Color.BLUE : Color.RED;

From source file EmptyIcon.java

/**
Transparent icon with no content.
    
@author <a href="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
@version $Revision: 1.1 $ $Date: 2003/08/18 07:46:43 $
*/

From source file CheckBoxIcon.java

class CheckBoxIcon implements Icon {
    public void paintIcon(Component component, Graphics g, int x, int y) {
        AbstractButton abstractButton = (AbstractButton) component;
        ButtonModel buttonModel = abstractButton.getModel();

        Color color = buttonModel.isSelected() ? Color.BLUE : Color.RED;

From source file IconLine.java

public class IconLine implements Icon {
    private int iWidth = 0;
    private int iHeight = 0;
    private int iSpace = 1;
    private Vector vImages = new Vector();

From source file ColorIcon.java

public class ColorIcon implements Icon {
    private int iWidth;
    private int iHeight;

    private Color color;
    private Color border;

From source file Main.java

class MyIcon implements Icon {
    public int getIconWidth() {
        return 32;
    }

    public int getIconHeight() {

From source file Main.java

class MyIcon implements Icon {
    public int getIconWidth() {
        return 32;
    }

    public int getIconHeight() {