Zooming

From NOA Documentation Wiki

Jump to: navigation, search

TextDocument's zoom mathod requires two parameters, type and value.

Type is a static short defined in DocumentZoomType (do not use ZoomLevel here), Value is a value "between 20 and 600".

This is a short example:

		try {
			<TEXTDOCUMENT>.zoom(DocumentZoomType.BY_VALUE, (short)200);
		} catch (DocumentException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
Personal tools