Class SetTransparencyMouseDownListener

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

    public abstract class SetTransparencyMouseDownListener
    extends org.eclipse.swt.events.MouseAdapter
    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,
                                                org.eclipse.swt.graphics.Image image,
                                                double scale)
        Creates a new SetTransparencyMouseDownListener instance.
        Parameters:
        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​(org.eclipse.swt.events.MouseEvent e)
        Specified by:
        mouseDown in interface org.eclipse.swt.events.MouseListener
        Overrides:
        mouseDown in class org.eclipse.swt.events.MouseAdapter
      • 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.
        Parameters:
        selectedPoint - the Point