I've committed a fix.  Hopefully things will be right now.

Sean

On Dec 21, 2016, at 3:28 AM, Sean Luke <[log in to unmask]> wrote:

> I'm rushing out the door for Italy, but it sounds like you guys have it.  It should probably be:
> 
> d.setRect(info.draw.x, info.draw.y, info.draw.width, info.draw.height);
> 
> setRect isn't (x,y,x2,y2), it's (x,y,width,height).  So the current code is probably wrong.
> 
> Sean 
>  
> On Dec 20, 2016, at 9:20 PM, Marshall <[log in to unmask]> wrote:
> 
> > Steward,
> > 
> > Thanks—you’re right.  That makes a lot more sense.  (On my Mac the right and bottom borders are only barely visible on the edges of the window, and stay there when I shrink the field, so I didn’t notice them.  But they’re there, and adjusting the location that the fields are attached to makes the right and bottom borders apparent.)
> > 
> > Marshall
> > 
> >> On Dec 20, 2016, at 2:58 PM, Stewart Aitken <[log in to unmask]> wrote:
> >> 
> >> Hi again,
> >> 
> >> I have reviewed your Students grid and it does draw the whole border in red.
> >> I shrunk the image by about 3 or 4 clicks and the inner grid lines form a small area in the top hand left corner of the much larger border area as shown in the attached PDF.
> >> 
> >> So, what you have found by your experiments is a calculation error in the border size.
> >> 
> >> Kind regards,
> >> 
> >> Stewart
> >> 
> >> On 20 December 2016 at 16:23, Marshall <[log in to unmask]> wrote:
> >> 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
> >> 
> >> 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]> 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: http://members.logical.net/~marshall
> >>> 
> >>> 
> >>> 
> >>> -- 
> >>> 
> >>> 
> >>> 
> >>> EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm
> >> 
> >> 
> >> 
> >> 
> >> -- 
> >> 
> >> 
> >> 
> >> EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm
> > 
> > 
>