|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.lpex.samples.ZoomAction
Sample action zoom - zoom in / out a segment of the document. This action lets you set a zoom-in segment to the current selection in the document, and then zoom out / in this segment.
Here is the ZoomAction source code.
To run this sample:
set actionClass.zoom com.ibm.lpex.samples.ZoomAction
action zoomor associate it with a key (here,
Alt+.):
set keyAction.a-period zoom
TestUserProfile,
All the samples| Constructor Summary | |
|---|---|
ZoomAction()
|
|
| Method Summary | |
|---|---|
boolean |
available(LpexView lpexView)
Returns true, this action is always available. |
void |
doAction(LpexView lpexView)
Zoom in / out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZoomAction()
| Method Detail |
public void doAction(LpexView lpexView)
doAction in interface LpexActionlpexView - the document view in which the action is issuedpublic boolean available(LpexView lpexView)
available in interface LpexActionlpexView - the document view for which the action availability is
queried
|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||