001    /*
002     * NeonBorderEffectBeanInfo.java
003     *
004     * Created on October 30, 2006, 1:14 AM
005     *
006     * To change this template, choose Tools | Template Manager
007     * and open the template in the editor.
008     */
009    
010    package org.jdesktop.swingx.painter.effects;
011    
012    import org.jdesktop.swingx.editors.EnumPropertyEditor;
013    import org.jdesktop.swingx.editors.Paint2PropertyEditor;
014    import org.jdesktop.swingx.painter.AbstractPainterBeanInfo;
015    
016    /**
017     *
018     * @author joshy
019     */
020    public class NeonBorderEffectBeanInfo extends AbstractPainterBeanInfo {
021        
022        /** Creates a new instance of NeonBorderEffectBeanInfo */
023        public NeonBorderEffectBeanInfo() {
024            super(NeonBorderEffect.class);
025        }
026        
027        protected void initialize() {
028            super.initialize();
029            setPropertyEditor(Paint2PropertyEditor.class, "edgeColor", "centerColor", "brushColor");
030            //setPropertyEditor(InsetsPropertyEditor.class,"insets");
031            setPropertyEditor(BorderPositionPropertyEditor.class,"borderPosition");
032        }
033        
034        
035        public static final class BorderPositionPropertyEditor extends EnumPropertyEditor {
036            public BorderPositionPropertyEditor() {
037                super(NeonBorderEffect.BorderPosition.class);
038            }
039        }
040        
041    
042    }