IltShelf s1 = new IltShelf(10,//Number of slots in the shelf 20,//Width of all the slots in the shelf 100,//Height of all the slots in the shelf 0);//Value of the first slot number IlpDataSource dataSource = new IltDefaultDataSource(); dataSource.addObject(s1);
IltShelf s1 = new IltShelf(4,//Number of slots along the x axis 25,//Width of a slot on the x axis 3,//Number of slots along the y axis 30,//Width of a slot on the y axis 0);//Value of the first slot number s1.setAttributeValue(IltShelf.PositionAttribute, new IlpPoint(50, 50)); IlpDataSource dataSource = new IltDefaultDataSource(); dataSource.addObject(s1);