MASON-INTEREST-L Archives

July 2015

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 22 Jul 2015 10:54:59 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (12 lines)
On Jul 22, 2015, at 10:43 AM, Ernesto Carrella <[log in to unmask]> wrote:

> Depending on how much work you need MASON GUI to do, you could also ditch display2D and draw using Jung directly. I always felt Jung 2.0 have some of the most elegant API for drawing simple graphs (aging a bit now that Java 8 replaced most of the apache commons used by Jung, but still great).
> Nice tutorial here:
> http://www.grotto-networking.com/JUNG/JUNG2-Tutorial.pdf

The old MASON-Jung stuff that Maciej had hacked together included a Display just for Jung, I thought, which was distinct from Display2D and Display3D (a DisplayJung, as it were).  You might try starting there.

Alternatively, you could modify Display2D so that its InnerDisplay2D is instead some subclass of a Jung component or panel instead of what it is, which is (I think?) a subclass of JPanel.  This would then let you hack in the ability to draw Jung stuff in the lowest layer and maybe other MASON stuff on top if you cared, but more importantly, it'd be an easy way to hack Jung stuff into Display2D directly.

Sean

ATOM RSS1 RSS2