[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SigBio] Re: SIGBio-l Digest, Vol 18, Issue 3



Cool, good job -- I'll take a look tomorrow evening and do some more UI stuff with it.  Hopefully I'll have more time to work on the project soonish.

Cyrus

On 3/5/07, sigbio-l-request@xxxxxxxxxxxx <sigbio-l-request@xxxxxxxxxxxx> wrote:
Send SIGBio-l mailing list submissions to
        sigbio-l@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
         https://www-s.acm.uiuc.edu/cgi-bin/mailman/listinfo/sigbio-l
or, via email, send a message with subject or body 'help' to
        sigbio-l-request@xxxxxxxxxxxx

You can reach the person managing the list at
        sigbio-l-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of SIGBio-l digest..."


Today's Topics:

   1. Re: SIGBio-l Digest, Vol 18, Issue 2 (Cyrus Omar)
   2. Map Visualizer class is constructed. (Takaoki Ueda)


----------------------------------------------------------------------

Message: 1
Date: Sun, 4 Mar 2007 14:00:36 -0600
From: "Cyrus Omar" <comar2@xxxxxxxx>
Subject: [SigBio] Re: SIGBio-l Digest, Vol 18, Issue 2
To: sigbio-l@xxxxxxxxxxxx
Message-ID:
        <abef605f0703041200k41007d44nf23b691e948e2686@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

We should actually be able to implement something akin to that in what we
have now, which would be neat.

Cyrus

On 3/4/07, sigbio-l-request@xxxxxxxxxxxx <sigbio-l-request@xxxxxxxxxxxx>
wrote:
>
> Send SIGBio-l mailing list submissions to
>         sigbio-l@xxxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://www-s.acm.uiuc.edu/cgi-bin/mailman/listinfo/sigbio-l
> or, via email, send a message with subject or body 'help' to
>         sigbio-l-request@xxxxxxxxxxxx
>
> You can reach the person managing the list at
>         sigbio-l-owner@xxxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SIGBio-l digest..."
>
>
> Today's Topics:
>
>    1. Fwd: this seemed cool (Casey Lewis)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 4 Mar 2007 11:42:48 -0600
> From: "Casey Lewis" <casey.lewis@xxxxxxxxx>
> Subject: [SigBio] Fwd: this seemed cool
> To: "Cyborg mayhem / SigBio" < sigbio-l@xxxxxxxxxxxx>
> Message-ID:
>         <e4da4b140703040942s11e4d29bl7adbeb1d719c739@xxxxxxxxxxxxxx >
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> ---------- Forwarded message ----------
> From: Joe Re <jre2@xxxxxxxx>
> Date: Mar 4, 2007 8:01 AM
> Subject: this seemed cool
> To: cblewis2@xxxxxxxx, "dgriffi3@xxxxxxxx" <dgriffi3@xxxxxxxx >
>
>
> sigbio should try something like this in the future- evolutionary corewar:
>
> http://www.greythumb.org/people/api/files/nanopond-1.9.c.html
> (it's very well documented at the begining of the source, and is only
> ~700 lines of C)
>
> --
> Joe Re, ACM@UIUC SigNet Chair
>
>
> --
> Casey Lewis, BioEngineering Student Team Internal Vice President
>
>
>
> ------------------------------
>
> _______________________________________________
> SIGBio-l mailing list
> SIGBio-l@xxxxxxxxxxxx
> https://www-s.acm.uiuc.edu/cgi-bin/mailman/listinfo/sigbio-l
>
>
> End of SIGBio-l Digest, Vol 18, Issue 2
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-s.acm.uiuc.edu/pipermail/sigbio-l/attachments/20070304/0e71b5cf/attachment.html

------------------------------

Message: 2
Date: Sun, 4 Mar 2007 14:19:53 -0600
From: "Takaoki Ueda" <tueda2@xxxxxxxx>
Subject: [SigBio] Map Visualizer class is constructed.
To: "Cyborg mayhem / SigBio" <sigbio-l@xxxxxxxxxxxx>
Message-ID:
        < 47406f820703041219r7d34d149gd29719d4256594c2@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Right now, I committed MapPanelVisualizer.java

This class contains minimum feature to draw all cells and update each steps.

The usage is:

Constructor:
MapPanelVisualizer()

this makes 300*200 size of panel

MapPanelVisualizer(width, height)

this makes width*height size of panel

setBackColor(Color)

this changes the background color of this panel

drawMap(List<Shape> newShapes, Hashtable<Shape,Color> colors)

this is the main feature of this class.
newShapes contains the list of all cells as the "Shape"

"Shape" contains x and y coordinate information and the size of the shape.
(Shape is in the Java standard API)

for example, Shape s1 = new Ellipse2D.Double(10.0, 20.0, 30.0, 30.0);
s1 is the one of the cell which has a shape of 30 pix circle with coordinate
(10,20)
(I don't know which cell has what shape and color)

colors contains the each "Color" of "Shape". This is the example code.

        MapPanelVisualizer mpv = new MapPanelVisualizer();
        List<Shape> ls = new LinkedList<Shape>();
        Hashtable<Shape,Color> colors = new Hashtable<Shape,Color>();
        Shape s1 = new Ellipse2D.Double(10.0, 20.0, 30.0, 30.0);
        ls.add(s1);
        colors.put(s1, Color.BLUE);
        mpv.drawMap(ls, colors);

this draws 30pix circle on (10,20).

If you want to update for the next steps. Just make Shape list and color
hashtable.

For example, the cell(BLUE, 10,20, size 30) which is drawn in previous step
moves to the (30,50) with changing color to Red.

        List<Shape> ls = new LinkedList<Shape>();
        Hashtable<Shape,Color> colors = new Hashtable<Shape,Color>();
        Shape s1 = new Ellipse2D.Double(30.0, 40.0, 30.0, 30.0);
        ls.add(s1);
        colors.put(s1, Color.RED);
        mpv.drawMap(ls, colors);

This erases previous cell, and draws the cell with new position and new
color.

Takaoki Ueda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-s.acm.uiuc.edu/pipermail/sigbio-l/attachments/20070304/1d7fa7dd/attachment.htm

------------------------------

_______________________________________________
SIGBio-l mailing list
SIGBio-l@xxxxxxxxxxxx
https://www-s.acm.uiuc.edu/cgi-bin/mailman/listinfo/sigbio-l


End of SIGBio-l Digest, Vol 18, Issue 3
***************************************