Class ReportCanvas

java.lang.Object
java.awt.Component
java.awt.Canvas
quadbase.reportdesigner.PageViewer.CCanvas
quadbase.reportdesigner.PageViewer.ReportCanvas
All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, Runnable, EventListener, Accessible

public class ReportCanvas extends quadbase.reportdesigner.PageViewer.CCanvas implements Runnable, MouseListener, MouseMotionListener
ReportCanvas is the Canvas object that is contained within the PageViewer component. Use Viewer.getReportCanvas(...) to get an instance of a ReportCanvas.
See Also:
  • Field Details

    • sectionMenuVisible

      public boolean sectionMenuVisible
    • outputMenuVisible

      public boolean outputMenuVisible
    • backMenuItemVisible

      public boolean backMenuItemVisible
    • refreshMenuItemVisible

      public boolean refreshMenuItemVisible
    • goToMenuItemVisible

      public boolean goToMenuItemVisible
    • sortMenuVisible

      public boolean sortMenuVisible
    • multiDrillDownVisible

      public boolean multiDrillDownVisible
    • toolbarMenuVisible

      public boolean toolbarMenuVisible
    • zoomMenuItemVisible

      public boolean zoomMenuItemVisible
    • invisibleSectionMenuItem

      public Vector<String> invisibleSectionMenuItem
    • invisiblePageMenuItem

      public Vector<String> invisiblePageMenuItem
    • invisibleOutputMenuItem

      public Vector<String> invisibleOutputMenuItem
  • Constructor Details

    • ReportCanvas

      public ReportCanvas(quadbase.reportdesigner.PageViewer.ReportInfo iFile)
      internal use only
  • Method Details

    • getReportToolBar

      public ReportToolBar getReportToolBar()
      returns report toolbar object
    • setReportToolBarVisible

      public void setReportToolBarVisible(boolean b)
      returns the display status of report toolbar
    • isReportToolBarVisible

      public boolean isReportToolBarVisible()
      sets the display status of report toolbar
    • getToolbarContainer

      protected Container getToolbarContainer()
      internal use only
    • setParent

      public void setParent(Frame frame)
      sets the parent frame.
    • setMouseListener

      public void setMouseListener(MouseListener listener)
      Allow the user to implement their own mouse listeners and trap all mouse events
    • setMouseMotionListener

      public void setMouseMotionListener(MouseMotionListener listener)
      sets the mouse motion listener
    • finalize

      protected void finalize() throws Throwable
      Remove all the mouseListener before exit
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getReport

      public quadbase.reportdesigner.PageViewer.Report getReport()
      internal use only
    • getReportInfo

      public quadbase.reportdesigner.PageViewer.ReportInfo getReportInfo()
      internal use only
    • getReportComponent

      public Component getReportComponent()
      Returns the Component object for adding additional components to the Canvas
    • isPopupMenuEnabled

      public boolean isPopupMenuEnabled()
      whether the right-click pop up menu is enabled
    • setPopupMenuEnabled

      public void setPopupMenuEnabled(boolean b)
      sets whether the right-click pop up menu is enabled
    • getInvisibleMenuItemList

      public String[] getInvisibleMenuItemList()
      gets a list of menu items in the right-click pop up menu that are invisible
    • setInvisibleMenuItemList

      public void setInvisibleMenuItemList(String[] list)
      sets a list of menu items in the right-click pop up menu that are invisible
    • setShowDataHint

      public void setShowDataHint(boolean b)
      sets whether to show data hint
    • isShowDataHint

      public boolean isShowDataHint()
      whether to show data hint
    • getDataHintOffset

      public Dimension getDataHintOffset()
      gets the offset of the data hint
    • setDataHintOffset

      public void setDataHintOffset(Dimension dimension)
      sets the offset of the data hint
    • getDataHintBgColor

      public Color getDataHintBgColor()
      gets the data hint background color
    • setDataHintBgColor

      public void setDataHintBgColor(Color c)
      sets the data hint background color
    • getDataHintFontColor

      public Color getDataHintFontColor()
      gets the data hint font color
    • setDataHintFontColor

      public void setDataHintFontColor(Color c)
      sets the data hint font color
    • getDataHintFont

      public Font getDataHintFont()
      gets the data hint font
    • setDataHintFont

      public void setDataHintFont(Font f)
      sets the data hint font
    • getForwardLinkModifier

      public int getForwardLinkModifier()
      gets what java.awt.event.MouseEvent triggers a link (drill down link, etc.) to go forward.
    • setForwardLinkModifier

      public void setForwardLinkModifier(int m)
      sets what java.awt.event.MouseEvent triggers a link (drill down link, etc.) to go forward.
    • getForwardLinkClickCount

      public int getForwardLinkClickCount()
      gets how many times the user needs to trigger the forwardLinkModifier MouseEvent to go forward.
    • setForwardLinkClickCount

      public void setForwardLinkClickCount(int c)
      sets how many times the user needs to trigger the forwardLinkModifier MouseEvent to go forward.
    • getBackwardLinkModifier

      public int getBackwardLinkModifier()
      gets what java.awt.event.MouseEvent triggers the Canvas to go backward (if available: after a forward link was triggered and the user wants to go back to the previous page|link).
    • setBackwardLinkModifier

      public void setBackwardLinkModifier(int m)
      sets what java.awt.event.MouseEvent triggers the Canvas to go backward (if available: after a forward link was triggered and the user wants to go back to the previous page|link).
    • getBackwardLinkClickCount

      public int getBackwardLinkClickCount()
      gets how many times the user needs to trigger the backwardLinkModifier MouseEvent to go backward.
    • setBackwardLinkClickCount

      public void setBackwardLinkClickCount(int c)
      sets how many times the user needs to trigger the backwardLinkModifier MouseEvent to go backward.
    • isPrintKeyEnabled

      public boolean isPrintKeyEnabled()
      whether the print key is enabled
    • setPrintKeyEnabled

      public void setPrintKeyEnabled(boolean p)
      sets whether the print key is enabled
    • isRefreshEnabled

      public boolean isRefreshEnabled()
      whether the refresh is enabled
    • setRefreshEnabled

      public void setRefreshEnabled(boolean r)
      sets whether the refresh is enabled
    • setExportEnabled

      public void setExportEnabled(boolean b)
      whether export is enabled
    • isExportEnabled

      public boolean isExportEnabled()
      sets whether export is enabled
    • setSize

      public void setSize(Dimension d)
      Sets the size using the specified dimension
      Overrides:
      setSize in class Component
    • setSize

      public void setSize(double w, double h)
    • setSize

      public void setSize(int w, int h)
      Sets the size using the specified width and height
      Overrides:
      setSize in class Component
    • getPreferredSize

      public Dimension getPreferredSize()
      Returns the preferred size
      Overrides:
      getPreferredSize in class Component
    • getMinimumSize

      public Dimension getMinimumSize()
      Returns the minimum size
      Overrides:
      getMinimumSize in class Component
    • run

      public void run()
      internal use only. does nothing
      Specified by:
      run in interface Runnable
    • paint

      public void paint(Graphics g)
      For internal use only
      Overrides:
      paint in class Canvas
    • update

      public void update(Graphics g)
      For internal use only
      Overrides:
      update in class Canvas
    • getZoomFactor

      public int getZoomFactor()
      sets the zoom factor percentage
    • setZoomFactor

      public void setZoomFactor(int in)
      returns the zoom factor percentage
    • setPage

      public void setPage(int page)
      sets the current page number
    • setSection

      public void setSection(int section)
      sets the current section number
    • goToPreviousAvailPage

      public void goToPreviousAvailPage()
      go to the previous available page.
    • goToNextAvailPage

      public void goToNextAvailPage()
      go to the next available page.
    • isPrevAvailPageEnabled

      public boolean isPrevAvailPageEnabled()
      whether the previous page button is enabled
    • isNextAvailPageEnabled

      public boolean isNextAvailPageEnabled()
      whether the next page button is enabled
    • setOrder

      public void setOrder(boolean isAsc, String sortColumn)
      sorts the SORTCOLUMN either ASC (isAsc) or DESC (!isAsc).
    • do_Reload

      public void do_Reload()
      internal use only
    • mousePressed

      public void mousePressed(MouseEvent e)
      MOUSELISTENER EVENT
      Specified by:
      mousePressed in interface MouseListener
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      method invoked when mouse is dragged
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      method invoked when mouse is release
      Specified by:
      mouseReleased in interface MouseListener
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      mouse clicked event
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      mouse entered event
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      mouse exited event
      Specified by:
      mouseExited in interface MouseListener
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      mouse moved event
      Specified by:
      mouseMoved in interface MouseMotionListener
    • print

      public void print()
      prints the report
    • isNextPageEnabled

      public boolean isNextPageEnabled()
      Checks to see if next page exists
    • isPrevPageEnabled

      public boolean isPrevPageEnabled()
      Checks to see if previous page exists
    • isNextSectionEnabled

      public boolean isNextSectionEnabled()
      Checks to see if next section exists
    • isPrevSectionEnabled

      public boolean isPrevSectionEnabled()
      Checks to see if previous section exists
    • getTotalPages

      public int getTotalPages()
      returns total number to pages
    • getTotalSections

      public int getTotalSections()
      returns total number of sections
    • resetOffScreenImage

      public void resetOffScreenImage()
      reset the offScreenImage to null, the repaint process will redraw the whole canvas.
    • setBrowseDirectories

      public void setBrowseDirectories(BrowseDirectories dir)
    • setCanvasBackgroundColor

      public void setCanvasBackgroundColor(Color color)
      Sets the Canvas's background color
    • setPageMenuItemVisible

      public void setPageMenuItemVisible(String[] menuItem, boolean b)
      sets whether the "Page" menu item is visible.
    • setOutputMenuItemVisible

      public void setOutputMenuItemVisible(String[] menuItem, boolean b)
      sets whether the "Output" menu item is visible.
    • setSectionMenuItemVisible

      public void setSectionMenuItemVisible(String[] menuItem, boolean b)
      sets whether the "Section" menu item is visible.
    • setExportServlet

      public void setExportServlet(String url)
    • getExportServlet

      public String getExportServlet()
    • setDynamicExport

      public void setDynamicExport(boolean state, String serverName, int serverPort, String servletDirectory)