ÓÃRobotдJava´úÀí
ÓÃRobotдJava´úÀí
Rational RobotÊÇͨ¹ý¼ÖÆÓû§²Ù×÷½øÐй¦ÄÜ£¬ÐÔÄܺͼæÈÝÐÔ²âÊÔµÄ×Ô¶¯»¯²âÊÔ¹¤¾ß¡£Í¨¹ý»Ø·Å¼Öƽű¾½øÐй¦ÄܺͿɿ¿ÐÔ²âÊÔ¡£±¾ÎÄÖ÷Òª½éÉÜRational RobotÕë¶Ôjava³ÌÐòºÍappletsÈçºÎ½øÐй¦ÄܲâÊÔ¡£
Rational Robotµ±Ç°°æ±¾Ö§³ÖÓÃÒÔÏÂÀà¿â¿ª·¢µÄJava³ÌÐòºÍapplet³ÌÐò£º
lJava Foundation Classes(JFCs)
lSunµÄSwing ºÍ Abstract Windowing Toolkit(AWT)
lSymantecµÄVisual Café
lSitraka SoftwareµÄJClass¿â
»¹ÓÐһЩJavaÀ೬³öÁËRational RobotÖ§³ÖµÄ·¶Î§£¬µ«ÊÇÐèҪעÒâµÄÊÇÕâЩ³¬³öRobotÖ§³ÖµÄJavaÀàÖеÄһЩÀà¼Ì³Ð×ÔRational RobotÖ§³ÖµÄÀà¡£²âÊÔÈËÔ±¿ÉÒÔͨ¹ý±àдJava´úÀíÀ´À©Õ¹Rational Robotʶ±ð¶ÔÏóµÄÄÜÁ¦¡£Ê¹ÓÃJavaÀ©Õ¹API£¬ÐèҪעÒâµÄÊÇ£¬ÕâЩ´úÀíÖ»Äܹ»²âÊÔÔÚSUNµÄJVMÉÏÔËÐеÄÀ࣬²¢¿ÉÒÔÔËÐÐÔÚNetscapeºÍIEÉϵijÌÐòºÍApplet¡£
±¾ÎĽ«ÌÖÂÛ£¬Rational RobotÔõÑùʹÓÃJava´úÀí²¢ÇÒµ±ÐèÒªµÚÈý·½Java´úÀíµÄʱºòÔõô×ö¡£Ê¾·¶ÈçºÎ¿ª·¢Java´úÀí£¬ÔõÑùÓÃJavaÀ©Õ¹ApiÖ§³ÖRationalÈí¼þ¡£
Rational RobotÔõÑùÓÃJava´úÀí
Ö´Ðй¦ÄÜ£¬ÐÔÄÜ»òÕß¿É¿¿ÐÔ²âÊÔµÄʱºò£¬Rational Robotͨ¹ýAUT¼à¿ØÓû§½»»¥½ø¶øÉú³ÉRationalµÄSQABasic½Å±¾£¬²»±Ø¹Ü¿ª·¢³ÌÐòµÄÓïÑÔÊÇʲô£¬µ±Â¼ÖƵĽű¾»Ø·Å£¬Ëûͨ¹ýAUTÔÙÏÖÓû§µÄ²Ù×÷ÐÐΪ¡£²âÊÔJava³ÌÐòºÍAppletsµÄʱºò£¬SQABasicÓÐÒ»Ì׶¨ÒåºÃµÄͼÐνçÃ棨GUI£©¶ÔÏó.
±í¸ñÒ»£ºÕ¹Ê¾ÁËÒ»×éSQABasic ²âÊÔJava³ÌÐòºÍApplectµÄGUI¶ÔÏó
JavaMenu
JavaMenuItem
CheckBox
RadioButton
ComboBox
ComboListBox
Label
ListBox
ScrollBar
EditBox
TrackBar
TabControl
ProgressBar
JavaPanel
JavaWindow
JavaTree
JavaSplitPanel
JavaSplitter
JavaMenuBar
JavaObject
JavaCheckBoxMenuItem
PushButton
Toolbar
JavaListView
JavaMenuSeparator
JavaTable
JavaCanvas
JavaPopupMenu
JavaTableHeader
ÕâЩSQABasic GUI¶ÔÏó±íÏÖΪËûÃǵÄÊôÐԺ͹¦ÄܱíÏÖ¡£ÕâЩ¹¦Äܶ¨ÒåÔÊÐíRobotÄ£ÄâÓû§²Ù×÷ºÍ¶ÔÏó½øÐн»»¥¡£RobotÖªµÀÔõÑù´¦ÀíSQABasic GUI¶ÔÏó¡£²âÊÔJavaºÍapplets£¬Java¶ÔÏó±ØÐëÓ³ÉäΪSQABasic GUI¶ÔÏó¡£±ÈÈçJFC ÖеÄJbutton×é¼þÐèÒªÓ³ÉäΪSQABasic ¶ÔÏóµÄPushButton¡£
ͨ¹ý·´Éä»òÕß˵·´Ó³£¬Rational Robot¿ÉÒÔ¶¯Ì¬µØ¾ö¶¨¼ÓÔص½JVMÖÐJava GUI×齨µÄÀà¡¢¹¦ÄܺÍÊôÐÔ¡£ËüʹÓðüº¬ÔÚJavaClassMap.datÖеÄÐÅϢȷ¶¨Ê²Ã´ÑùµÄSQABasic¶ÔÏó¿ÉÒÔÓ³Éäµ½Ïà¹ØÀ࣬
Ïà¹ØÎĵµ£º
Êý¾Ý½á¹¹ºÍËã·¨
ðÅÝ£ºÃ¿´Î±È½Ï¶¼¿ÉÕÒ³ö×î´ó»ò×îСµÄ£¬ÓÐÐòµÄÔÚ×îÓÒ±ß
Ñ¡ÔñÅÅÐò£ºÓÐÐòµÄÔÚ×î×ó±ß
²åÈëÅÅÐò£ºËٶȱÈðÅÝ¿ìÒ»±¶£¬±ÈÑ¡ÔñÒ²¿ì¡£
µÝ¹é
µ÷ÓÃ×ÔÉí
ººÅµËþÎÊÌ⣺
/**
* @ººÅµËþµÄÎÊÌâ
*/
......
¡¾Òý×Ô¼üÅÌÉϵÄÎèÕߵIJ©¿Í¡¿Í¼Ïñ±àÂëÊä³öµÄ·½·¨£¬Ìṩ±àÂë½ø¶È¼àÌý£¬ÉèÖñàÂëÖÊÁ¿µÄÖ§³Ö£¨Ìض¨¸ñʽ£¬ÀýÈçJPG£©¡£
Õâ¸ö·½·¨Ö§³ÖµÄ±àÂë¸ñʽÒÀÀµÔËÐл·¾³ÀïImageIOÒѾע²áImageWriter¼¯ºÏ¡£
Java SE 6ÖеÄImageIOĬÈÏÖ§³ÖJPG£¬BMP£¬PNG£¬GIFµÈ¸ñʽ£¬Ò²¿ÉÒÔͨ¹ý·Ç±ê×¼Àà¿âÌí¼ÓImageIO¶ÔͼÏñ¸ñʽµÄÖ§³Ö£¬±ÈÈç°²×°JAI_ImageIO¡ ......
<%@ page import="java.lang.*" %>
ÉáµôСÊýÈ¡Õû:Math.floor(2.0)=2
ÉáµôСÊýÈ¡Õû:Math.floor(2.1)=2
ÉáµôСÊýÈ¡Õû:Math.floor(2.5)=2
ÉáµôСÊýÈ¡Õû:Math.floor(2.9)=2
ÉáµôСÊýÈ¡Õû:Math.floor(-2.0)=-2
ÉáµôСÊýÈ¡Õû:Math.floor(-2.1)=-3
ÉáµôСÊýÈ¡Õû:Math.floor(-2.5)=-3
ÉáµôСÊýÈ¡Õû:Math.floor(-2.9)= ......