public class AppleSupport extends ViewerFeature
This feature can be added to the viewer on Mac OS X for a more "Mac-like" interface. Some of the menu items will be moved around to match OS X interface guidelines, and rotate and swipe gestures can be used to rotate and switch between pages. Adding this class on a non-OS X system has no effect.
dockIcon | true or false , for setDockIcon(boolean) , or the path to an image resource to use that instead of the default - the value is passed to setDockIconResource(java.lang.String) . |
---|---|
moveMenus | true or false , for setMoveMenus(boolean) |
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.
Constructor and Description |
---|
AppleSupport() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer
|
void |
setDockIcon(boolean dockicon)
Set whether to set the dock icon.
|
void |
setDockIconResource(String resourcename)
Set the path to the resource to use for the dock icon.
|
void |
setMoveMenus(boolean menus)
Set whether to move the menus from the application window to the System
menu bar.
|
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString
public void setMoveMenus(boolean menus)
menus
- whether to move the menus or notpublic void setDockIcon(boolean dockicon)
dockicon
- whether to customize the dock iconpublic void setDockIconResource(String resourcename)
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerFeature
Copyright © 2001-2017 Big Faceless Organization