Class ZoomActions

  • public class ZoomActions
    extends Object
    Instance of this class creates zoom actions for diagram.
    • Constructor Detail

      • ZoomActions

        public ZoomActions​(ErdEditor parentEditor,
                           org.eclipse.swt.widgets.Composite parentComposite)
        parentEditor - - editor to create action for. Can't be null
        parentComposite - - composite to add mouse wheel listener. Can't be null.
    • Method Detail

      • setItems

        public void setItems​(org.eclipse.draw2d.ScalableFigure scalablePane,
                             org.eclipse.draw2d.FigureCanvas figureCanvas)
        Sets items needed for zoom action work.
        scalablePane - - scalable pane where figures located. Can't be null.
        figureCanvas - - figure canvas where figures located. Can't be null.
      • resetScalablePane

        public void resetScalablePane()
        Resets scalablePane and disables zoom action.
      • getZoomAction

        public org.eclipse.jface.action.Action getZoomAction()
        Creates and returns new zoom action.
        created zoom action. Can't return null.
      • zoomOut

        public void zoomOut()
        Zooms in.
      • zoomIn

        public void zoomIn()
        Zooms out.