|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvAccelerator
ilog.views.accelerator.IlvDuplicateSelectionAccelerator
public class IlvDuplicateSelectionAccelerator
IlvDuplicateSelectionAccelerator is used to duplicate the
currently selected objects in a manager.
Duplicates of the selected objects are positioned 10 points lower and to the right of the top left point of the selected objects.
The following code example shows how to use
IlvDuplicateSelectionAccelerator in a simple Java application:
// Install the select interactor on the view. // This is used to select graphic objects with the mouse that can then be // deleted using the custom delete interactor. IlvSelectInteractor inter = new IlvSelectInteractor(); inter.setOpaqueMove(true); mgrview.setInteractor(inter); // Install the duplicate accelerator. manager.addAccelerator(new IlvDuplicateSelectionAccelerator(KeyEvent.KEY_PRESSED, KeyEvent.VK_D, KeyEvent.CTRL_MASK ));
IlvDuplicateSelectionAccelerator is a custom accelerator, that is,
a subclass of IlvAccelerator. An accelerator is a class that
listens to a specific key event in the manager. All input events are handled by
means of interactors or accelerators. For information about how to treat
events in a manager, see
Handling Events. The following code
examples show how to handle user events:
| Constructor Summary | |
|---|---|
IlvDuplicateSelectionAccelerator(int type,
int key,
int modifiers)
Initializes a new IlvDuplicateSelectionAccelerator. |
|
| Method Summary | |
|---|---|
protected boolean |
handleEvent(IlvManagerView v)
Processes the event. |
| Methods inherited from class ilog.views.IlvAccelerator |
|---|
CtrlChar, getEventType, getKeyCode, getModifier |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDuplicateSelectionAccelerator(int type,
int key,
int modifiers)
| Method Detail |
|---|
protected boolean handleEvent(IlvManagerView v)
handleEvent in class IlvAcceleratorv - The manager view.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||