| The Essential JViews Framework > Getting Started with JViews Framework > Step 4 - Manipulating Graphic Objects > Moving Graphic Objects |
Moving Graphic Objects |
INDEX
PREVIOUS
NEXT
|
In Sample4, we have added a new button in the appButtons() method which is used to move the IlvIcon objects in a random way:
The movement of the objects is implemented in the Sample4.moveObjects() method. This method gets an enumeration of objects contained in layer 1 (our new objects), and, for each of these objects, finds a random object in layer 0 and moves these objects of layer 1 to the center of those objects of layer 0 by calling IlvManager.moveObject.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |