MASON-INTEREST-L Archives

January 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

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

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 25 Jan 2017 18:22:59 +0100
MIME-version:
1.0 (Mac OS X Mail 7.3 \(1878.6\))
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
multipart/alternative; boundary="Apple-Mail=_3F4095BE-8514-4526-80F4-9A86E6A769A0"
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Message-ID:
Parts/Attachments:
text/plain (1627 bytes) multipart/related (1627 bytes) , text/html (2969 bytes) , Borderonly.png (887 bytes) , BorderwithGrid.png (990 bytes) , GridScale.png (771 bytes)
Stewart, could you send me [directly] a small example application demonstrating the issue?

Sean

On Jan 25, 2017, at 5:04 PM, Stewart Aitken <[log in to unmask]> wrote:

> Here are three small images that show what is happening.
> Hopefully, this will help my explanation.
> 
> Kind regards,
> 
> Stewart.
> 
> 
> On 25 January 2017 at 16:01, Stewart Aitken <[log in to unmask]> wrote:
> I am having difficulties with getting the grid lines and border to function as I would like.
> 
>                 portrayal.setField(((SimEnviro) state).getAgentSpace());
>                 portrayal.setGridLines(false);
>                 portrayal.setBorder(true);
> 
>                 agentSpace = new ObjectGrid2D(14,10);
> 
> I am using these settings on Windows 10 with MASON 19 with the updated setBorder gives the correct agent scale and a complete on all four sides red border.
> When I activate the setGridlines it only gives a single blue line about a quarter of the way from the right-hand side. The red border remains the same as above. Subsequently, changing agentspace to:
> 
>                 agentSpace = new ObjectGrid2D(140,100);
> 
> Gives the correct number of cells within the borders but the agents are substantially smaller than they are without the gridlines. In addition, the red border fails to show on the right-hand edge and the bottom edge.
> How can I arrange for the agents to have a single agent in each grid cell and ensure they fill the cell?
> Any help gratefully received.
> Stewart Aitken
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> 
> 
> EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm
> 



ATOM RSS1 RSS2