Class EyedropperTool

    • Constructor Detail

      • EyedropperTool

        public EyedropperTool()
    • Method Detail

      • getStatusBarText

        public java.lang.String getStatusBarText​(java.util.List<javax.swing.JComponent> selection,
                                                 java.awt.Point point,
                                                 int inputMask)
        Description copied from interface: IDesignTool
        Calculates the currently applicable status bar text for this tool
        Specified by:
        getStatusBarText in interface IDesignTool
        Overrides:
        getStatusBarText in class AbstractDesignTool
      • onPress

        public void onPress​(java.awt.Point p,
                            int modifiers)
        Description copied from interface: IDesignTool
        Called when the user presses the mouse in the design space.
        Specified by:
        onPress in interface IDesignTool
        Overrides:
        onPress in class AbstractDesignTool
        Parameters:
        p - The point at which they pressed. Relative to the designable container.
        modifiers - A bitmask of modifiers. Comes from InputEvent.getModifiersEx()
      • getCursor

        public java.awt.Cursor getCursor​(java.awt.Point point,
                                         int inputEventMask)
        Description copied from interface: IDesignTool
        The cursor to use given the current event mask, which can be used to detect what keys are being held down
        Specified by:
        getCursor in interface IDesignTool
        Overrides:
        getCursor in class AbstractDesignTool