16 package net.squiz.matrix.matrixtree;
18 import net.squiz.matrix.core.*;
23 setParentTotalAssets(parentTotalAssets);
24 setCurrentAssetsCount(currentAssetsCount);
25 setViewedAssetsCount(viewedAssetsCount);
27 int to = (getCurrentLoc()+AssetManager.getLimit());
28 if (to > parentTotalAssets) {
29 to = parentTotalAssets;
32 setUserObject(expandingAsset);
33 setCueModeName(Matrix.translate(
"asset_map_expanding_node_move_to_previous_set"));
36 public int getStartLoc(
int evtX,
double boundsX) {
37 int res = evtX - (int)boundsX;
38 if (res >=0 && res <=12) {
40 if (getViewedAssetsCount() <= AssetManager.getLimit()) {
43 return getViewedAssetsCount() - AssetManager.getLimit();
45 }
else if (res >=13 && res <= 35) {