com.tensegrity.gui.swt.print
Class PagePanel

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended byorg.eclipse.swt.widgets.Canvas
                      extended bycom.tensegrity.gui.swt.print.PagePanel
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class PagePanel
extends org.eclipse.swt.widgets.Canvas

This class represents a single piece of paper with a certain orientation. It is used by the PrintPreviewDialog .

Version:
$Id: PagePanel.java,v 1.9 2005/08/08 14:33:48 ArndHouben Exp $
Author:
Arnd Houben

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
PagePanel(org.eclipse.swt.widgets.Composite parent, GraphPrinter gPrinter, BasePageFormat bPageFormat, int row, int col, int pageIndex)
          Constructor which creates a new PagePanel instance based on the given BasePageFormat.
 
Method Summary
 org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
           
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
getCaret, scroll, setCaret, setFont
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PagePanel

public PagePanel(org.eclipse.swt.widgets.Composite parent,
                 GraphPrinter gPrinter,
                 BasePageFormat bPageFormat,
                 int row,
                 int col,
                 int pageIndex)
Constructor which creates a new PagePanel instance based on the given BasePageFormat. The specified GraphPrinter is used to draw the content. The row, col and pageIndex parameters define the page position when printing multiple pages.

Parameters:
parent - the parent which displays this canvas
gPrinter - needed to render the graph
bPageFormat - describes the current page dimensions
row - the row position of this page
col - the col position of this page
pageIndex - the page index
Method Detail

computeSize

public final org.eclipse.swt.graphics.Point computeSize(int wHint,
                                                        int hHint,
                                                        boolean changed)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.