Interface Highlighter

    • Method Detail

      • getHighlighterFactory

        HighlighterFactory getHighlighterFactory()
        Fetches the HighlighterFactory implementation that is feeding the view hierarchy.
        Returns:
        the factory, null if none
      • changedUpdate

        void changedUpdate​(DrawingEvent.EventType eventType,
                           double scale)
        Give notification from the model that a change occured for an element's highlighting this highlighter is responsible for rendering.
      • paint

        void paint​(java.awt.Graphics2D g,
                   java.awt.geom.Rectangle2D allocation,
                   double scale)
        Render the Highlighter to the given graphic context.
        Parameters:
        allocation - current clipping
        scale - The current scale factor from model to screen for the Graphics2D context ; this may be used to scale down line thickess, etc... so that lines/rectangle/... appear with the same lenght on the screen whatever the scale factor that's set to the graphic context.
      • getBounds

        java.awt.geom.Rectangle2D getBounds()
        Returns:
        the bounds of this Highlighter
        This will determine the clipping rectangle passed as a parameter to repaint in the hosting view
      • hitTest

        HitInfo hitTest​(PEMouseEvent e)
        Returns:
        a HitInfo corresponding to the given mouse-event on this Highlighter.