|
||||||||||
| 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.IlvZoomInAccelerator
public class IlvZoomInAccelerator
IlvZoomInAccelerator is used to allow the user to zoom into
the manager.
The following code example shows how to use
IlvZoomInAccelerator in a simple Java application:
// Install the scroll down accelerator
manager.addAccelerator(new IlvZoomInAccelerator(KeyEvent.KEY_PRESSED,
KeyEvent.VK_PLUS,
KeyEvent.CTRL_MASK));
IlvZoomInAccelerator 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 | |
|---|---|
IlvZoomInAccelerator(int type,
int key,
int modifiers)
Creates the accelerator. |
|
| Method Summary | |
|---|---|
double |
getZoomFactor()
Returns the zoom factor. |
protected boolean |
handleEvent(IlvManagerView v)
Processes the event. |
void |
setZoomFactor(double zoomFactor)
Changes the zoom factor. |
| 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 IlvZoomInAccelerator(int type,
int key,
int modifiers)
| Method Detail |
|---|
public double getZoomFactor()
public void setZoomFactor(double zoomFactor)
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 | |||||||||