01: /*
02: * CheckerboardPainterBeanInfo.java
03: *
04: * Created on March 21, 2006, 12:10 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.jdesktop.swingx.painter;
11:
12: import org.jdesktop.swingx.BeanInfoSupport;
13: import org.jdesktop.swingx.editors.PaintPropertyEditor;
14:
15: /**
16: *
17: * @author Richard
18: */
19: public class CheckerboardPainterBeanInfo extends BeanInfoSupport {
20:
21: /** Creates a new instance of CheckerboardPainterBeanInfo */
22: public CheckerboardPainterBeanInfo() {
23: super (CheckerboardPainter.class);
24: }
25:
26: protected void initialize() {
27: setPreferred(true, "darkPaint", "lightPaint", "squareLength");
28: setCategory("Appearance", "darkPaint", "lightPaint",
29: "squareLength");
30: setPropertyEditor(PaintPropertyEditor.class, "darkPaint",
31: "lightPaint");
32: }
33: }
|