|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PreviewView
The PreviewView interface defines the API for previewers. An instance of a PreviewView can be obtained by calling Previewer.getPreviewView(). The type of the returned previewer depends on the runtime environment of the application/applet. If it's running in JDK1.2 or later, the previewer instance is a Previewer2D object, which is based on the Swing and Java2D APIs. If it's running in JDK1.1 environment, the previewer instance is a Previewer object, which is based on the AWT components and the basic graphics API.
PreviewView previewer = Previewer.getPreviewView();
previewer.pack();
previewer.setVisible(true);
previewer.print(report);
| Field Summary | |
|---|---|
static int |
CLOSE_BUTTON
Close button. |
static int |
FULL_SCREEN_BUTTON
Full screen button. |
static int |
N_PAGE_BUTTON
Multiple page button. |
static int |
ONE_PAGE_BUTTON
One page button. |
static int |
PRINT_BUTTON
Print button. |
static int |
ZOOM_BUTTON
Zoom control. |
| Method Summary | |
|---|---|
void |
addDisposeListener(ActionListener l)
Add a dispose listener which will be notified when the preview view be disposed. |
void |
addSelectionListener(SelectionListener l)
Add a selection listener. |
void |
addToolbarComponent(Component comp)
Add a component to the toolbar. |
int |
getOrientation()
Returns the orientation of this PageFormat. |
double |
getPageHeight()
Get the page height in inches. |
int |
getPageResolution()
Deprecated. as of 5.1. |
double |
getPageWidth()
Get the page width in inches. |
ReportSheet |
getReport()
Get the report displayed in this previewer. |
Enumeration |
getStylePages()
Get the style pages in the preview frame. |
double |
getZoom()
Get the zoom percentage. |
void |
pack()
Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. |
void |
print(ReportSheet sheet)
Print the report in this previewer. |
void |
printAction()
Start printing to printer. |
void |
removeSelectionListener(SelectionListener l)
Remove a selection listener. |
void |
setExitOnClose(boolean exitit)
If the ExitOnClose is set to true, the Previewer exits from the application when the previewer window is closed. |
void |
setOrientation(int orientation)
Deprecated. as of 5.1. |
void |
setPageHeight(double height)
Deprecated. as of 5.1. |
void |
setPageResolution(int res)
Deprecated. as of 5.1. |
void |
setPageWidth(double width)
Deprecated. as of 5.1. |
void |
setPreferredSize(Dimension size)
Set the preferred size of the previewer window. |
void |
setStylePages(Enumeration pages)
Display the StylePages in the preview pane. |
void |
setTitle(String title)
Set the preview window title. |
void |
setToolbarButtons(int buttons)
Set the buttons on the toolbar. |
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter b. |
void |
writeReport(OutputStream os)
Writes the previewed report to a .sro file |
void |
zoom(double perc)
Set the zooming percentage. |
| Field Detail |
|---|
static final int PRINT_BUTTON
static final int ONE_PAGE_BUTTON
static final int N_PAGE_BUTTON
static final int FULL_SCREEN_BUTTON
static final int ZOOM_BUTTON
static final int CLOSE_BUTTON
| Method Detail |
|---|
void setTitle(String title)
title - previewer title.void setToolbarButtons(int buttons)
buttons - bit-wise OR of the button masks.void addToolbarComponent(Component comp)
void setPageWidth(double width)
width - page width.double getPageWidth()
void setPageHeight(double height)
height - page height.double getPageHeight()
void setOrientation(int orientation)
orientation must be
one of the constants: PORTRAIT, LANDSCAPE.
orientation - the new orientation for the pageint getOrientation()
PageFormat.
PageFormat object's orientation.void setPageResolution(int res)
res - page resolution.int getPageResolution()
Enumeration getStylePages()
void setStylePages(Enumeration pages)
pages - return a collection of StylePage objects.void print(ReportSheet sheet)
sheet - report.ReportSheet getReport()
void zoom(double perc)
perc - zooming percentage.double getZoom()
void printAction()
void addSelectionListener(SelectionListener l)
void removeSelectionListener(SelectionListener l)
void setExitOnClose(boolean exitit)
void setPreferredSize(Dimension size)
void pack()
Component.isDisplayable()void setVisible(boolean b)
b.
b - If true, shows this component;
otherwise, hides this component.void addDisposeListener(ActionListener l)
void writeReport(OutputStream os)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||