View Javadoc
1 package edu.psu.geovista.app.matrix; 2 3 /*** 4 * <p>Title: BiPlotMatrixBeanInfo</p> 5 * <p>Description: Bean Info for BiPlotMatrix</p> 6 * <p>Copyright: Copyright (c) 2001</p> 7 * <p>Company: GeoVISTA Center</p> 8 * @author Xiping Dai 9 * @version 1.0 10 */ 11 12 import java.beans.*; 13 14 public class BiPlotMatrixBeanInfo extends SimpleBeanInfo { 15 Class beanClass = BiPlotMatrix.class; 16 String iconColor16x16Filename = "mixedmatrix16.gif"; 17 String iconColor32x32Filename = "mixedmatrix32.gif"; 18 String iconMono16x16Filename; 19 String iconMono32x32Filename; 20 21 public BiPlotMatrixBeanInfo() { 22 } 23 24 public PropertyDescriptor[] getPropertyDescriptors() { 25 try { 26 PropertyDescriptor _background = new PropertyDescriptor("background", beanClass, "getBackground", "setBackground"); 27 PropertyDescriptor _selectionColor = new PropertyDescriptor("selectionColor", beanClass, "getSelectionColor", "setSelectionColor"); 28 PropertyDescriptor _selOriginalColorMode = new PropertyDescriptor("selOriginalColorMode", beanClass, "getSelOriginalColorMode", "setSelOriginalColorMode"); 29 PropertyDescriptor _bivarColorClasser = new PropertyDescriptor("bivarColorClasser", beanClass, "getBivarColorClasser", "setBivarColorClasser"); 30 PropertyDescriptor _elementClassName1 = new PropertyDescriptor("elementClassName1", beanClass, "getElementClassName1", "setElementClassName1"); 31 PropertyDescriptor _elementClassName2 = new PropertyDescriptor("elementClassName2", beanClass, "getElementClassName2", "setElementClassName2"); 32 PropertyDescriptor _maxNumArrays = new PropertyDescriptor("maxNumArrays", beanClass, "getMaxNumArrays", "setMaxNumArrays"); 33 PropertyDescriptor _plottedBegin = new PropertyDescriptor("plottedBegin", beanClass, "getPlottedBegin", "setPlottedBegin"); 34 PropertyDescriptor[] pds = new PropertyDescriptor[] { 35 _background, 36 _selectionColor, 37 _selOriginalColorMode, 38 _bivarColorClasser, 39 _elementClassName1, 40 _elementClassName2, 41 _maxNumArrays, 42 _plottedBegin}; 43 return pds; 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 } 60 catch(IntrospectionException ex) { 61 ex.printStackTrace(); 62 return null; 63 } 64 } 65 public java.awt.Image getIcon(int iconKind) { 66 switch (iconKind) { 67 case BeanInfo.ICON_COLOR_16x16: 68 return iconColor16x16Filename != null ? loadImage(iconColor16x16Filename) : null; 69 case BeanInfo.ICON_COLOR_32x32: 70 return iconColor32x32Filename != null ? loadImage(iconColor32x32Filename) : null; 71 case BeanInfo.ICON_MONO_16x16: 72 return iconMono16x16Filename != null ? loadImage(iconMono16x16Filename) : null; 73 case BeanInfo.ICON_MONO_32x32: 74 return iconMono32x32Filename != null ? loadImage(iconMono32x32Filename) : null; 75 } 76 return null; 77 } 78 79 }

This page was automatically generated by Maven