joy said:
No problem.
To get different colors you will want to create multiple rules; each with
their own description of how to draw. And bundle them up into a single
style. Time to look at how that createSelectedStyle function works.
i don't understand if i create multiple rule, then how can i applied it to
my selected IDs
my selectedIDs is contain more than 1 IDs like this one:
Set<FeatureIds> selectedIds = new HashSet<FetureIds>();
selectedIds().addAll( IDs );
selectedIds().addAll( IDs2 );
then if i applied it to my selectedIDs, IDs and IDs2 will have same rule
right?
Rule selectedRule = createRule(SELECTED_COLOUR, SELECTED_COLOUR);
selectedRule.setFilter(ff.id(selectedIDs));
how can i applied different rule for IDs and IDs2 (they both inside
selectedIDs) ??
Darmawan
mbedward wrote:
>
> Hi Darmawan,
>
>> i get the data using feature.getAttribute("KABKOTA");
>> is that the right one?
>
> That's how to get the value of a feature attribute, yes.
>
>> i don't know how to display the IDs with many color like i post in the
>> other
>> thread.
>> can u help me with that problem michael?
>
> I noticed that Jody already replied to your question - what was it
> that you didn't understand about his answer ?
>
> Michael
>
> PS. please send posts directly to the list rather than through Nabble
> - it's so much easier for you and us :)
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
View this message in context:
http://n2.nabble.com/Get-the-data-from-Info-tools-in-MapDisplayLab-tp3843728p3847637.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users