<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: Swing Apollo space program mission timer</title>
	<atom:link href="http://www.jug-muenster.de/swing-apollo-space-program-mission-timer-280/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jug-muenster.de/swing-apollo-space-program-mission-timer-280/</link>
	<description>Java User Group für Münster und das Münsterland</description>
	<lastBuildDate>Wed, 02 Jun 2010 15:56:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Von: DannyB</title>
		<link>http://www.jug-muenster.de/swing-apollo-space-program-mission-timer-280/comment-page-1/#comment-39</link>
		<dc:creator>DannyB</dc:creator>
		<pubDate>Mon, 11 Jan 2010 19:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jug-muenster.de/?p=280#comment-39</guid>
		<description>I have created seven segment displays before in several languages.  Common Lisp, C, Visual FoxPro (yuk!), but not Java.

In all cases I separated drawing the segments from the conversion of digits to segments.  I also considered it a &quot;character&quot; to segments conversion, where the character could be a digit, or some alpha characters.

So I would have a function that could take &quot;0123456789ABbCcdEFGHhIiJLlOoPrSUuy-=_&quot; and return the proper segments.

I would have a digit panel (or whatever made sense in the language I was using) which could display the seven segments.  It would accept a character and use the previous function to decide what segments to turn on.

I would have a display object that contained one or more digits.  The digit objects all had an On and Off color for the segments.  The display object also had an On and Off color that would be assigned to all of its digits if the display&#039;s On or Off colors were changed.  The display object further had a Background color.  By adjusting the On/Off/Background color of a display, you could mimic LED, LCD, Fluorescent, or Neon displays.  Sometimes LCD displays have varying background colors.

The display object could be passed a string, like &quot;123.45&quot;.  The display object also had a left/right justify setting.  The display object would take the assigned string and assign the individual characters to the digits, which would in turn illuminate their appropriate segments.  Thus, you could pass a display a string like &quot;-123&quot;, or &quot;Error&quot;, or &quot;hi&quot; or &quot;lo&quot;, &quot;Of&quot;, etc.

In FoxPro (but not in Common Lisp or C), I took this further by creating a &quot;keyboard&quot; object.  You would put &quot;buttons&quot; on it.  Any time a button was pressed, an &quot;event&quot; fired passing the label of the key.  Keys would be &quot;0&quot; thru &quot;9&quot;, &quot;C&quot;, &quot;CE&quot;, &quot;+&quot;, &quot;-&quot;, &quot;x&quot;, &quot;/&quot;, etc.  I also create a &quot;chip&quot; object that would accept the fired keystrokes and could modify a display object such that the combination of objects formed a calculator.

Since the &quot;chip&quot; objects subclassed from an abstract chip, I could replace the &quot;chip&quot; object so that, for example, I could convert from an algebraic calculator to an RPN calculator.  The keyboard and chip could likewise be replaced to form a scientific calculator (but I never actually implemented a scientific calculator subclass).

The logical conclusion would be a &quot;calculator construction set&quot; application.  Maybe someday I&#039;ll do one in Java.

Another idea that I never implemented was to replace seven-segment digits in the display object with other digit objects that had more segments capable of displaying letters such as X, Y, V, M, N, /, \, ?, etc.  The interface to the Display object would not need to be changed.  When constructing the Display, you would simply have it use a different Digit subclass that has more segments.

Thanks for your cool display.  Your display looks so much better than mine by not having a solid background color.</description>
		<content:encoded><![CDATA[<p>I have created seven segment displays before in several languages.  Common Lisp, C, Visual FoxPro (yuk!), but not Java.</p>
<p>In all cases I separated drawing the segments from the conversion of digits to segments.  I also considered it a &#8220;character&#8221; to segments conversion, where the character could be a digit, or some alpha characters.</p>
<p>So I would have a function that could take &#8220;0123456789ABbCcdEFGHhIiJLlOoPrSUuy-=_&#8221; and return the proper segments.</p>
<p>I would have a digit panel (or whatever made sense in the language I was using) which could display the seven segments.  It would accept a character and use the previous function to decide what segments to turn on.</p>
<p>I would have a display object that contained one or more digits.  The digit objects all had an On and Off color for the segments.  The display object also had an On and Off color that would be assigned to all of its digits if the display&#8217;s On or Off colors were changed.  The display object further had a Background color.  By adjusting the On/Off/Background color of a display, you could mimic LED, LCD, Fluorescent, or Neon displays.  Sometimes LCD displays have varying background colors.</p>
<p>The display object could be passed a string, like &#8220;123.45&#8243;.  The display object also had a left/right justify setting.  The display object would take the assigned string and assign the individual characters to the digits, which would in turn illuminate their appropriate segments.  Thus, you could pass a display a string like &#8220;-123&#8243;, or &#8220;Error&#8221;, or &#8220;hi&#8221; or &#8220;lo&#8221;, &#8220;Of&#8221;, etc.</p>
<p>In FoxPro (but not in Common Lisp or C), I took this further by creating a &#8220;keyboard&#8221; object.  You would put &#8220;buttons&#8221; on it.  Any time a button was pressed, an &#8220;event&#8221; fired passing the label of the key.  Keys would be &#8220;0&#8243; thru &#8220;9&#8243;, &#8220;C&#8221;, &#8220;CE&#8221;, &#8220;+&#8221;, &#8220;-&#8221;, &#8220;x&#8221;, &#8220;/&#8221;, etc.  I also create a &#8220;chip&#8221; object that would accept the fired keystrokes and could modify a display object such that the combination of objects formed a calculator.</p>
<p>Since the &#8220;chip&#8221; objects subclassed from an abstract chip, I could replace the &#8220;chip&#8221; object so that, for example, I could convert from an algebraic calculator to an RPN calculator.  The keyboard and chip could likewise be replaced to form a scientific calculator (but I never actually implemented a scientific calculator subclass).</p>
<p>The logical conclusion would be a &#8220;calculator construction set&#8221; application.  Maybe someday I&#8217;ll do one in Java.</p>
<p>Another idea that I never implemented was to replace seven-segment digits in the display object with other digit objects that had more segments capable of displaying letters such as X, Y, V, M, N, /, \, ?, etc.  The interface to the Display object would not need to be changed.  When constructing the Display, you would simply have it use a different Digit subclass that has more segments.</p>
<p>Thanks for your cool display.  Your display looks so much better than mine by not having a solid background color.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: mchiareli</title>
		<link>http://www.jug-muenster.de/swing-apollo-space-program-mission-timer-280/comment-page-1/#comment-38</link>
		<dc:creator>mchiareli</dc:creator>
		<pubDate>Mon, 04 Jan 2010 01:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.jug-muenster.de/?p=280#comment-38</guid>
		<description>It&#039;s very very great work.

Thanks to share...</description>
		<content:encoded><![CDATA[<p>It&#8217;s very very great work.</p>
<p>Thanks to share&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
