|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.java4less.rreport.RReport
Report to be previewed , printed and/or exported. It contains one or more areas that can be printed one or more times. Each area will contains several RObjects.
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
java.awt.Cursor |
actionCursor
this cursor will be activated when the cursor is over an object that has an associated action. |
boolean |
activateActions
activate actions |
boolean |
activateTips
activate tooltips |
int |
bufferedImageType
parameter used to created a bufferedImage for previews. |
static double |
CmDPI
dpi to cm |
boolean |
debug
activate debug |
boolean |
discardPagesInmediatelly
discard pages once they have been printed. |
java.lang.String |
exportDirectory
directory where the images that will be exported for the html report |
java.lang.String |
exportImagesFormat
format of the images that will be exported for the html report |
java.lang.String |
imagesHTMLPrefix
the prefix is added to the image url when the DHTML is created. |
static double |
javaVersion
|
double |
marginBottom
margin of the page in centimeters. |
double |
marginLeft
margin of the page in centimeters. |
double |
marginRight
margin of the page in centimeters. |
double |
marginTop
margin of the page in centimeters. |
double |
mPageHeightCM
size of the page in centimeter. |
double |
mPageWidthCM
size of the page in centimeter. |
static int |
ORIENTATION_HORIZONTAL
landscape layout |
static int |
ORIENTATION_VERTICAL
portrait layout |
java.lang.String |
pdfFontsDirectory
directory where ttf files are found. |
static int |
POSITION_NEXT
not used. |
static int |
POSITION_RIGHT
not used. |
static int |
POSITION_UNDER
not used. |
boolean |
printingCancelled
true if the user cancelled the printing in the printer dialog |
int |
scaleAlgorithm
algorithm used for the preview zoom, only jdk 1.1 |
RObjectInstance |
selectedObject
the cursor is over this object |
boolean |
showPageDialog
set it to false in order to hide the page format dialog (API Java 2) |
boolean |
showPrintDialog
set it to false in order to hide the printer dialog |
boolean |
showProgressWindow
show progress window while printing? |
java.awt.Color |
tipBack
background of the box used to displayed tips. |
java.awt.Color |
tipBorder
color of the border of the box used to displayed tips. |
java.awt.Color |
tipColor
color of the border of the box used to displayed tips. |
int |
tipDelay
specifies the number of milliseconds the tree will wait before showing a tip for the current node. |
java.awt.Font |
tipFont
Font used to display tips. |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
RReport(java.awt.Frame Owner)
constructor: Owner: must be a visible Frame or NULL |
|
RReport(java.awt.Frame Owner,
int reso)
constructor: - Owner: must be a visible Frame or NULL. - reso: resolution used for the preview (in CM). |
Method Summary | |
void |
addArea(RArea a)
Add an area to the report. |
void |
closeDB()
closes database connections |
void |
disablePrinting(boolean b)
if true, the report will not be printed. |
void |
endReport()
Run this method to end your report. |
void |
export(ExportLayer layer)
call this mehtod to export the report output (using a exportLayer) after the endReport() method. |
void |
exportPDF(java.io.OutputStream f)
call this mehtod to create PDF output after the endReport() method. |
java.util.Vector |
exportTXT()
call this mehtod to create TXT output after the endReport() method. |
RArea |
getAreaAt(int i)
gets area by position |
RArea |
getAreaByName(java.lang.String name)
gets area by name |
int |
getAreaCount()
get number of area in report |
java.lang.String |
getDateFormat()
gets date format for [Date] system variable. |
java.sql.Connection |
getDBCon()
get current connection to database. |
java.sql.Connection |
getDBConForSelect()
this function returns a connection. |
java.lang.String |
getDBDriver()
gets driver. |
java.lang.String |
getDBPsw()
gets database password. |
java.lang.String |
getDBUrl()
gets database url. |
java.lang.String |
getDBUser()
gets database user. |
RArea |
getGroupDetail(RArea footerOrHeader)
gets detail are of a group, given the header or footer |
java.lang.String |
getHTML()
Returns the HTML version of the report if HTMLPages is deactivated. |
boolean |
getHTMLActive()
Specifies that the HTML version should be created. |
java.lang.String |
getHTMLPage(int p)
returns a page of the HTML version of the report. |
int |
getMaxPages()
returns number of pages of the report. |
int |
getOrientation()
sets report orientation (RReport.ORIENTATION_HORIZONTAL or RReport.ORIENTATION_VERTICAL) |
java.awt.Color |
getPageBackground()
background color of the page. |
RArea |
getPageBackgroundArea()
This area will be printed in the background of each page |
RPicture |
getPageBackgroundImage()
This image will be printed in the background of each page |
RArea |
getPageFooter()
This area will be printed at the bottom of each page. |
double |
getPageFrameHorizontalMargin()
page frame left/right margin (in CM) if 0 it will be calculated as leftMargin/3 and rightMargin/3 |
RLineStyle |
getPageFrameStyle()
sets the frame style for the pages of the report. |
double |
getPageFrameVerticalMargin()
page frame top/bottom margin (in CM) if 0 it will be calculated as topMargin/3 and bottomMargin/3 |
RArea |
getPageHeader()
This area will be printed at the top of each page. |
int |
getPageHeightPixels()
page height, pixels |
int |
getPageNumber()
returns current page number during preview. |
int |
getPageWidthPixels()
page width, pixels |
java.lang.String |
getPDFFile()
gets the file name for PDF output. |
RPrintSetup |
getPrintSetup()
gets the RPrintSetup object used to configurate the printer. |
RArea |
getReportFooter()
This area will be printed when you call endReport(). |
RArea |
getReportHeader()
This area will be printed when you call prepare(). |
int |
getResolution()
resolution of the report (pixels/CM). |
double |
getScale()
returns current zoom value. |
double |
getScalePages()
returns scale of the pages being display in the preview window. ( |
int |
getShowPages()
returns the number of pages to be displayed in the preview. |
boolean |
getTextMode()
print in text mode |
int |
getTextModeColumns()
number of columns in text mode |
java.lang.String |
getTextModePrinter()
printer port in text mode |
java.lang.String |
getTextModePrinterType()
printer type in text mode |
double |
getTextModeRowHeight()
|
int |
getTextModeRows()
number of rows in text mode |
java.lang.String |
getTitle()
Title of the report. |
void |
importLine(java.lang.String key,
java.lang.String val)
internal use. |
boolean |
importReport(java.lang.String f)
Import *.rep file. |
boolean |
isPrintingDisabled()
if true, the report will not be printed. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
boolean |
openDB()
connect to database. |
boolean |
prepare()
starts a report. |
void |
printArea(RArea a)
prints an area. |
boolean |
printPreview(int[] PagesToPrint,
int Count)
Call this method if you want to make a preview. |
void |
printTextMode()
print in text mode using the printer name |
void |
printTextMode(com.java4less.textprinter.PrinterPort port,
com.java4less.textprinter.JobProperties job)
print in text mode. |
void |
removeAllAreas()
remove areas from report |
void |
removeAreaAt(int i)
remove one area from report |
void |
setDateFormat(java.lang.String s)
sets date format for [Date] system variable. |
void |
setDBCon(java.sql.Connection c)
sets current connection to database. |
void |
setDBDriver(java.lang.String s)
sets driver. |
void |
setDBPsw(java.lang.String s)
sets database password. |
void |
setDBUrl(java.lang.String s)
sets database url. |
void |
setDBUser(java.lang.String s)
sets database user. |
void |
setDefaultPageSize(double w,
double h)
size of page in CM |
void |
setHTMLActive(boolean activate)
Specifies that the HTML version should be created. |
void |
setHTMLPages(boolean b)
if this is false, the HTML report will be printed in just one file (page). |
void |
setImageFile(java.lang.String f,
java.lang.String imageF)
sets the file name for Image output. |
void |
setObjectListener(RObjectListener l)
this listener is called when an object is clicked |
void |
setOrientation(int o)
sets report orientation (RReport.ORIENTATION_HORIZONTAL or RReport.ORIENTATION_VERTICAL) |
void |
setPageBackground(java.awt.Color c)
background color of the page. |
void |
setPageBackgroundArea(RArea a)
This area will be printed in the background of each page |
void |
setPageBackgroundImage(RPicture p)
This image will be printed in the background of each page |
void |
setPageFooter(RArea area)
This area will be printed at the bottom of each page. |
void |
setPageFrameHorizontalMargin(double d)
page frame left/right margin (in CM) if 0 it will be calculated as leftMargin/3 and rightMargin/3 |
void |
setPageFrameStyle(RLineStyle fStyle)
sets the frame style for the pages of the report. |
void |
setPageFrameVerticalMargin(double d)
page frame top/bottom margin (in CM) if 0 it will be calculated as topMargin/3 and bottomMargin/3 |
void |
setPageHeader(RArea area)
This area will be printed at the top of each page. |
boolean |
setPageNumber(int p)
set page to show in the preview |
void |
setParameter(java.lang.String param,
java.lang.String val)
set a parameter for all RSources in the report. |
void |
setPDFFile(java.lang.String f)
sets the file name for PDF output. |
void |
setPDFStream(java.io.OutputStream f)
sets the stream for PDF output. |
void |
setPreview(boolean b)
used by the Preview Window to tell RReport it is being previewed. |
void |
setPrintSetup(RPrintSetup ps)
Sets the RPrintSetup object used to configurate the printer. |
void |
setReportFooter(RArea area)
This area will be printed when you call endReport(). |
void |
setReportHeader(RArea area)
This area will be printed when you call prepare(). |
void |
setResolution(int r)
resolution of the report (pixels/CM). |
boolean |
setScale(double s)
set scale during preview. |
void |
setShowPages(int p)
sets the number of pages to be displayed in the preview. |
void |
setTextMode(boolean b)
print in text mode |
void |
setTextModeColumns(int c)
number of columns in text mode |
void |
setTextModePrinter(java.lang.String s)
printer port in text mode |
void |
setTextModePrinterType(java.lang.String s)
printer type in text mode |
void |
setTextModeRows(int r)
number of rows in text mode |
void |
setTitle(java.lang.String t)
Title of the report. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean discardPagesInmediatelly
public static double CmDPI
public int tipDelay
public boolean activateTips
public boolean activateActions
public boolean debug
public java.awt.Font tipFont
public java.awt.Color tipColor
public java.awt.Color tipBorder
public java.awt.Color tipBack
public java.lang.String exportDirectory
public java.lang.String imagesHTMLPrefix
public java.lang.String exportImagesFormat
public static final int POSITION_NEXT
public static final int POSITION_UNDER
public static final int POSITION_RIGHT
public boolean showProgressWindow
public static final int ORIENTATION_VERTICAL
public static final int ORIENTATION_HORIZONTAL
public java.lang.String pdfFontsDirectory
public java.awt.Cursor actionCursor
public RObjectInstance selectedObject
public boolean showPrintDialog
public boolean showPageDialog
public int bufferedImageType
public int scaleAlgorithm
public boolean printingCancelled
public double marginLeft
public double marginRight
public double marginBottom
public double marginTop
public double mPageWidthCM
public double mPageHeightCM
public static double javaVersion
Constructor Detail |
public RReport(java.awt.Frame Owner)
public RReport(java.awt.Frame Owner, int reso)
Method Detail |
public void setObjectListener(RObjectListener l)
public boolean getTextMode()
public void setTextMode(boolean b)
public java.lang.String getTextModePrinter()
public void setTextModePrinter(java.lang.String s)
public java.lang.String getTextModePrinterType()
public void setTextModePrinterType(java.lang.String s)
public int getTextModeColumns()
public void setTextModeColumns(int c)
public int getTextModeRows()
public void setTextModeRows(int r)
public java.lang.String getDBUrl()
public java.lang.String getDBUser()
public java.lang.String getDBPsw()
public java.lang.String getDBDriver()
public void setDBUrl(java.lang.String s)
public void setDBUser(java.lang.String s)
public void setDBPsw(java.lang.String s)
public void setDBDriver(java.lang.String s)
public void setPrintSetup(RPrintSetup ps)
public RPrintSetup getPrintSetup()
public void disablePrinting(boolean b)
public boolean isPrintingDisabled()
public java.lang.String getPDFFile()
public void setPDFFile(java.lang.String f)
public void setPDFStream(java.io.OutputStream f)
public void setImageFile(java.lang.String f, java.lang.String imageF)
public double getPageFrameVerticalMargin()
public void setPageFrameVerticalMargin(double d)
public double getPageFrameHorizontalMargin()
public void setPageFrameHorizontalMargin(double d)
public void removeAllAreas()
public void removeAreaAt(int i)
public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String s)
public RArea getGroupDetail(RArea footerOrHeader)
public RArea getAreaByName(java.lang.String name)
public int getPageWidthPixels()
public int getPageHeightPixels()
public RArea getAreaAt(int i)
public int getAreaCount()
public java.sql.Connection getDBCon()
public java.sql.Connection getDBConForSelect()
public void setDBCon(java.sql.Connection c)
public void closeDB()
public boolean openDB()
public boolean importReport(java.lang.String f)
public void importLine(java.lang.String key, java.lang.String val)
public void setPageBackgroundImage(RPicture p)
public RPicture getPageBackgroundImage()
public void setPageBackground(java.awt.Color c)
public java.awt.Color getPageBackground()
public void setPageBackgroundArea(RArea a)
public RArea getPageBackgroundArea()
public void setPageFrameStyle(RLineStyle fStyle)
public RLineStyle getPageFrameStyle()
public void setHTMLActive(boolean activate)
public boolean getHTMLActive()
public void setTitle(java.lang.String t)
public java.lang.String getTitle()
public double getScalePages()
public void setDefaultPageSize(double w, double h)
public int getResolution()
public void setResolution(int r)
public int getOrientation()
public void setOrientation(int o)
public int getPageNumber()
public int getMaxPages()
public boolean setPageNumber(int p)
public void addArea(RArea a)
public void setShowPages(int p)
public int getShowPages()
public void setParameter(java.lang.String param, java.lang.String val)
public void printArea(RArea a)
public void setHTMLPages(boolean b)
public java.lang.String getHTML()
public java.lang.String getHTMLPage(int p)
public void endReport()
public boolean setScale(double s)
public double getScale()
public void exportPDF(java.io.OutputStream f) throws java.lang.Exception
public java.util.Vector exportTXT() throws java.lang.Exception
public void export(ExportLayer layer) throws java.lang.Exception
public void printTextMode() throws java.lang.Exception
public void printTextMode(com.java4less.textprinter.PrinterPort port, com.java4less.textprinter.JobProperties job) throws java.lang.Exception
public boolean printPreview(int[] PagesToPrint, int Count)
public void setPreview(boolean b)
public double getTextModeRowHeight()
public boolean prepare()
public void setPageHeader(RArea area)
public void setPageFooter(RArea area)
public void setReportHeader(RArea area)
public void setReportFooter(RArea area)
public RArea getPageHeader()
public RArea getPageFooter()
public RArea getReportHeader()
public RArea getReportFooter()
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
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 mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |