Class SetTransparencyMouseDownListener

  • All Implemented Interfaces:
    EventListener,, org.eclipse.swt.internal.SWTEventListener

    public abstract class SetTransparencyMouseDownListener
    Mouse listener for allowing to set transparency for the Label image.
    • Constructor Detail

      • SetTransparencyMouseDownListener

        public SetTransparencyMouseDownListener​(org.eclipse.swt.widgets.Display display,
                                                org.eclipse.swt.widgets.Label imageLabel,
                                                double scale)
        Creates a new SetTransparencyMouseDownListener instance.
        display - the display
        imageLabel - the Label that contains image
        image - the Image
        scale - the scale of the given image
    • Method Detail

      • mouseDown

        public void mouseDown​( e)
        Specified by:
        mouseDown in interface
        mouseDown in class
      • restoreCursor

        protected abstract void restoreCursor()
        Implement it to restore cursor
      • setTransparency

        protected abstract void setTransparency​(Point selectedPoint)
        Implement it to invoke custom action on setting transparency point.
        selectedPoint - the Point