All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.ide.spl.chart.box.FontSizeBox Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20240823
Show newest version
package com.scudata.ide.spl.chart.box;

import java.util.*;

import com.scudata.app.common.Section;
import com.scudata.ide.common.*;
import com.scudata.ide.common.swing.*;

/**
 * ?ֺ??????б?
 * 
 * @author Joancy
 *
 */
public class FontSizeBox extends JComboBoxEx {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1624791389366744866L;

	/**
	 * ȱʡ???캯??
	 */
	public FontSizeBox() {
		Vector code = new Vector();
		for ( int i = 0; i < GC.FONTSIZECODE.length; i++ ) {
			code.add( new Integer( GC.FONTSIZECODE[i].intValue() ) );
		}
		Section ss = new Section( GC.FONTSIZEDISP );
		Vector disp = ss.toVector();
		x_setData( code, disp );
	}

	/**
	 * ??????ʾֵ??ȡ????ֵ
	 * @param dispItem ??ʾֵ
	 * @return ????ֵ
	 */
	public Object x_getCodeItem( Object dispItem ) {
		Object o = super.x_getCodeItem( dispItem );
		if ( o instanceof String ) {
			try {
				o = new Integer( o.toString() );
			}
			catch ( Exception e ) {
				o = new Integer( 12 );
			}
		}
		return o;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy