<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>scompt.com &#187; java</title>
	<atom:link href="http://scompt.com/blog/archives/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://scompt.com</link>
	<description>The website of Edward Dale</description>
	<lastBuildDate>Sat, 23 Jan 2010 15:32:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Lots of cgkit code</title>
		<link>http://scompt.com/blog/archives/2006/05/08/lots-of-cgkit-code</link>
		<comments>http://scompt.com/blog/archives/2006/05/08/lots-of-cgkit-code#comments</comments>
		<pubDate>Mon, 08 May 2006 23:59:39 +0000</pubDate>
		<dc:creator>scompt</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[school]]></category>

		<guid isPermaLink="false">http://scompt.com/?p=83</guid>
		<description><![CDATA[Almost all of the assignments I did for classes last quarter were done using the cgkit graphics library.  I&#8217;ve posted all of the code that was written for these assignments.  Maybe somebody will benefit from it.  Here&#8217;s everything that&#8217;s there:

A snowfall simulation for my Animation Algorithms class
A keyframing system
A billiards simulator
A particle [...]]]></description>
			<content:encoded><![CDATA[<p>Almost all of the assignments I did for classes <a href="/academia/rit/classes/animation-algorithms">last</a> <a href="/academia/rit/classes/computer-graphics-2">quarter</a> were done using the <a href="http://cgkit.sf.net">cgkit</a> graphics library.  I&#8217;ve posted all of the code that was written for these assignments.  Maybe somebody will benefit from it.  Here&#8217;s everything that&#8217;s there:</p>
<ul>
<li>A <a href="/files/animation/snowfall.tar.gz">snowfall</a> simulation for my <a href="/academia/rit/classes/animation-algorithms">Animation Algorithms</a> class</li>
<li>A <a href="/academia/rit/classes/animation-algorithms/keyframing">keyframing system</a></li>
<li>A <a href="/academia/rit/classes/animation-algorithms/billiards">billiards simulator</a></li>
<li>A <a href="/academia/rit/classes/animation-algorithms/particle-system">particle system</a></li>
<li>An <a href="/academia/rit/classes/animation-algorithms/articulated-figure-motion">articulated figure motion</a> system using <a href="http://www.bvhfiles.com">BVH</a> files</li>
<li>A <a href="/files/cg2/snowballs.tar.gz">snowball</a> simulation that uses some of the <a href="http://www.ode.org/">ODE</a> stuff from <a href="http://cgkit.sf.net">cgkit</a></li>
<li>A <a href="/academia/rit/classes/computer-graphics-2">ray tracer</a> built using the cgtypes from cgkit.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://scompt.com/blog/archives/2006/05/08/lots-of-cgkit-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renderpack</title>
		<link>http://scompt.com/blog/archives/2004/12/04/renderpack</link>
		<comments>http://scompt.com/blog/archives/2004/12/04/renderpack#comments</comments>
		<pubDate>Sun, 05 Dec 2004 03:14:45 +0000</pubDate>
		<dc:creator>scompt</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://scompt.com/wordpress/renderpack</guid>
		<description><![CDATA[After my commit of pipelines to the Renderpack project last week, Jesse Wilson, the project owner offered to pass the job along to me.  I accepted, so I&#8217;m the project owner now.
Woohoo!
]]></description>
			<content:encoded><![CDATA[<p>After my commit of <a href="http://scompt.com/article/33/renderpack-pipelines">pipelines</a> to the <a href="https://renderpack.dev.java.net">Renderpack</a> project last week, <a href="http://publicobject.com">Jesse Wilson</a>, the project owner offered to pass the job along to me.  I accepted, so I&#8217;m the project owner now.</p>
<p>Woohoo!</p>
]]></content:encoded>
			<wfw:commentRss>http://scompt.com/blog/archives/2004/12/04/renderpack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renderpack Pipelines</title>
		<link>http://scompt.com/blog/archives/2004/11/28/renderpack-pipelines</link>
		<comments>http://scompt.com/blog/archives/2004/11/28/renderpack-pipelines#comments</comments>
		<pubDate>Sun, 28 Nov 2004 23:22:18 +0000</pubDate>
		<dc:creator>scompt</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://scompt.com/wordpress/renderpack-pipelines</guid>
		<description><![CDATA[I just committed some files to the Renderpack project that let a developer define a pipeline renderer for use with Swing JTables or JLists (or anything that can use TableCellRenderers or ListCellRenderers).  This pipeline consists of a number of RenderStages, each of which tweak the output of the rendered value.  There are some [...]]]></description>
			<content:encoded><![CDATA[<p>I just committed some files to the <a href="https://renderpack.dev.java.net">Renderpack</a> project that let a developer define a pipeline renderer for use with Swing <code>JTable</code>s or <code>JList</code>s (or anything that can use <code>TableCellRenderer</code>s or <code>ListCellRenderer</code>s).  This pipeline consists of a number of <code>RenderStage</code>s, each of which tweak the output of the rendered value.  There are some sample <code>RenderStage</code>s included in the package that show off the the possibilties (cell striping, rendering dates, etc.), but I believe the real power will come from creating a custom <code>RenderStage</code> that, for example, uses some business logic to change the text color of all unpaid invoice, for example.  <code>RenderStage</code>s are plugged into a <code>PipelineListCellRenderer</code> or <code>PipelineTableCellRenderer</code> and can be reused anywhere in an application&#8217;s <code>JTable</code>s or <code>JList</code>s.</p>
<p>Here&#8217;s a snippet from the demo application that shows how to render a date and stripe it with Christmas colors:</p>
<pre><code>
RenderStage[] listRenderers = new RenderStage[]{
     new DateRenderStage("yyyy"),
     new StripedRenderStage(Color.RED, Color.GREEN)
};
jList.setCellRenderer(new PipelineListCellRenderer( listRenderers ) );
</code></pre>
<p>The main benefit comes from the fact that you can reuse the <code>DateRenderStage</code> elsewhere completely seperate from the <code>StripedRenderStage</code> on either a <code>JTable</code> or <code>JList</code>.  Using stock Swing, you would have to create a subclass of <code>TableCellRenderer</code> that did the date rendering for <code>JTable</code>s and a subclass of <code>ListCellRenderer</code> for use on <code>JList</code>s and then add in striping logic if you wanted that too.</p>
<p>The initial idea for this came from <a href="http://www.clientjava.com/blog/2004/10/18/1098114835000.html">this post</a> at <a href="http://www.clientjava.com">ClientJava.com</a> which links to the HighlighterPipeline API from <a href="https://jdnc.dev.java.net">JDesktop Network Components</a>.  That API was too heavyweight for my uses because one must use a JDNC component (JXList, JXTable, etc.) to use a HighlighterPipeline whereas with renderpack pipelines, you&#8217;re dealing with normal Swing renderers that can be put on normalnormal Swing components.  The intention of JDNC Highlighters seems to be a bit different though in that they are meant to decorate existing renderers whereas renderpack pipelines <b>are</b> the renderer.</p>
<p>A <a href="https://renderpack.dev.java.net/files/documents/1747/4863/renderpack.jar">jar</a> that you can drop into your classpath and the <a href="https://renderpack.dev.java.net/files/documents/1747/4864/renderpack-source.zip">full source</a> are currently available from the <a href="https://renderpack.dev.java.net">renderpack</a> webpage in addition to being available from <a href="https://renderpack.dev.java.net/source/browse/renderpack">CVS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://scompt.com/blog/archives/2004/11/28/renderpack-pipelines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
