16 package net.squiz.matrix.matrixtree;
18 import net.squiz.matrix.core.*;
22 public ExpandingNextNode(
int parentTotalAssets,
int currentAssetsCount,
int viewedAssetsCount) {
23 setParentTotalAssets(parentTotalAssets);
24 setCurrentAssetsCount(currentAssetsCount);
25 setViewedAssetsCount(viewedAssetsCount);
27 setUserObject(expandingAsset);
28 setCueModeName(Matrix.translate(
"asset_map_expanding_node_move_to_next_set"));
31 public int getStartLoc(
int evtX,
double boundsX) {
32 int res = evtX - (int)boundsX;
33 if (res >=0 && res <=12) {
35 return getViewedAssetsCount() + AssetManager.getLimit();
36 }
else if (res >=13 && res <=35) {
38 if (getParentTotalAssets() < 0) {
41 int loc = getParentTotalAssets() - (getParentTotalAssets()%AssetManager.getLimit());
42 if (loc == getParentTotalAssets())
43 loc -= AssetManager.getLimit();