public class ReportCanvas
extends quadbase.reportdesigner.PageViewer.CCanvas
implements java.lang.Runnable, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Modifier and Type | Field and Description |
---|---|
boolean |
backMenuItemVisible |
boolean |
goToMenuItemVisible |
java.util.Vector<java.lang.String> |
invisibleOutputMenuItem |
java.util.Vector<java.lang.String> |
invisiblePageMenuItem |
java.util.Vector<java.lang.String> |
invisibleSectionMenuItem |
boolean |
menuVisible |
boolean |
multiDrillDownVisible |
boolean |
outputMenuVisible |
boolean |
pageMenuVisible |
boolean |
refreshMenuItemVisible |
boolean |
sectionMenuVisible |
boolean |
sortMenuVisible |
boolean |
toolbarMenuVisible |
boolean |
zoomMenuItemVisible |
Constructor and Description |
---|
ReportCanvas(quadbase.reportdesigner.PageViewer.ReportInfo iFile)
internal use only
|
Modifier and Type | Method and Description |
---|---|
void |
do_Reload()
internal use only
|
protected void |
finalize()
Remove all the mouseListener before exit
|
int |
getBackwardLinkClickCount()
gets how many times the user needs to trigger the backwardLinkModifier MouseEvent to go
backward.
|
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).
|
java.awt.Color |
getDataHintBgColor()
gets the data hint background color
|
java.awt.Font |
getDataHintFont()
gets the data hint font
|
java.awt.Color |
getDataHintFontColor()
gets the data hint font color
|
java.awt.Dimension |
getDataHintOffset()
gets the offset of the data hint
|
java.lang.String |
getExportServlet() |
int |
getForwardLinkClickCount()
gets how many times the user needs to trigger the forwardLinkModifier MouseEvent to go
forward.
|
int |
getForwardLinkModifier()
gets what java.awt.event.MouseEvent triggers a link (drill down link, etc.) to go forward.
|
java.lang.String[] |
getInvisibleMenuItemList()
gets a list of menu items in the right-click pop up menu that are invisible
|
java.awt.Dimension |
getMinimumSize()
Returns the minimum size
|
java.awt.Dimension |
getPreferredSize()
Returns the preferred size
|
quadbase.reportdesigner.PageViewer.Report |
getReport()
internal use only
|
java.awt.Component |
getReportComponent()
Returns the Component object for adding additional components to the Canvas
|
quadbase.reportdesigner.PageViewer.ReportInfo |
getReportInfo()
internal use only
|
ReportToolBar |
getReportToolBar()
returns report toolbar object
|
protected java.awt.Container |
getToolbarContainer()
internal use only
|
int |
getTotalPages()
returns total number to pages
|
int |
getTotalSections()
returns total number of sections
|
int |
getZoomFactor()
sets the zoom factor percentage
|
void |
goToNextAvailPage()
go to the next available page.
|
void |
goToPreviousAvailPage()
go to the previous available page.
|
boolean |
isExportEnabled()
sets whether export is enabled
|
boolean |
isNextAvailPageEnabled()
whether the next page button is enabled
|
boolean |
isNextPageEnabled()
Checks to see if next page exists
|
boolean |
isNextSectionEnabled()
Checks to see if next section exists
|
boolean |
isPopupMenuEnabled()
whether the right-click pop up menu is enabled
|
boolean |
isPrevAvailPageEnabled()
whether the previous page button is enabled
|
boolean |
isPrevPageEnabled()
Checks to see if previous page exists
|
boolean |
isPrevSectionEnabled()
Checks to see if previous section exists
|
boolean |
isPrintKeyEnabled()
whether the print key is enabled
|
boolean |
isRefreshEnabled()
whether the refresh is enabled
|
boolean |
isReportToolBarVisible()
sets the display status of report toolbar
|
boolean |
isShowDataHint()
whether to show data hint
|
void |
mouseClicked(java.awt.event.MouseEvent e)
mouse clicked event
|
void |
mouseDragged(java.awt.event.MouseEvent e)
method invoked when mouse is dragged
|
void |
mouseEntered(java.awt.event.MouseEvent e)
mouse entered event
|
void |
mouseExited(java.awt.event.MouseEvent e)
mouse exited event
|
void |
mouseMoved(java.awt.event.MouseEvent e)
mouse moved event
|
void |
mousePressed(java.awt.event.MouseEvent e)
MOUSELISTENER EVENT
|
void |
mouseReleased(java.awt.event.MouseEvent e)
method invoked when mouse is release
|
void |
paint(java.awt.Graphics g)
For internal use only
|
void |
print()
prints the report
|
void |
resetOffScreenImage()
reset the offScreenImage to null, the repaint process will redraw the whole canvas.
|
void |
run()
internal use only.
|
void |
setBackwardLinkClickCount(int c)
sets how many times the user needs to trigger the backwardLinkModifier MouseEvent to go
backward.
|
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).
|
void |
setBrowseDirectories(BrowseDirectories dir) |
void |
setCanvasBackgroundColor(java.awt.Color color)
Sets the Canvas's background color
|
void |
setDataHintBgColor(java.awt.Color c)
sets the data hint background color
|
void |
setDataHintFont(java.awt.Font f)
sets the data hint font
|
void |
setDataHintFontColor(java.awt.Color c)
sets the data hint font color
|
void |
setDataHintOffset(java.awt.Dimension dimension)
sets the offset of the data hint
|
void |
setDynamicExport(boolean state,
java.lang.String serverName,
int serverPort,
java.lang.String servletDirectory) |
void |
setExportEnabled(boolean b)
whether export is enabled
|
void |
setExportServlet(java.lang.String url) |
void |
setForwardLinkClickCount(int c)
sets how many times the user needs to trigger the forwardLinkModifier MouseEvent to go
forward.
|
void |
setForwardLinkModifier(int m)
sets what java.awt.event.MouseEvent triggers a link (drill down link, etc.) to go forward.
|
void |
setInvisibleMenuItemList(java.lang.String[] list)
sets a list of menu items in the right-click pop up menu that are invisible
|
void |
setMouseListener(java.awt.event.MouseListener listener)
Allow the user to implement their own mouse listeners and trap all mouse events
|
void |
setMouseMotionListener(java.awt.event.MouseMotionListener listener)
sets the mouse motion listener
|
void |
setOrder(boolean isAsc,
java.lang.String sortColumn)
sorts the SORTCOLUMN either ASC (isAsc) or DESC (!isAsc).
|
void |
setOutputMenuItemVisible(java.lang.String[] menuItem,
boolean b)
sets whether the "Output" menu item is visible.
|
void |
setPage(int page)
sets the current page number
|
void |
setPageMenuItemVisible(java.lang.String[] menuItem,
boolean b)
sets whether the "Page" menu item is visible.
|
void |
setParent(java.awt.Frame frame)
sets the parent frame.
|
void |
setPopupMenuEnabled(boolean b)
sets whether the right-click pop up menu is enabled
|
void |
setPrintKeyEnabled(boolean p)
sets whether the print key is enabled
|
void |
setRefreshEnabled(boolean r)
sets whether the refresh is enabled
|
void |
setReportToolBarVisible(boolean b)
returns the display status of report toolbar
|
void |
setSection(int section)
sets the current section number
|
void |
setSectionMenuItemVisible(java.lang.String[] menuItem,
boolean b)
sets whether the "Section" menu item is visible.
|
void |
setShowDataHint(boolean b)
sets whether to show data hint
|
void |
setSize(java.awt.Dimension d)
Sets the size using the specified dimension
|
void |
setSize(double w,
double h) |
void |
setSize(int w,
int h)
Sets the size using the specified width and height
|
void |
setZoomFactor(int in)
returns the zoom factor percentage
|
void |
update(java.awt.Graphics g)
For internal use only
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public boolean menuVisible
public boolean sectionMenuVisible
public boolean pageMenuVisible
public boolean outputMenuVisible
public boolean backMenuItemVisible
public boolean refreshMenuItemVisible
public boolean goToMenuItemVisible
public boolean sortMenuVisible
public boolean multiDrillDownVisible
public boolean toolbarMenuVisible
public boolean zoomMenuItemVisible
public java.util.Vector<java.lang.String> invisibleSectionMenuItem
public java.util.Vector<java.lang.String> invisiblePageMenuItem
public java.util.Vector<java.lang.String> invisibleOutputMenuItem
public ReportCanvas(quadbase.reportdesigner.PageViewer.ReportInfo iFile)
public ReportToolBar getReportToolBar()
public void setReportToolBarVisible(boolean b)
public boolean isReportToolBarVisible()
protected java.awt.Container getToolbarContainer()
public void setParent(java.awt.Frame frame)
public void setMouseListener(java.awt.event.MouseListener listener)
public void setMouseMotionListener(java.awt.event.MouseMotionListener listener)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public quadbase.reportdesigner.PageViewer.Report getReport()
public quadbase.reportdesigner.PageViewer.ReportInfo getReportInfo()
public java.awt.Component getReportComponent()
public boolean isPopupMenuEnabled()
public void setPopupMenuEnabled(boolean b)
public java.lang.String[] getInvisibleMenuItemList()
public void setInvisibleMenuItemList(java.lang.String[] list)
public void setShowDataHint(boolean b)
public boolean isShowDataHint()
public java.awt.Dimension getDataHintOffset()
public void setDataHintOffset(java.awt.Dimension dimension)
public java.awt.Color getDataHintBgColor()
public void setDataHintBgColor(java.awt.Color c)
public java.awt.Color getDataHintFontColor()
public void setDataHintFontColor(java.awt.Color c)
public java.awt.Font getDataHintFont()
public void setDataHintFont(java.awt.Font f)
public int getForwardLinkModifier()
public void setForwardLinkModifier(int m)
public int getForwardLinkClickCount()
public void setForwardLinkClickCount(int c)
public int getBackwardLinkModifier()
public void setBackwardLinkModifier(int m)
public int getBackwardLinkClickCount()
public void setBackwardLinkClickCount(int c)
public boolean isPrintKeyEnabled()
public void setPrintKeyEnabled(boolean p)
public boolean isRefreshEnabled()
public void setRefreshEnabled(boolean r)
public void setExportEnabled(boolean b)
public boolean isExportEnabled()
public void setSize(java.awt.Dimension d)
setSize
in class java.awt.Component
public void setSize(double w, double h)
public void setSize(int w, int h)
setSize
in class java.awt.Component
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Component
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Component
public void run()
run
in interface java.lang.Runnable
public void paint(java.awt.Graphics g)
paint
in class java.awt.Canvas
public void update(java.awt.Graphics g)
update
in class java.awt.Canvas
public int getZoomFactor()
public void setZoomFactor(int in)
public void setPage(int page)
public void setSection(int section)
public void goToPreviousAvailPage()
public void goToNextAvailPage()
public boolean isPrevAvailPageEnabled()
public boolean isNextAvailPageEnabled()
public void setOrder(boolean isAsc, java.lang.String sortColumn)
public void do_Reload()
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void print()
public boolean isNextPageEnabled()
public boolean isPrevPageEnabled()
public boolean isNextSectionEnabled()
public boolean isPrevSectionEnabled()
public int getTotalPages()
public int getTotalSections()
public void resetOffScreenImage()
public void setBrowseDirectories(BrowseDirectories dir)
public void setCanvasBackgroundColor(java.awt.Color color)
public void setPageMenuItemVisible(java.lang.String[] menuItem, boolean b)
public void setOutputMenuItemVisible(java.lang.String[] menuItem, boolean b)
public void setSectionMenuItemVisible(java.lang.String[] menuItem, boolean b)
public void setExportServlet(java.lang.String url)
public java.lang.String getExportServlet()
public void setDynamicExport(boolean state, java.lang.String serverName, int serverPort, java.lang.String servletDirectory)