List of usage examples for com.badlogic.gdx.utils IntArray insert
public void insert(int index, int value)
From source file:com.kotcrab.vis.editor.proxy.EntityProxy.java
License:Apache License
public void addGroup(int groupId, int parentGroupId) { IntArray groupIds = getGroupComponent().groupIds; if (groupIds.contains(groupId) == false) { if (parentGroupId != -1) groupIds.insert(groupIds.indexOf(parentGroupId), groupId); else/*from w w w. j av a 2 s.c o m*/ groupIds.add(groupId); } }