MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / GetCatLblWithCnt

Method GetCatLblWithCnt

Explore/CatClassification.cpp:2897–2908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2895}
2896
2897wxString CatClassifData::GetCatLblWithCnt(int canvas_tm, int cat)
2898{
2899 if (categories.empty()) return wxEmptyString;
2900 if (cat <0 || cat >= categories[canvas_tm].cat_vec.size()) {
2901 return wxEmptyString;
2902 }
2903 wxString s;
2904 s << categories[canvas_tm].cat_vec[cat].label;
2905 s << " (" << categories[canvas_tm].cat_vec[cat].count << ")";
2906 s << " " << categories[canvas_tm].cat_vec[cat].label_ext;
2907 return s;
2908}
2909
2910
2911wxString CatClassifData::GetCategoryLabel(int canvas_tm, int cat)

Callers 3

OnDrawMethod · 0.80
RenderToDCMethod · 0.80
OnSaveCategoriesMethod · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected