Javelin Stamp & GUI
I'm working on a project that requires measuring the dimensions of a room (length and width)·with the PING Ultrasonic Sensor and I have to·represent the dimensions graphically. Can I use Javelin Stamp for this; I know·Javelin Stamp is programmed using Java and Java·has Graphic User Interface (GUI), but I don't know if GUI is supported by Javelin Stamp. If it is, how do I do this.
Thank you.
Thank you.
Comments
For example
········ +
+
·········|·····················|
·········|···················· |
·········|···················· |
·········+
+
could represent a rectangular room.
The javelin IDE message window has cursor set commands
so you can do some graphics. For 3D graphs, you would draw
the room in 3D perspective as you would on paper.
I wrote a class that allows you to set an area of the screen
as a window with its own coordinates. That could be used
as the area used for your drawing.
If the above resolution is not enough, take a look at·the Propeller
chip that has a VGA output. The Propeller is programmed in Spin, not java.
regards peter
Thanks
http://tech.groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/display/
for classes Area, Display, JIDE_Display, JIDE_Display_test
The·Area object defines a rectangular area inside a Display object,
but is itself also a Display object.
To print 'semi-graphics' use the characters + - | / \
these allow you to draw horizontal, vertical, and tilted lines.
Additional the <· > ^ v could be used as arrow heads.
Google for ascii drawing
look here for some examples
http://www.geocities.com/soho/7373/favorite.htm
regards peter
·
http://www.repairfaq.org/ELE/F_ASCII_Schem.html
regards peter
·