MASON-INTEREST-L Archives

June 2014

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced 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, 11 Jun 2014 21:17:14 -0400
MIME-version:
1.0 (Mac OS X Mail 7.2 \(1874\))
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=us-ascii
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-Transfer-Encoding:
8bit
Parts/Attachments:
text/plain (22 lines)
Go to town guys!  ColorMap is meant to be extended, and SimpleColorMap is just to provide the most common needs.

As to shape and size, yeah, that needs to be done carefully because shape and size affect not only how the object looks but also how it responds to hit-testing.  Still, MASON's default mechanism for specifying size and other features (like outline) is in desperate need of improvement.  Anyway, if you want to add a variable shape mechanism, such as stars or regular polygons with variable numbers of sides, I'd start by looking at ShapePortrayal2D and maybe subclassing it.

Sean

On Jun 11, 2014, at 6:51 PM, Mark Coletti <[log in to unmask]> wrote:
> 
> On Wed, Jun 11, 2014 at 5:31 PM, Joey Harrison <[log in to unmask]> wrote:
>> 
>> I'm seeing the need for a smarter colormap class and wondering if any of you have beaten me to it. Here are some of the capabilities I imagine in such a class:
>> 
>> Set bounds based on data (doubles):
>> - Set the bounds to the min and max
>> - Set the bounds to n standard deviations above/below the mean
>> - Set a non-linear scaling based on the shape of the distribution of the data
>> 
>> For integer data:
>> - Use a hashmap (or similar) to map any values to colors (currently the values have to be 0, 1, 2, ...)
> 
> For that matter, the time might be ripe for a "two factor" color/shape map a la R.  Or even "tri factor" color/shape/size.  Yes, can be done manually, but it'd be nice to have some sort of convenience class to make implementation easier. 

ATOM RSS1 RSS2