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.
|