SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class ZoomAction

java.lang.Object
  extended bycom.ibm.lpex.samples.ZoomAction
All Implemented Interfaces:
LpexAction

public class ZoomAction
extends Object
implements LpexAction

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:

See Also:
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

ZoomAction

public ZoomAction()
Method Detail

doAction

public void doAction(LpexView lpexView)
Zoom in / out.

Specified by:
doAction in interface LpexAction
Parameters:
lpexView - the document view in which the action is issued

available

public boolean available(LpexView lpexView)
Returns true, this action is always available.

Specified by:
available in interface LpexAction
Parameters:
lpexView - the document view for which the action availability is queried

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.