Class RotateClockwise
- java.lang.Object
-
- org.faceless.pdf2.viewer2.ViewerFeature
-
- org.faceless.pdf2.viewer2.ViewerWidget
-
- org.faceless.pdf2.viewer2.feature.RotateClockwise
-
- All Implemented Interfaces:
ThumbnailPanel.ThumbnailSelectionAction
- Direct Known Subclasses:
RotateAntiClockwise
public class RotateClockwise extends ViewerWidget implements ThumbnailPanel.ThumbnailSelectionAction
Create a button that will rotate the page 90 degrees clockwise. The name of this feature is RotateClockwiseThis 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.
- Since:
- 2.8.3
-
-
Field Summary
-
Fields inherited from class org.faceless.pdf2.viewer2.ViewerWidget
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description RotateClockwise()
RotateClockwise(String name, int diff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionListener
createActionListener()
Return an ActionListener that will be called when this Widget is activated.Action
getAction(ThumbnailPanel.View view)
Return an Action for the specified View, ornull
if this action is not appropriate for the View (for example, because it edits the Document and theThumbnailPanel.View.isEditable()
method returns falsevoid
initialize(PDFViewer viewer)
Called when the feature is first added to a viewerboolean
isButtonEnabledByDefault()
Return true if the button component for this widget is enabled by default.-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget
action, addPropertyChangeListener, firePropertyChange, getComponent, getIcon, getViewer, isDocumentRequired, isMenuEnabledByDefault, removePropertyChangeListener, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
-
-
-
-
Constructor Detail
-
RotateClockwise
public RotateClockwise()
-
RotateClockwise
public RotateClockwise(String name, int diff)
-
-
Method Detail
-
createActionListener
protected ActionListener createActionListener()
Description copied from class:ViewerWidget
Return an ActionListener that will be called when this Widget is activated. Subclasses will typically not need to override this method except in special cases.- Overrides:
createActionListener
in classViewerWidget
- Returns:
- ActionListener the ActionListener to be notified when an event fires
- See Also:
Quit.createActionListener()
-
initialize
public void initialize(PDFViewer viewer)
Description copied from class:ViewerFeature
Called when the feature is first added to a viewer- Overrides:
initialize
in classViewerWidget
-
isButtonEnabledByDefault
public boolean isButtonEnabledByDefault()
Description copied from class:ViewerWidget
Return true if the button component for this widget is enabled by default. The default is "true"- Overrides:
isButtonEnabledByDefault
in classViewerWidget
-
getAction
public Action getAction(ThumbnailPanel.View view)
Description copied from interface:ThumbnailPanel.ThumbnailSelectionAction
Return an Action for the specified View, ornull
if this action is not appropriate for the View (for example, because it edits the Document and theThumbnailPanel.View.isEditable()
method returns false- Specified by:
getAction
in interfaceThumbnailPanel.ThumbnailSelectionAction
-
-