rotateanticlockwise.java
来自「Java生成PDF Java生成PDF Java生成PDF」· Java 代码 · 共 30 行
JAVA
30 行
// $Id: RotateAntiClockwise.java,v 1.10 2007/11/07 05:16:49 mike Exp $package org.faceless.pdf2.viewer2.feature;import org.faceless.pdf2.viewer2.*;import org.faceless.pdf2.*;import javax.swing.*;import java.awt.event.*;/** * Create a button that will rotate the page 90 degrees anticlockwise. * The name of this feature is "RotateAntiClockwise". * <p><i>This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.</i></p> * @since 2.8.3 */public class RotateAntiClockwise extends ViewerWidget{ public RotateAntiClockwise() { super("RotateAntiClockwise"); setButton("Edit", "resources/icons/RotateAntiClockwise.png", "tt.RotateAntiClockwise"); setMenu("View\tRotateAntiClockwise"); } public void action(ViewerEvent event) { PDFPage page = event.getDocumentPanel().getPage(); page.setPageOrientation(page.getPageOrientation()-90); event.getDocumentPanel().redraw(page); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?