All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jdesktop.swingx.painter.AbstractAreaPainterBeanInfo Maven / Gradle / Ivy

Go to download

Contains extensions to the Swing GUI toolkit, including new and enhanced components that provide functionality commonly required by rich client applications.

There is a newer version: 1.6.1
Show newest version
package org.jdesktop.swingx.painter;

import org.jdesktop.swingx.BeanInfoSupport;
import org.jdesktop.swingx.editors.EnumPropertyEditor;
import org.jdesktop.swingx.editors.Paint2PropertyEditor;

/**
 * BeanInfo of AbstractAreaPainter.
 *
 * @author Jan Stola
 */
public class AbstractAreaPainterBeanInfo extends BeanInfoSupport {    

    public AbstractAreaPainterBeanInfo() {
        super(AbstractAreaPainter.class);
    }
    
    public AbstractAreaPainterBeanInfo(Class clazz) {
        super(clazz);
    }

    protected void initialize() {
        setPropertyEditor(StylePropertyEditor.class, "style");
        setPropertyEditor(Paint2PropertyEditor.class, "fillPaint", "borderPaint");
    }

    public static final class StylePropertyEditor extends EnumPropertyEditor {
        public StylePropertyEditor() {
            super(AbstractAreaPainter.Style.class);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy