public class ReportCanvas
extends quadbase.reportdesigner.ReportViewer.CCanvas
implements java.lang.Runnable, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.KeyListener
Modifier and Type | Field and Description |
---|---|
boolean |
backMenuItemVisible |
boolean |
goToMenuItemVisible |
java.util.Vector |
invisibleOutputMenuItem |
java.util.Vector |
invisiblePageMenuItem |
java.util.Vector |
invisibleSectionMenuItem |
java.util.Vector |
linkHistory |
boolean |
menuVisible |
boolean |
multiDrillDownVisible |
boolean |
outputMenuVisible |
static int |
PAGELAYOUT_OFFSET
Gap between the edge of the canvas and the actual page
|
boolean |
pageMenuVisible |
boolean |
refreshMenuItemVisible |
boolean |
sectionMenuVisible |
boolean |
sortMenuVisible |
boolean |
toolbarMenuVisible |
boolean |
zoomMenuItemVisible |
Constructor and Description |
---|
ReportCanvas(quadbase.reportdesigner.report.Report report)
Create a new ReportCanvas using specified Report object report
|
ReportCanvas(quadbase.reportdesigner.report.Report report,
int scrollBarOption)
Create a new ReportCanvas using specified Report object report and scroll bar option
|
Modifier and Type | Method and Description |
---|---|
void |
do_Reload()
For Internal Use only
|
void |
doneReload()
For Internal Use only
|
protected void |
finalize()
Remove all the mouseListener before exit
|
java.awt.Dimension |
getMinimumSize()
Returns the minimum size
|
int |
getPage()
Returns the page number
|
java.awt.Dimension |
getPreferredSize()
Returns the preferred size
|
QbReport |
getQbReport() |
quadbase.reportdesigner.report.Report |
getReport()
internal use only
|
java.awt.Component |
getReportComponent()
Returns the Component object for adding additional components to the Canvas
|
ReportToolBar |
getReportToolBar()
returns report toolbar object
|
int |
getSection()
Returns the section
|
protected java.awt.Container |
getToolbarContainer()
internal use only
|
int |
getTotalPages()
Returns the total number of pages
|
int |
getTotalSections()
Returns the 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()
whether report exports is enabled
|
boolean |
isExportToMultiPages()
sets whether exporting report to multiple pages is enabled
|
boolean |
isGotoEnabled()
Checks to see if the goto button shoule be 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 |
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 |
isRefreshEnabled()
whether report refresh is enabled
|
boolean |
isReportToolBarVisible()
gets the display status of report toolbar
|
void |
keyPressed(java.awt.event.KeyEvent e)
Key Pressed event
|
void |
keyReleased(java.awt.event.KeyEvent e)
Key Released event
|
void |
keyTyped(java.awt.event.KeyEvent e)
Key typed event
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Mouse Click event
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Mouse Drag event
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Mouse Enter event
|
void |
mouseExited(java.awt.event.MouseEvent e)
Mouse Exit event
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Mouse Move event
|
void |
mousePressed(java.awt.event.MouseEvent e)
Mouse Press event
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Mouse Release event
|
void |
paint(java.awt.Graphics g)
For internal use only
|
void |
print()
Print
|
void |
resetPages()
Reset page number and section number to 1
|
void |
run()
For Internal Use only
|
void |
setBrowseDirectories(BrowseDirectories dir) |
void |
setCanvasBackgroundColor(java.awt.Color color)
Sets the Canvas's background color
|
void |
setDrillDownParameterValues()
internal use only
|
void |
setExportEnabled(boolean b)
sets whether report exports is enabled
|
void |
setExportToMultiPages(boolean state)
whether exporting report to multiple pages is enabled
|
void |
setExportToSingleWPagination(boolean state)
sets whether exporting report to a paginated single page is enabled
|
void |
setFromDesigner(boolean state,
boolean isMetric)
internal use only
|
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)
Allow the user to implement their own mouse listeners and trap all mouse motion events
|
void |
setOutputMenuItemVisible(java.lang.String[] menuItem,
boolean b)
sets whether the "Output" menu item is visible.
|
void |
setPage(int p)
Sets the page
|
void |
setPageMenuItemVisible(java.lang.String[] menuItem,
boolean b)
sets whether the "Page" menu item is visible.
|
void |
setRefreshEnabled(boolean b)
sets whether report refresh is enabled
|
void |
setRepaint(IReport report)
Redraws the IReport object report
|
void |
setReport(quadbase.reportdesigner.report.Report report) |
void |
setReport(quadbase.reportdesigner.report.Report report,
quadbase.reportdesigner.report.Report parentReport)
Sets the Report object report
|
void |
setReportToolBarVisible(boolean b)
sets the display status of report toolbar
|
void |
setSection(int s)
Sets the Section
|
void |
setSectionMenuItemVisible(java.lang.String[] menuItem,
boolean b)
sets whether the "Section" menu item is visible.
|
void |
setSize(java.awt.Dimension d)
Sets the size using the specified dimension
|
void |
setSize(int w,
int h)
Sets the size using the specified width and height
|
void |
setZoomFactor(int in)
returns the zoom factor percentage
|
int |
translate(int x)
internal use only
|
void |
update(java.awt.Graphics g)
For internal use only
|
void |
zoom(double factor)
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 java.util.Vector linkHistory
public static final int PAGELAYOUT_OFFSET
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 zoomMenuItemVisible
public boolean multiDrillDownVisible
public boolean toolbarMenuVisible
public java.util.Vector invisibleSectionMenuItem
public java.util.Vector invisiblePageMenuItem
public java.util.Vector invisibleOutputMenuItem
public ReportCanvas(quadbase.reportdesigner.report.Report report)
public ReportCanvas(quadbase.reportdesigner.report.Report report, int scrollBarOption)
public ReportToolBar getReportToolBar()
public void setReportToolBarVisible(boolean b)
public boolean isReportToolBarVisible()
protected java.awt.Container getToolbarContainer()
public void setExportEnabled(boolean b)
public boolean isExportEnabled()
public void setRefreshEnabled(boolean b)
public boolean isRefreshEnabled()
public boolean isExportToMultiPages()
public void setExportToMultiPages(boolean state)
public void setExportToSingleWPagination(boolean state)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public quadbase.reportdesigner.report.Report getReport()
public QbReport getQbReport()
public java.awt.Component getReportComponent()
public void setReport(quadbase.reportdesigner.report.Report report) throws java.lang.Exception
java.lang.Exception
public void setReport(quadbase.reportdesigner.report.Report report, quadbase.reportdesigner.report.Report parentReport) throws java.lang.Exception
java.lang.Exception
public void setSize(java.awt.Dimension d)
setSize
in class java.awt.Component
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 setRepaint(IReport report)
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 void run()
run
in interface java.lang.Runnable
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 mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public int getPage()
public int getSection()
public void setPage(int p)
public void setSection(int s)
public int getTotalPages()
public int getTotalSections()
public boolean isNextPageEnabled()
public boolean isPrevPageEnabled()
public boolean isNextSectionEnabled()
public boolean isPrevSectionEnabled()
public void goToPreviousAvailPage()
public void goToNextAvailPage()
public boolean isPrevAvailPageEnabled()
public boolean isNextAvailPageEnabled()
public boolean isGotoEnabled()
public void resetPages() throws java.lang.Exception
java.lang.Exception
public void print()
public void do_Reload()
public void doneReload()
public void setMouseListener(java.awt.event.MouseListener listener)
public void setMouseMotionListener(java.awt.event.MouseMotionListener listener)
public int getZoomFactor()
public void setZoomFactor(int in)
public void zoom(double factor)
public void setFromDesigner(boolean state, boolean isMetric)
public int translate(int x)
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 setDrillDownParameterValues() throws java.lang.Exception
java.lang.Exception
public void setBrowseDirectories(BrowseDirectories dir)