MASON-INTEREST-L Archives

October 2006

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text 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:
Sun, 1 Oct 2006 23:07:22 -0400
MIME-version:
1.0 (Apple Message framework v752.2)
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=US-ASCII; delsp=yes; format=flowed
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
Comments:
To: MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (48 lines)
See tutorial 4 to see how to display the same field portrayal on two  
different displays.

To translate a portrayal's origin to a given (x,y) location, use a  
different Display2D.attach method:

     public void attach(FieldPortrayal2D portrayal, String name,  
double x, double y, boolean visible)

Sean

On Oct 1, 2006, at 9:50 PM, #ONG BOON SOM JIMMY# wrote:

> I'm currently using Continuous2D and ContinuousPortrayal2D for my  
> field and display respectively. But there doesn't seem to be any  
> methods or constructors that allow me to do that. Am I missing out  
> anything? Please advise.
>
> Regards,
> Jimmy.
>
> ________________________________
>
> From: MASON Multiagent Simulation Toolkit on behalf of Sean Luke
> Sent: Mon 10/2/2006 4:18 AM
> To: [log in to unmask]
> Subject: Re: Multiple displays on a field
>
>
>
> Yes.
>
> Sean
>
> On Oct 1, 2006, at 12:43 PM, Jimmy Ong wrote:
>
>> Hi,
>>
>> Is it possible to have a field, say 200 * 100, and have one display
>> showing
>> the the field with origin 0,0 and another display showing the field
>> with
>> origin 0,100? The size of both field in this case can be 100 * 100.
>>
>> Thanks in advance.
>>
>> -Jim.

ATOM RSS1 RSS2