Interface ZoomableResourceEditor
- All Known Implementing Classes:
BrowserPanel
,DesignerPanel
,PreviewPanel
public interface ZoomableResourceEditor
A ZoomableResourceEditor is a designer interface that allows that allows for the 'zooming' in and out on the content
in the main resource workspace panel such as seen in and Report resources.
Implementing this interface for your ResourceWorkspace
and adding the ZoomIndicator
to the DesignerContext
StatusBar
via addDisplay() allows a visible helper found at the southeast of
the Ignition Designer. ResourceWorkspace.onActivate() and onDeactivate() provide good opportunities to add the
and remove the ZoomIndicator from the designer.
- Since:
- 7.8.0
-
Method Details
-
setZoom
void setZoom(int zoom) Set the amount of zoom for the given resource, where 100 represents 100% sizing -
getZoom
int getZoom()- Returns:
- the current zoom level as a percent
-
isZoomingEnabled
boolean isZoomingEnabled()Whether or not this resource workspace supports or allows zooming. Returning false will disable the southern toolbar display in the Ignition Designer- Returns:
- whether or not the popup menu should be enabled for the given editor
-