Class PencilTool

    • Constructor Detail

      • PencilTool

        public PencilTool()
    • Method Detail

      • 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
      • 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 move,
                            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:
        move - The point at which they pressed. Relative to the designable container.
        modifiers - A bitmask of modifiers. Comes from InputEvent.getModifiersEx()
      • onDragStart

        public void onDragStart​(java.awt.Point startPoint,
                                java.awt.Point lastPoint,
                                java.awt.Rectangle r,
                                int modifiers)
        Description copied from class: AbstractDesignTool
        Called when the user start's dragging while this tool is active. All coordinates are relative to the interaction panel and are in zoomed space.
        Specified by:
        onDragStart in interface IDesignTool
        Overrides:
        onDragStart in class AbstractDesignTool
      • onDrag

        public void onDrag​(java.awt.Point startPoint,
                           java.awt.Point lastPoint,
                           java.awt.Rectangle r,
                           int modifiers)
        Description copied from class: AbstractDesignTool
        Called while the user is dragging. All coordinates are relative to the interaction panel and are in zoomed space.
        Specified by:
        onDrag in interface IDesignTool
        Overrides:
        onDrag in class AbstractDesignTool
      • onDragEnd

        public void onDragEnd​(java.awt.Point startPoint,
                              java.awt.Point lastPoint,
                              java.awt.Rectangle r,
                              int modifiers)
        Description copied from class: AbstractDesignTool
        Called when the user stops dragging. All coordinates are relative to the interaction panel and are in zoomed space.
        Specified by:
        onDragEnd in interface IDesignTool
        Overrides:
        onDragEnd in class AbstractDesignTool