Interface ViewComponent

    • Method Detail

      • getVisibleRect

        Rectangle getVisibleRect()
        Returns:
        the current Visible Part of the Component
      • cleanup

        void cleanup()
        Clean up this view by removing a document currently being displayed. This method can be called off-EDT.
      • getToolManager

        ToolManager getToolManager()
        Returns:
        the toolManager
      • getDocument

        Document getDocument()
        Returns:
        the document
      • repaint

        void repaint​(Page p)
        Repaint all of the given page.
        Parameters:
        p - the page to repaint
      • repaint

        void repaint​(Page p,
                     Rectangle2D boundsDU)
        Repaint all of the given page.
        Parameters:
        p - the page to repaint
        boundsDU - the bounds within the page to repaint.
      • repaint

        void repaint()
        Repaints this component.

        If this component is a lightweight component, this method causes a call to this component's paint method as soon as possible. Otherwise, this method causes a call to this component's update method as soon as possible.

      • repaintAnnosAndTools

        @Deprecated
        void repaintAnnosAndTools​(Page page)
        Deprecated.
        use repaint instead
        Triggers a repaint of the annotations and the tools, without triggering a repaint of the actual page content
        Parameters:
        page - the page for which the annotations and tool content should be repainted
      • repaintAnnosAndTools

        @Deprecated
        void repaintAnnosAndTools()
        Deprecated.
        use repaint instead
        Triggers a repaint of the annotations and the tools of the visible area, without triggering a repaint of the actual page content
      • repaintAnnosAndTools

        @Deprecated
        void repaintAnnosAndTools​(Rectangle rect)
        Deprecated.
        use repaint instead
        Triggers a repaint of the annotations and the tools, without triggering a repaint of the actual page content
        Parameters:
        rect - the rectangle which should be repainted
      • repaintAnnosAndTools

        @Deprecated
        void repaintAnnosAndTools​(Page page,
                                  Rectangle2D boundsDU)
        Deprecated.
        use repaint instead
        Triggers a repaint of the annotations and the tools, without triggering a repaint of the actual page content
        Parameters:
        page - the page for which the annotations and tool content should be repainted
        boundsDU - the bounds inside the given page which should be repainted in jadice document units
      • scrollRectToVisible

        void scrollRectToVisible​(Rectangle contentRect)