View Javadoc
1 package edu.psu.geovista.app.spacefill; 2 3 import java.beans.*; 4 5 /*** 6 * <p>Title: </p> 7 * <p>Description: </p> 8 * <p>Copyright: Copyright (c) 2002</p> 9 * <p>Company: </p> 10 * @author unascribed 11 * @version 1.0 12 */ 13 14 public class SpaceFillMatrixElementBeanInfo extends SimpleBeanInfo { 15 static Class beanClass = SpaceFillMatrixElement.class; 16 static String iconColor16x16Filename = "resources/spacefillElement16.gif"; 17 static String iconColor32x32Filename = "resources/spacefillElement32.gif"; 18 static String iconMono16x16Filename; 19 static String iconMono32x32Filename; 20 21 public SpaceFillMatrixElementBeanInfo() { 22 } 23 public PropertyDescriptor[] getPropertyDescriptors() { 24 try { 25 PropertyDescriptor _axisOn = new PropertyDescriptor("axisOn", beanClass, null, "setAxisOn"); 26 PropertyDescriptor _conditionArray = new PropertyDescriptor("conditionArray", beanClass, null, "setConditionArray"); 27 PropertyDescriptor _dataObject = new PropertyDescriptor("dataObject", beanClass, null, "setDataObject"); 28 PropertyDescriptor _elementPosition = new PropertyDescriptor("elementPosition", beanClass, "getElementPosition", "setElementPosition"); 29 PropertyDescriptor _xAxisExtents = new PropertyDescriptor("xAxisExtents", beanClass, null, null); 30 PropertyDescriptor _yAxisExtents = new PropertyDescriptor("yAxisExtents", beanClass, null, null); 31 PropertyDescriptor[] pds = new PropertyDescriptor[] { 32 _axisOn, 33 _conditionArray, 34 _dataObject, 35 _elementPosition, 36 _xAxisExtents, 37 _yAxisExtents}; 38 return pds; 39 40 41 42 43 44 45 } 46 catch(IntrospectionException ex) { 47 ex.printStackTrace(); 48 return null; 49 } 50 } 51 public java.awt.Image getIcon(int iconKind) { 52 switch (iconKind) { 53 case BeanInfo.ICON_COLOR_16x16: 54 return iconColor16x16Filename != null ? loadImage(iconColor16x16Filename) : null; 55 case BeanInfo.ICON_COLOR_32x32: 56 return iconColor32x32Filename != null ? loadImage(iconColor32x32Filename) : null; 57 case BeanInfo.ICON_MONO_16x16: 58 return iconMono16x16Filename != null ? loadImage(iconMono16x16Filename) : null; 59 case BeanInfo.ICON_MONO_32x32: 60 return iconMono32x32Filename != null ? loadImage(iconMono32x32Filename) : null; 61 } 62 return null; 63 } 64 }

This page was automatically generated by Maven