MASON-INTEREST-L Archives

December 2016

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML 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:
Marshall <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 20 Dec 2016 10:23:29 -0600
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (2557 bytes) , text/html (4 kB)
Thanks for asking, Stewart.  It doesn’t make any difference whether I setBorder for snipe-field-portrayal, mushroom-field-portrayal, or both.  In all three cases I get left and top borders that seem to extend infinitely down and right.  Shrinking the scale leaves the appearance of the “borders" unchanged, although the insides of the field portryals eventually become too small to see.

There’s a pure Java illustration here (with one portrayal only): https://github.com/mars0i/masonborder/tree/master/students <https://github.com/mars0i/masonborder/tree/master/students>

I’m also exploring hexagonal portrayals, which don’t asupport setBorder, and having a border isn’t crucial in any case, but it’s kind of a nice addition if it’s available.

Marshall


> On Dec 20, 2016, at 3:46 AM, Stewart Aitken <[log in to unmask]> wrote:
> 
> Hi,
> 
> Can I ask, what happens if you only set the border for either the snipe or the mushroom instead of setting them both?
> 
> Regards,
> 
> Stewart.
> 
> On 18 December 2016 at 18:42, Marshall <[log in to unmask] <mailto:[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] <mailto:[log in to unmask]>; Cell: 205-222-3442 <tel:205-222-3442>
> Website: http://members.logical.net/~marshall <http://members.logical.net/~marshall>
> 
> 
> 
> -- 
> 
> 
> 
> EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm <http://www.york.ac.uk/docs/disclaimer/email.htm>



ATOM RSS1 RSS2