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
Mime-Version:
1.0
Content-Type:
text/plain; charset="UTF-8"
Date:
Wed, 25 Jan 2017 11:01:45 -0500
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
Content-Transfer-Encoding:
8bit
Message-ID:
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
From:
Stewart Aitken <[log in to unmask]>
Parts/Attachments:
text/plain (19 lines)
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
 

ATOM RSS1 RSS2