Example usage for com.badlogic.gdx.utils IntArray insert

List of usage examples for com.badlogic.gdx.utils IntArray insert

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils IntArray insert.

Prototype

public void insert(int index, int value) 

Source Link

Usage

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);
    }
}