Interface MouseTransformFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      MouseTransform createMouseTransform​(PEMouseEvent e)
      Return a MouseTransform whose type is adequate with the given mouse-event.
      void flush()
      called when the associated SelectionTool is being deactivated in the hosting EditorKit.
      void init()
      called when the associated SelectionTool is being activated in the hosting EditorKit.
      void paint​(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
      Allows the MouseTransformFactory to do specific graphic rendering when it's installed in a hosting SelectionTool.
    • Method Detail

      • createMouseTransform

        MouseTransform createMouseTransform​(PEMouseEvent e)
        Return a MouseTransform whose type is adequate with the given mouse-event. This can be null if no MouseTransform matches the given event.
      • paint

        void paint​(java.awt.Graphics2D g,
                   java.awt.geom.Rectangle2D allocation,
                   double scale)
        Allows the MouseTransformFactory to do specific graphic rendering when it's installed in a hosting SelectionTool.
        Since:
        jpicedt 1.4
      • init

        void init()
        called when the associated SelectionTool is being activated in the hosting EditorKit. Initialization work required before any mouse-event occurs should be done here. Other initialization work may be carried out in the MouseTransform's themselves.
      • flush

        void flush()
        called when the associated SelectionTool is being deactivated in the hosting EditorKit. This provides a way for the factory to do some final clean-up, e.g. local buffers, graphic context,...