|
||||||||||
| PREV CLASS Documentation homepage. 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
javax.swing.JPanel
ilog.views.util.print.IlvPrintPreviewPanel
public class IlvPrintPreviewPanel
A IlvPrintPreviewPanel is a component designed to preview
the contents managed by a IlvPrintingController.
IlvPrintPreviewDialog,
IlvPrintingController.printPreview(java.awt.Window),
IlvPrintingController.createPrintPreviewWindow(java.awt.Window),
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CONTINUOUS_MODE
Preview mode that allows to preview all the pages together. |
static String |
printPreviewTitle
An internationalized string that can be used as a title of a Print preview dialog. |
static int |
SINGLE_PAGE_MODE
Preview mode that allows to preview the pages one by one. |
| 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 | |
|---|---|
IlvPrintPreviewPanel(IlvPrintingController controller,
int mode)
Creates a IlvPrintPreviewDialog for the specified
IlvPrintingController. |
|
| Method Summary | |
|---|---|
JButton |
addToolbarAction(Action action)
Adds a button in the toolbar. |
Color |
getMarginsColor()
Returns the color used to paint the margins of the page. |
Color |
getPageColor()
Returns the background color of a page. |
Color |
getPreviewBackground()
Returns the background color of the preview area (behind the pages). |
IlvPrintingController |
getPrintingController()
Returns the printing controller passed as a parameter of the constructor. |
Color |
getShadowColor()
Returns the color used to paint the shadow of the page. |
boolean |
isMarginsVisible()
Indicates if the margin delimiters are visible. |
void |
setCursor(Cursor c)
Changes the cursor. |
void |
setMarginsColor(Color color)
Specifies the color used to paint the margin delimiters of the page. |
void |
setMarginsVisible(boolean show)
Specifies whether the page margins should be visible. |
void |
setPageColor(Color c)
Changes the background color of a page. |
void |
setPreviewBackground(Color color)
Specifies the background color of the preview area (behind the pages). |
void |
setShadowColor(Color color)
Specifies the color used to paint the shadow around a page. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SINGLE_PAGE_MODE
public static final int CONTINUOUS_MODE
public static String printPreviewTitle
| Constructor Detail |
|---|
public IlvPrintPreviewPanel(IlvPrintingController controller,
int mode)
IlvPrintPreviewDialog for the specified
IlvPrintingController.
controller - The controller controlling the printing.mode - The preview mode, is one of SINGLE_PAGE_MODE and
CONTINUOUS_MODE.| Method Detail |
|---|
public IlvPrintingController getPrintingController()
public void setPreviewBackground(Color color)
color - The new colorsetMarginsVisible(boolean)public Color getPreviewBackground()
public void setMarginsColor(Color color)
color - The new margin color.setMarginsVisible(boolean)public Color getMarginsColor()
public boolean isMarginsVisible()
true if the page margins are displayed.public void setMarginsVisible(boolean show)
show - true if the page margins should be displayed.public Color getPageColor()
public void setPageColor(Color c)
public void setShadowColor(Color color)
color - The new shadow color.public Color getShadowColor()
public JButton addToolbarAction(Action action)
action - The action of the button.public void setCursor(Cursor c)
setCursor in class Componentc - The new cursor.
|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||