|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
inetsoft.report.PreviewPage
public class PreviewPage
The PreviewPage is used by the Previewer to hold one page of printout. The PreviewPage provides scaling function to handle the zoom-in and zoom-out of page view.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Dimension |
bSize
Buffer size. |
static Image |
buffer
Double image buffer. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
PreviewPage(double winch,
double hinch)
Create a page component for the specified size. |
|
PreviewPage(double winch,
double hinch,
int resolution)
Create a page component for the specified size and resolution. |
|
PreviewPage(PrintJob printer)
Create a previewer using the PrintJob parameters. |
|
| Method Summary | |
|---|---|
Insets |
getInsets()
Get the insets of this page. |
int |
getPageIndex()
Get the index of this page in the report. |
Dimension |
getPageSize()
Get the size of the page, independent of the current on screen size. |
Size |
getPageSizeInch()
Return the page size in inches. |
Dimension |
getPreferredSize()
Return the preferred size of this page. |
int |
getResolution()
Get the page resolution. |
StylePage |
getStylePage()
Get the page object. |
double |
getZoom()
Get the zoom ratio. |
boolean |
isDrawBorder()
Check if border is drawn around the page. |
void |
paint(Graphics g)
Paint the page. |
void |
paintBG(Graphics g)
Paint the page background. |
void |
paintContainer(Graphics g)
Call the Container.paint directly without painting preview contents. |
static void |
paintPage(Graphics g,
PreviewPage page)
Paint one page. |
void |
setDrawBorder(boolean border)
Set whether to draw a border around the page. |
void |
setPageIndex(int index)
Set the page index of this page. |
void |
setPageSize(Dimension size)
Set the size of the page. |
void |
setStylePage(StylePage page)
Set the page object. |
void |
setZoom(double percent)
Set the zoom-in zoom-out value in percentage of the original size. |
void |
update(Graphics g)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Image buffer
public static Dimension bSize
| Constructor Detail |
|---|
public PreviewPage(double winch,
double hinch)
winch - width in inches.hinch - height in inches.public PreviewPage(PrintJob printer)
printer - printer job.
public PreviewPage(double winch,
double hinch,
int resolution)
winch - width in inches.hinch - height in inches.resolution - pixels per inch.| Method Detail |
|---|
public Size getPageSizeInch()
public Dimension getPageSize()
public void setPageSize(Dimension size)
size - page size.public int getResolution()
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setZoom(double percent)
public double getZoom()
public StylePage getStylePage()
public void setStylePage(StylePage page)
public void setDrawBorder(boolean border)
border - false to disable the drawing of border.public boolean isDrawBorder()
public int getPageIndex()
public void setPageIndex(int index)
index - page index, starts from 0.public void paintBG(Graphics g)
public void paintContainer(Graphics g)
public void paint(Graphics g)
paint in class JComponent
public static void paintPage(Graphics g,
PreviewPage page)
public void update(Graphics g)
update in class JComponentpublic Insets getInsets()
getInsets in class JComponent
|
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 | ||||||||