December 2016


Options: Use Proportional 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
Marshall <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Sun, 18 Dec 2016 19:14:44 -0600
text/plain (25 lines)
Further info: If I add a ContinuousPortrayal2D with a Continuous2D of the same dimensions, and call setBorder(true) on that instead of on an ObjectGridPortrayal2D with an ObjectGrid2D, the border is drawn correctly.  So maybe the problem is specific to ObjectGrid2D or to the Grid classes?

(I’m doing this in Clojure rather than Java, but that’s unlikely to be relevant to the problem.  My GUIState subclass is here, in case anyone’s interested:  The ObjectGrid2D’s are created in a file called popenv.clj in the same git repo.)


> On Dec 18, 2016, at 12:42 PM, Marshall <[log in to unmask]> wrote:
> Hi everyone,
> I’m displaying an ObjectGrid2D using an ObjectGridPortrayal2D.  I tried turning on the border with setBorder(true), and what I’m getting is a upper border line that extends infinitely to the right, and a left border line that extends infinitely down, but no right or bottom border lines.  I can see where the right and bottom borders should go because I can see where the agents are present/not present.  If I turn on grid lines, they show where the grid portrayal ends as well.  Looked through the manual and the classdocs for something I’m not doing, etc., but haven’t yet found anything.  I poked around a little bit in the MASON source for ObjectGridPortral2D, FieldPortrayal2D, and DrawInfo2D, but nothing jumped out at me as an explanation or as a possible bug, but I don’t understand the code very well.  
> Any ideas about why this would be happening?
> Thanks-
> Marshall
> Marshall Abrams, Associate Professor 
> Department of Philosophy, University of Alabama at Birmingham
> Email: [log in to unmask]; Cell: 205-222-3442
> Website: