Interface ViewComponent

All Superinterfaces:
com.google.gwt.user.client.ui.IsWidget, MenuContributor
All Known Subinterfaces:
JadicePageView, PageView, ThumbnailView

public interface ViewComponent extends com.google.gwt.user.client.ui.IsWidget, MenuContributor
  • Method Details

    • 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
    • getToolMangerConnection

      com.levigo.jadice.web.client.viewer.internal.ToolManagerConnection getToolMangerConnection()
      Returns:
      the toolManagerConnection
    • 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.

    • repaint

      void repaint(Rectangle rect)
    • 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)
    • resetScrollPosition

      void resetScrollPosition()
      Resets the scroll position to the top left corner.

      This method is intended to be used when the document is changed.