org.jdesktop.swingx.painter.AbstractPainterBeanInfo Maven / Gradle / Ivy
The newest version!
package org.jdesktop.swingx.painter;
import org.jdesktop.beans.BeanInfoSupport;
import org.jdesktop.beans.editors.EnumPropertyEditor;
/**
* BeanInfo of AbstractPainter.
*
* @author Richard, Jan Stola
*/
public class AbstractPainterBeanInfo extends BeanInfoSupport {
/** Creates a new instance of BackgroundPainterBeanInfo */
public AbstractPainterBeanInfo() {
super(AbstractPainter.class);
}
/**
* ctor
* @param clazz Class
*/
public AbstractPainterBeanInfo(Class clazz) {
super(clazz);
}
@Override
protected void initialize() {
setHidden(true, "class", "propertyChangeListeners", "vetoableChangeListeners", "filters");
setPropertyEditor(InterpolationPropertyEditor.class, "interpolation");
//move some items into "Appearance" and some into "Behavior"
//setCategory("Rendering Hints", "antialiasing", "fractionalMetrics", "interpolation");
setExpert(true, "antialiasing","cacheable","interpolation");
}
/**
* TODO doc
*/
public static final class InterpolationPropertyEditor extends EnumPropertyEditor {
/** ctor */
public InterpolationPropertyEditor() {
super(AbstractPainter.Interpolation.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy