Links for programming
examples in support of project work:
No project will require all (or even many) of these concepts.
However, each person should at least browse all of the links
soas to be familiar with the concepts and vocabulary.
Send email if you have questions about these links.
Further discussion is scheduled for
GUI links:
ElegantJBeans: A collection of JavaBeans,
Charting Bean provides 2D graphs based on array of data points;
http://elegantjbeans.com/chart/default.htm
Beans and sample code are available for evaluation use.
(local screen view)
"How to use Sliders", Java Tutorial, Sun Corp.
http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html
with link to the SliderDemo.java code
(Ugh ... this example also shows the swing.tiimer
and it has very bad architecture with no separation of application,
view, and controller!
The example is more clear when shown in UML representation.
Note the methods: "statechanged" which handles the movement
of the slider
and
"actionPerformed" which handles the timer event )
Local download the complete
demo code and images.
2D graphics -- geometric
(a) read the 2D graphics chapter in the blue book
(b) Sun Java Tutorial:
2D Graphics: http://java.sun.com/docs/books/tutorial/2d/index.html
>> Drawing Geometric Primitives:
http://java.sun.com/docs/books/tutorial/2d/geometry/primitives.html
Example1: screen
shots of the Circle Chooser consisting of the frame
and panel
with model
(simple, bad architecture; will be seen
better in UML view).
Example 2: screen shot
of finite state machine simulator, code
, and FSM.zip
Other libraries:
2D graphics -- images
(a) read the image chapter in the blue book
(b) Sun Java Tutorial:
2D Graphics: http://java.sun.com/docs/books/tutorial/2d/index.html
>> Working with Images http://java.sun.com/docs/books/tutorial/2d/images/index.html
>> links to loading
/ saving
an image,
Several image transformations are shown at
http://java.sun.com/docs/books/tutorial/2d/images/drawimage.html
Tony Loton, "JavaMail quick start: Send and receive email with
the JavaMail APIs ".
JavaWorld.com, 10/26/01, (five parts), pp. 15,
http://www.javaworld.com/jw-10-2001/jw-1026-javamail.html
"How to use Timers", Java Tutorials,
http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html
( ... but don't follow the examples,
rather look at the animation
example in the Slider tutorial listed above)
Domain links:
About the blood sugar regulation:
"Normal regulation of blood sugar", EndocrineWeb.com,
http://www.endocrineweb.com/insulin.html
Data flow model:
Labview is a well-known data-flow programming system
http://en.wikipedia.org/wiki/LabVIEW
One intent of the data-flow project is that each person will contribute
some component, which requires that an interface definition be posted.
Here
is the interface for (for string processing) from a previous
semester.
(An interface definition for image operations will be posted here
later.)
Possible image operations may be seen in the images tutorial noted
above.
IDE's such as Labview and JBuilder allow dynamic loading of components,
which is likely beyond the scope of the 501 project. However,
here are two presentations of dyanmic class loaders:
Goolge: "ClassLoader tutorial"
such as http://www.roseindia.net/javatutorials/hotdeploy.shtml
(iii ) JavaWorld
example;
the Loader
code is in the references list.