Help! I got
the IndivdualValueThemeLegend working. However, the order of my legend is
not what I want.. I tried to change
"ht.put("labelorder",
IndividualValueThemeLegend.ORDER_ASCENDING);" to "ht.put("labelorder",
IndividualValueThemeLegend.ORDER_DESCENDING);"
But, the order of my
legend remain the same.
--
private
IndividualValueThemeLegend getThemeLegend( MapJ myMap,
String layerName, int legendNumber)
{ IndividualValueThemeLegend iValThmLeg
= null; try {
Layer
lyr =
myMap.getLayers().elementAt(LAYER_NUMBER);
ThemeList iValThmList = lyr.getThemeList();
if (iValThmList !=
null)
{ IndividualValueTheme
iValThm =
(IndividualValueTheme)iValThmList.elementAt(0);
Hashtable ht = new
Hashtable();
ht.put("geomtype",
IndividualValueThemeLegend.REGION_GEOMETRY);
ht.put("labelorder",
IndividualValueThemeLegend.ORDER_ASCENDING);
iValThmLeg = new IndividualValueThemeLegend(iValThm,
ht);
iValThmLeg.setTitle("Facilities");
}
} catch (Exception e)
{ e.printStackTrace();
} return iValThmLeg;}
--
Rosemary Mau