org.pentaho.reporting.engine.classic.core.modules.gui.base
Class PreviewPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ReportEventSource

public class PreviewPane
extends JPanel
implements ReportEventSource

Creation-Date: 11.11.2006, 19:36:13

Author:
Thomas Morgner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
 
Field Summary
static String CLOSED_PROPERTY
           
static String ERROR_PROPERTY
           
static String ICON_THEME_PROPERTY
           
static String LOCK_INTERFACE_PROPERTY
          Deprecated. use the paginating property instead
static String MENU_PROPERTY
           
static String NUMBER_OF_PAGES_PROPERTY
           
static String PAGE_NUMBER_PROPERTY
           
static String PAGINATED_PROPERTY
           
static String PAGINATING_PROPERTY
           
static String PREVIEW_MAXIMUM_HEIGHT
          The maximum height key.
static String PREVIEW_MAXIMUM_WIDTH
          The maximum width key.
static String PREVIEW_PREFERRED_HEIGHT
          The preferred height key.
static String PREVIEW_PREFERRED_WIDTH
          The preferred width key.
static String REPORT_CONTROLLER_PROPERTY
           
static String REPORT_JOB_PROPERTY
           
static String STATUS_TEXT_PROPERTY
           
static String STATUS_TYPE_PROPERTY
           
static String TITLE_PROPERTY
           
static String ZOOM_MAXIMUM_KEY
          The maximum zoom key.
static String ZOOM_MINIMUM_KEY
          The minimum zoom key.
static String ZOOM_PROPERTY
           
 
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
PreviewPane()
          Creates a new JPanel with a double buffer and a flow layout.
PreviewPane(boolean init)
           
 
Method Summary
 void addReportHyperlinkListener(ReportHyperlinkListener listener)
           
 void addReportProgressListener(ReportProgressListener progressListener)
           
 Throwable getError()
           
 IconTheme getIconTheme()
           
 Locale getLocale()
           
 JMenu[] getMenu()
           
 Object getNoReportDrawable()
           
 int getNumberOfPages()
           
 int getPageNumber()
           
 Object getPaginatingDrawable()
           
 PrintReportProcessor getPrintReportProcessor()
           
 ReportController getReportController()
           
 MasterReport getReportJob()
           
 PreviewDrawablePanel getReportPreviewArea()
           
 String getStatusText()
           
 StatusType getStatusType()
           
 SwingGuiContext getSwingGuiContext()
           
 String getTitle()
           
 JToolBar getToolBar()
           
 double getZoom()
           
 double[] getZoomFactors()
           
 KeyedComboBoxModel getZoomModel()
           
 boolean isClosed()
           
 boolean isDeferredRepagination()
           
 boolean isPaginated()
           
 boolean isPaginating()
           
 boolean isToolbarFloatable()
           
 void removeReportHyperlinkListener(ReportHyperlinkListener listener)
           
 void removeReportProgressListener(ReportProgressListener progressListener)
           
 void setClosed(boolean closed)
           
 void setDeferredRepagination(boolean deferredRepagination)
           
 void setError(Throwable error)
           
 void setNoReportDrawable(Object noReportDrawable)
           
 void setNumberOfPages(int numberOfPages)
           
 void setPageNumber(int pageNumber)
           
 void setPaginated(boolean paginated)
           
 void setPaginating(boolean paginating)
           
 void setPaginatingDrawable(Object paginatingDrawable)
           
 void setReportController(ReportController reportController)
           
 void setReportJob(MasterReport reportJob)
           
 void setStatusText(String statusText)
           
 void setStatusType(StatusType statusType)
           
 void setTitle(String title)
           
 void setToolbarFloatable(boolean toolbarFloatable)
           
 void setZoom(double zoom)
           
 void startPagination()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ReportEventSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

STATUS_TEXT_PROPERTY

public static final String STATUS_TEXT_PROPERTY
See Also:
Constant Field Values

STATUS_TYPE_PROPERTY

public static final String STATUS_TYPE_PROPERTY
See Also:
Constant Field Values

REPORT_CONTROLLER_PROPERTY

public static final String REPORT_CONTROLLER_PROPERTY
See Also:
Constant Field Values

ZOOM_PROPERTY

public static final String ZOOM_PROPERTY
See Also:
Constant Field Values

CLOSED_PROPERTY

public static final String CLOSED_PROPERTY
See Also:
Constant Field Values

ERROR_PROPERTY

public static final String ERROR_PROPERTY
See Also:
Constant Field Values

REPORT_JOB_PROPERTY

public static final String REPORT_JOB_PROPERTY
See Also:
Constant Field Values

PAGINATING_PROPERTY

public static final String PAGINATING_PROPERTY
See Also:
Constant Field Values

PAGINATED_PROPERTY

public static final String PAGINATED_PROPERTY
See Also:
Constant Field Values

PAGE_NUMBER_PROPERTY

public static final String PAGE_NUMBER_PROPERTY
See Also:
Constant Field Values

NUMBER_OF_PAGES_PROPERTY

public static final String NUMBER_OF_PAGES_PROPERTY
See Also:
Constant Field Values

ICON_THEME_PROPERTY

public static final String ICON_THEME_PROPERTY
See Also:
Constant Field Values

TITLE_PROPERTY

public static final String TITLE_PROPERTY
See Also:
Constant Field Values

MENU_PROPERTY

public static final String MENU_PROPERTY
See Also:
Constant Field Values

PREVIEW_PREFERRED_WIDTH

public static final String PREVIEW_PREFERRED_WIDTH
The preferred width key.

See Also:
Constant Field Values

PREVIEW_PREFERRED_HEIGHT

public static final String PREVIEW_PREFERRED_HEIGHT
The preferred height key.

See Also:
Constant Field Values

PREVIEW_MAXIMUM_WIDTH

public static final String PREVIEW_MAXIMUM_WIDTH
The maximum width key.

See Also:
Constant Field Values

PREVIEW_MAXIMUM_HEIGHT

public static final String PREVIEW_MAXIMUM_HEIGHT
The maximum height key.

See Also:
Constant Field Values

ZOOM_MAXIMUM_KEY

public static final String ZOOM_MAXIMUM_KEY
The maximum zoom key.

See Also:
Constant Field Values

ZOOM_MINIMUM_KEY

public static final String ZOOM_MINIMUM_KEY
The minimum zoom key.

See Also:
Constant Field Values

LOCK_INTERFACE_PROPERTY

public static final String LOCK_INTERFACE_PROPERTY
Deprecated. use the paginating property instead
See Also:
Constant Field Values
Constructor Detail

PreviewPane

public PreviewPane()
Creates a new JPanel with a double buffer and a flow layout.


PreviewPane

public PreviewPane(boolean init)
Method Detail

getReportPreviewArea

public PreviewDrawablePanel getReportPreviewArea()

isDeferredRepagination

public boolean isDeferredRepagination()

setDeferredRepagination

public void setDeferredRepagination(boolean deferredRepagination)

getPrintReportProcessor

public PrintReportProcessor getPrintReportProcessor()

getMenu

public JMenu[] getMenu()

getToolBar

public JToolBar getToolBar()

getStatusText

public String getStatusText()

setStatusText

public void setStatusText(String statusText)

getError

public Throwable getError()

setError

public void setError(Throwable error)

getStatusType

public StatusType getStatusType()

setStatusType

public void setStatusType(StatusType statusType)

getReportController

public ReportController getReportController()

setReportController

public void setReportController(ReportController reportController)

getReportJob

public MasterReport getReportJob()
Specified by:
getReportJob in interface ReportEventSource

setReportJob

public void setReportJob(MasterReport reportJob)

getZoom

public double getZoom()

setZoom

public void setZoom(double zoom)

isClosed

public boolean isClosed()

setClosed

public void setClosed(boolean closed)

getLocale

public Locale getLocale()
Overrides:
getLocale in class Component

getNumberOfPages

public int getNumberOfPages()
Specified by:
getNumberOfPages in interface ReportEventSource

setNumberOfPages

public void setNumberOfPages(int numberOfPages)

getPageNumber

public int getPageNumber()
Specified by:
getPageNumber in interface ReportEventSource

setPageNumber

public void setPageNumber(int pageNumber)

getIconTheme

public IconTheme getIconTheme()

setToolbarFloatable

public void setToolbarFloatable(boolean toolbarFloatable)

isToolbarFloatable

public boolean isToolbarFloatable()

getSwingGuiContext

public SwingGuiContext getSwingGuiContext()

getZoomModel

public KeyedComboBoxModel getZoomModel()

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getZoomFactors

public double[] getZoomFactors()

isPaginated

public boolean isPaginated()
Specified by:
isPaginated in interface ReportEventSource

setPaginated

public void setPaginated(boolean paginated)

isPaginating

public boolean isPaginating()
Specified by:
isPaginating in interface ReportEventSource

setPaginating

public void setPaginating(boolean paginating)

startPagination

public void startPagination()

getNoReportDrawable

public Object getNoReportDrawable()

setNoReportDrawable

public void setNoReportDrawable(Object noReportDrawable)

getPaginatingDrawable

public Object getPaginatingDrawable()

setPaginatingDrawable

public void setPaginatingDrawable(Object paginatingDrawable)

addReportProgressListener

public void addReportProgressListener(ReportProgressListener progressListener)

removeReportProgressListener

public void removeReportProgressListener(ReportProgressListener progressListener)

addReportHyperlinkListener

public void addReportHyperlinkListener(ReportHyperlinkListener listener)

removeReportHyperlinkListener

public void removeReportHyperlinkListener(ReportHyperlinkListener listener)