Class ReportCanvas
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
quadbase.reportdesigner.PageViewer.swing.CCanvas
quadbase.reportdesigner.PageViewer.swing.ReportCanvas
- All Implemented Interfaces:
KeyListener,MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,Runnable,EventListener,Accessible
public class ReportCanvas
extends quadbase.reportdesigner.PageViewer.swing.CCanvas
implements Runnable, MouseListener, MouseMotionListener, KeyListener
ReportCanvas is the Canvas object that is contained within the PageViewer component. Use
Viewer.getReportCanvas(...) to get an instance of a ReportCanvas.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionReportCanvas(quadbase.reportdesigner.PageViewer.swing.ReportInfo iFile) internal use only -
Method Summary
Modifier and TypeMethodDescriptionvoidinternal use onlyprotected voidfinalize()Remove all the mouseListener before exitintgets how many times the user needs to trigger the backwardLinkModifier MouseEvent to go backward.intgets 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).gets the data hint background colorgets the data hint fontgets the data hint font colorgets the offset of the data hintintgets how many times the user needs to trigger the forwardLinkModifier MouseEvent to go forward.intgets what java.awt.event.MouseEvent triggers a link (drill down link, etc.) to go forward.String[]gets a list of menu items in the right-click pop up menu that are invisibleReturns the minimum sizeReturns the preferred sizequadbase.reportdesigner.PageViewer.swing.Reportinternal use onlyReturns the Component object for adding additional components to the Canvasquadbase.reportdesigner.PageViewer.swing.ReportInfointernal use onlyreturns report toolbar objectprotected Containerinternal use onlyintreturns total number to pagesintreturns total number of sectionsintsets the zoom factor percentagevoidgo to the next available page.voidgo to the previous available page.booleansets whether export is enabledbooleanwhether the next page button is enabledbooleanChecks to see if next page existsbooleanChecks to see if next section existsbooleanwhether the right-click pop up menu is enabledbooleanwhether the previous page button is enabledbooleanChecks to see if previous page existsbooleanChecks to see if previous section existsbooleanwhether the print key is enabledbooleanwhether the refresh is enabledbooleansets the display status of report toolbarbooleanwhether to show data hintvoidkey pressed eventvoiddoes nothingvoiddoes nothingvoidmouse clicked eventvoidmethod invoked when mouse is draggedvoidmouse entered eventvoidmouse exited eventvoidmouse moved eventvoidMOUSELISTENER EVENTvoidmethod invoked when mouse is releasevoidFor internal use onlyvoidprint()prints the reportvoidreset the offScreenImage to null, the repaint process will redraw the whole canvas.voidrun()internal use only.voidsetBackwardLinkClickCount(int c) sets how many times the user needs to trigger the backwardLinkModifier MouseEvent to go backward.voidsetBackwardLinkModifier(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).voidvoidsetCanvasBackgroundColor(Color color) Sets the Canvas's background colorvoidsets the data hint background colorvoidsets the data hint fontvoidsets the data hint font colorvoidsetDataHintOffset(Dimension dimension) sets the offset of the data hintvoidsetDynamicExport(boolean state, String serverName, int serverPort, String servletDirectory) voidsetExportEnabled(boolean b) whether export is enabledvoidsetExportServlet(String url) voidsetForwardLinkClickCount(int c) sets how many times the user needs to trigger the forwardLinkModifier MouseEvent to go forward.voidsetForwardLinkModifier(int m) sets what java.awt.event.MouseEvent triggers a link (drill down link, etc.) to go forward.voidsetInvisibleMenuItemList(String[] list) sets a list of menu items in the right-click pop up menu that are invisiblevoidsetMouseListener(MouseListener listener) Allow the user to implement their own mouse listeners and trap all mouse eventsvoidsetMouseMotionListener(MouseMotionListener listener) sets the mouse motion listenervoidsorts the SORTCOLUMN either ASC (isAsc) or DESC (!isAsc).voidsetOutputMenuItemVisible(String[] menuItem, boolean b) sets whether the "Output" menu item is visible.voidsetPage(int page) sets the current page numbervoidsetPageMenuItemVisible(String[] menuItem, boolean b) sets whether the "Page" menu item is visible.voidsets the parent frame.voidsetPopupMenuEnabled(boolean b) sets whether the right-click pop up menu is enabledvoidsetPrintKeyEnabled(boolean p) sets whether the print key is enabledvoidsetRefreshEnabled(boolean r) sets whether the refresh is enabledvoidsetReportToolBarVisible(boolean b) returns the display status of report toolbarvoidsetSection(int section) sets the current section numbervoidsetSectionMenuItemVisible(String[] menuItem, boolean b) sets whether the "Section" menu item is visible.voidsetShowDataHint(boolean b) sets whether to show data hintvoidsetSize(double w, double h) voidsetSize(int w, int h) Sets the size using the specified width and heightvoidSets the size using the specified dimensionvoidsetZoomFactor(int in) returns the zoom factor percentagevoidFor internal use onlyMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardActionMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
sectionMenuVisible
public boolean sectionMenuVisible -
pageMenuVisible
public boolean pageMenuVisible -
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
-
invisiblePageMenuItem
-
invisibleOutputMenuItem
-
Constructor Details
-
ReportCanvas
public ReportCanvas(quadbase.reportdesigner.PageViewer.swing.ReportInfo iFile) internal use only
-
-
Method Details
-
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
internal use only -
setParent
sets the parent frame. -
setMouseListener
Allow the user to implement their own mouse listeners and trap all mouse events -
setMouseMotionListener
sets the mouse motion listener -
finalize
Remove all the mouseListener before exit -
getReport
public quadbase.reportdesigner.PageViewer.swing.Report getReport()internal use only -
getReportInfo
public quadbase.reportdesigner.PageViewer.swing.ReportInfo getReportInfo()internal use only -
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
gets a list of menu items in the right-click pop up menu that are invisible -
setInvisibleMenuItemList
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
gets the offset of the data hint -
setDataHintOffset
sets the offset of the data hint -
getDataHintBgColor
gets the data hint background color -
setDataHintBgColor
sets the data hint background color -
getDataHintFontColor
gets the data hint font color -
setDataHintFontColor
sets the data hint font color -
getDataHintFont
gets the data hint font -
setDataHintFont
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
Sets the size using the specified dimension -
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 -
getPreferredSize
Returns the preferred size- Overrides:
getPreferredSizein classJComponent
-
getMinimumSize
Returns the minimum size- Overrides:
getMinimumSizein classJComponent
-
run
public void run()internal use only. does nothing -
paint
For internal use only- Overrides:
paintin classJComponent
-
update
For internal use only- Overrides:
updatein classJComponent
-
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
sorts the SORTCOLUMN either ASC (isAsc) or DESC (!isAsc). -
do_Reload
public void do_Reload()internal use only -
mousePressed
MOUSELISTENER EVENT- Specified by:
mousePressedin interfaceMouseListener
-
mouseDragged
method invoked when mouse is dragged- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseReleased
method invoked when mouse is release- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseClicked
mouse clicked event- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
mouse entered event- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
mouse exited event- Specified by:
mouseExitedin interfaceMouseListener
-
mouseMoved
mouse moved event- Specified by:
mouseMovedin interfaceMouseMotionListener
-
keyPressed
key pressed event- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
does nothing- Specified by:
keyReleasedin interfaceKeyListener
-
keyTyped
does nothing- Specified by:
keyTypedin interfaceKeyListener
-
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
-
setCanvasBackgroundColor
Sets the Canvas's background color -
setPageMenuItemVisible
sets whether the "Page" menu item is visible. -
setOutputMenuItemVisible
sets whether the "Output" menu item is visible. -
setSectionMenuItemVisible
sets whether the "Section" menu item is visible. -
setExportServlet
-
getExportServlet
-
setDynamicExport
-