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

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

package org.jdesktop.swingx.painter;

import org.jdesktop.beans.BeanInfoSupport;
import org.jdesktop.beans.editors.EnumPropertyEditor;

/**
 * BeanInfo of AbstractLayoutPainter.
 *
 * @author Jan Stola
 */
public class AbstractLayoutPainterBeanInfo extends BeanInfoSupport {

    public AbstractLayoutPainterBeanInfo() {
        super(AbstractLayoutPainter.class);
    }
    
    public AbstractLayoutPainterBeanInfo(Class clazz) {
        super(clazz);
    }

    @Override
    protected void initialize() {
        setPropertyEditor(HorizontalAlignmentPropertyEditor.class, "horizontalAlignment");
        setPropertyEditor(VerticalAlignmentPropertyEditor.class, "verticalAlignment");
    }

    public static final class HorizontalAlignmentPropertyEditor extends EnumPropertyEditor {
        public HorizontalAlignmentPropertyEditor() {
            super(AbstractLayoutPainter.HorizontalAlignment.class);
        }
    }

    public static final class VerticalAlignmentPropertyEditor extends EnumPropertyEditor {
        public VerticalAlignmentPropertyEditor() {
            super(AbstractLayoutPainter.VerticalAlignment.class);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy