|
|||||||
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 | +--java.awt.Panel | +--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.
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. |
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 |
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 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 |
disablePrinting(boolean b)
if true, the report will not be printed. |
void |
endReport()
Run this method to end your report. |
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.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. |
boolean |
getDHTMLActive()
Specifies that the HTML version should be created. |
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 |
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. |
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 |
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)
sets date format for [Date] system variable. |
void |
setDHTMLActive(boolean activate)
Specifies that the HTML version should be created. |
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 |
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 |
setTitle(java.lang.String t)
Title of the report. |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int tipDelay
public boolean activateTips
public boolean activateActions
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.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 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 getAreaByName(java.lang.String name)
public int getPageWidthPixels()
public RArea getAreaAt(int i)
public int getAreaCount()
public java.sql.Connection getDBCon()
public void setDBCon(java.sql.Connection c)
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 setDHTMLActive(boolean activate)
public boolean getDHTMLActive()
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 printArea(RArea a)
public java.lang.String getHTML()
public void setHTMLPages(boolean b)
public java.lang.String getHTMLPage(int p)
public void endReport()
public boolean setScale(double s)
public double getScale()
public boolean printPreview(int[] PagesToPrint, int Count)
public void setPreview(boolean b)
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 |