public class CropPage extends ViewerFeature implements AreaSelectionAction, DocumentPanelListener
Constructor and Description |
---|
CropPage() |
Modifier and Type | Method and Description |
---|---|
void |
documentUpdated(DocumentPanelEvent event)
Called when an
DocumentPanelEvent is raised |
String |
getDescription()
Get the name of this Action, to appear in the popup menu.
|
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer
|
boolean |
isEnabled()
Indicates whether this action is enabled.
|
void |
selectArea(PagePanel panel,
Rectangle2D r)
Invoked when the area is selected.
|
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString
public boolean isEnabled()
AreaSelectionAction
isEnabled
in interface AreaSelectionAction
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerFeature
public void documentUpdated(DocumentPanelEvent event)
DocumentPanelListener
DocumentPanelEvent
is raiseddocumentUpdated
in interface DocumentPanelListener
public String getDescription()
AreaSelectionAction
getDescription
in interface AreaSelectionAction
public void selectArea(PagePanel panel, Rectangle2D r)
AreaSelectionAction
selectArea
in interface AreaSelectionAction
panel
- the PagePanel the area was selected onr
- the selected areaCopyright © 2001-2017 Big Faceless Organization