Class RMViewer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.inductiveautomation.rm.viewer.RMViewer
- All Implemented Interfaces:
ImageObserver,MenuContainer,PropertyChangeListener,Serializable,EventListener,Scrollable
- Direct Known Subclasses:
Gallery.GViewer,RMEditor,RMTrackballControl
The RMViewer class is a JComponent subclass that can be used in Swing applications to display and/or print an
RMDocument.
You might use it like this to simply print a document:
new RMViewer(aDocument).print();
Or you might want to allocate one and add it to a Swing component hierarchy:
RMViewer viewer = new RMViewer(); viewer.setContent(new RMDocument(aSource)); myFrame.getContentPane().add(new JScrollPane(viewer));
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA phantom component that resides in the viewer, that Swing JComponentShapes can attach to, to draw.protected classThis inner class simply paints a requested page to a given Graphics object.static enumNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intprintingMode and printingDPI let us enhance RMViewer's builtin printing.static final StringFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertPointFromShape(RMPoint aPoint, RMShape aShape) Returns a point converted from the coordinate space of the given shape to viewer coords.convertPointToShape(Point2D aPoint, RMShape aShape) Returns a point converted from viewer coords to the coordinate space of the given shape.convertRectFromShape(RMRect aRect, RMShape aShape) Returns a rect converted from the coordinate space of the given shape to viewer coords.convertRectToShape(RMRect aRect, RMShape aShape) Returns a rect converted from viewer coords to the coordinate space of the given shape.protected RMViewerInputAdapterCreates a default input adapter.protected RMShapePainterJ2DCreates the object that is actually responsible for paining shapes in the viewer.protected RMViewerShapeCreates the viewer shape.voiddocShapeRepaint(RMShape aShape) Doc listener method - called before a shape makes a visual change.voidchanges the selected page to the first page if the pageLayout is not of a continuous type.protected voidThis method repaints the total bounds of shapes that have previously been registered by shapeNeedsRepaint.Returns a java.awt.print.Book, suitable for AWT printing.Returns the root shape that is the content of this viewer.intReturns the content shape's X location in viewer.intReturns the content shape's Y location in viewer.intReturns the RMDocument associated with this viewer.Returns the bounds of the viewer document.booleanReturns whether or not the gutter, page background & drop shadow get drawn.getHoverShape(String aString) Returns a hover shape for given something.Returns the input adapter for the viewer (handles mouse and keyboard input).floatReturns the bounds of the viewer document's selected page.intReturns the page count.intbooleanReturns whether we paint frame rate.Returns the phantom pane (creating, if necessary).Returns the optimal size of the viewer.protected DimensionReturns the preferred size of the viewer ignoring ZoomFactor.protected DimensiongetPrefSize(float aScale) Returns the preferred size of the viewer scaled to a given zoom factor.intintgetRepaintBoundsForShape(RMShape aShape) Returns the bounds for a given shape in the viewer.intgetScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) booleanbooleanScrollable methods.intgetScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Returns the currently selected page shape.intReturns the index of the current visible document page.Returns the document shape for given name.getShapeAtPoint(Point2D aPoint, boolean goDeep) Returns the first shape hit by the given point.Returns the object that is actually responsible for paining shapes in the viewer.booleanReturns whether changes to shapes cause repaints.booleangetShown()Returns whether viewer was shown.Returns the source URL.getTransformFromShape(RMShape aShape) Returns the transform from given shape to viewer.Returns the undoer associated with the viewer's document.Returns the viewer shape.floatReturns the viewer's zoom factor (1 by default).floatgetZoomFactor(RMViewer.ZoomMode aMode) Returns the zoom factor for the given mode at the current viewer size.Returns zoom focus rect (just the visible rect by default, but overriden by editor to return selected shapes rect).Returns the ZoomMode (ZoomToFit, ZoomIfNeeded, ZoomToFactor).floatReturns the zoom factor to view the document at actual size taking into account the current screen resolution.booleanbooleanReturns whether viewer is really doing editing.booleanReturns whether editor is preview (or viewer) mode.booleanbooleanbooleanReturns whether viewer is set to ZoomToFactor.voidlastPage()changes the selected page to the last page if the pageLayout is not of a continuous type.protected voidmouseDragged(MouseEvent anEvent) Handle mouse dragged event.protected voidmouseMoved(MouseEvent anEvent) Handle mouse moved event.protected voidmousePressed(MouseEvent anEvent) Handle mouse pressed event.protected voidmouseReleased(MouseEvent anEvent) Handle mouse released event.voidpageBack()Selects the previous page based on the page layout.voidSelects the next page based on the page layout.protected voidpaintBackground(Graphics2D aGrfx) Paints the background.voidpaintComponent(Graphics aGraphics) Overrides JComponent implementation to paint viewer shapes and page, margin, grid, etc.voidperformActionURLClick(String aURL) Viewer callback - called when shape with URL is clicked (opens URL).voidplay()Starts any animation viewer might have.voidprint()This method tells the RMViewer to print by running the print dialog (configured to the default printer).voidThis method tells the RMViewer to print to the printer with the given printer name (use null for default printer).protected voidprocessKeyEvent(KeyEvent anEvent) Handle key events.protected voidprocessMouseEvent(MouseEvent anEvent) Handle mouse events.protected voidprocessMouseMotionEvent(MouseEvent anEvent) Handle mouse motion eventsprotected voidprocessMouseWheelEvent(MouseWheelEvent anEvent) Handle mouse wheel events.voidpropertyChange(PropertyChangeEvent anEvent) PropertyChangeListener method - called by document.voidrepaint(Rectangle2D aRect) Requests a repaint for the area represented by the given rect.voidRuns a dialog panel to request a percentage zoom (which is then set with setZoomFactor).voidsetBounds(int x, int y, int w, int h) Overrides to update ZoomFactor if dynamic.voidsetCollate(boolean collate) voidsetContent(RMParentShape aShape) Sets the root shape that is the content of this viewer.voidsetContent(Object aSource) Sets the content from any source.voidsetCopies(int copies) voidsetInputAdapter(RMViewerInputAdapter anInputAdapter) Sets the input adapter for the viewer (handles mouse and keyboard input).voidsetPageOrientation(int pageOrientation) voidsetPaintFrameRate(boolean aValue) Sets whether we paint frame rate.voidsetPrintBothSides(boolean printBothSides) voidsetPrintingDPI(int printingDPI) voidsetPrintingMode(int printingMode) voidsetSelectedPageIndex(int anIndex) Sets the page of viewer's document that is visible (by index).voidsetShapeRepaintEnabled(boolean aFlag) Sets whether changes to shapes cause repaints.protected voidsetShown(boolean aValue) Sets whether viewer was shown.voidsetUseAutoLandscape(boolean useAutoLandscape) voidsetZoomFactor(float aFactor) Sets the viewer's zoom factor (1 for 100%).protected voidsetZoomFactorImpl(float aFactor) Sets the viewer's zoom factor (1 for 100%) and mode.voidsetZoomMode(RMViewer.ZoomMode aZoomMode) Sets the ZoomMode.voidSets the zoom to fit factor, based on the current zoom mode.voidstop()Stops any animation viewer might have.booleanReturns whether undos exist in the viewer's documents's undoer (convenience).voidundoerSetUndoTitle(String aTitle) Sets the title of the next registered undo in the viewer's documents's undoer (convenience).protected voidCalled when viewer is hidden.protected voidCalled when viewer is shown.voidSets the viewer's zoom to its previous value.Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
ZOOM_CHANGE
- See Also:
-
PRINT_MODE_VECTOR
public static final int PRINT_MODE_VECTORprintingMode and printingDPI let us enhance RMViewer's builtin printing.- Since:
- 7.8.0
- See Also:
-
PRINT_MODE_RASTER
public static final int PRINT_MODE_RASTER- See Also:
-
Content_Prop
- See Also:
-
-
Constructor Details
-
RMViewer
public RMViewer()Creates a new RMViewer with an empty document in it.
-
-
Method Details
-
getViewerShape
Returns the viewer shape. -
createViewerShape
Creates the viewer shape. -
getContent
Returns the root shape that is the content of this viewer. -
setContent
Sets the root shape that is the content of this viewer. -
setContent
Sets the content from any source. -
getDocument
Returns the RMDocument associated with this viewer. -
getSourceURL
Returns the source URL. -
isEditing
public boolean isEditing()Returns whether viewer is really doing editing. -
isPreview
public boolean isPreview()Returns whether editor is preview (or viewer) mode. -
getPageCount
public int getPageCount()Returns the page count. -
getSelectedPage
Returns the currently selected page shape. -
getSelectedPageIndex
public int getSelectedPageIndex()Returns the index of the current visible document page. -
setSelectedPageIndex
public void setSelectedPageIndex(int anIndex) Sets the page of viewer's document that is visible (by index). -
pageForward
public void pageForward()Selects the next page based on the page layout. This will adjust the increment for page changes based on the number of pages in the view resulting in stepping a view at a time when necessary. -
pageBack
public void pageBack()Selects the previous page based on the page layout. This will adjust the increment for page changes based on the number of pages in the view resulting in stepping a view at a time when necessary. -
lastPage
public void lastPage()changes the selected page to the last page if the pageLayout is not of a continuous type. -
firstPage
public void firstPage()changes the selected page to the first page if the pageLayout is not of a continuous type. -
play
public void play()Starts any animation viewer might have. -
stop
public void stop()Stops any animation viewer might have. -
getShown
public boolean getShown()Returns whether viewer was shown. -
setShown
protected void setShown(boolean aValue) Sets whether viewer was shown. -
viewerShown
protected void viewerShown()Called when viewer is shown. -
viewerHidden
protected void viewerHidden()Called when viewer is hidden. -
getDocumentBounds
Returns the bounds of the viewer document. -
getPageBounds
Returns the bounds of the viewer document's selected page. -
getShapeAtPoint
Returns the first shape hit by the given point. -
getZoomFactor
public float getZoomFactor()Returns the viewer's zoom factor (1 by default). -
setZoomFactor
public void setZoomFactor(float aFactor) Sets the viewer's zoom factor (1 for 100%). -
setZoomFactorImpl
protected void setZoomFactorImpl(float aFactor) Sets the viewer's zoom factor (1 for 100%) and mode. -
getZoomMode
Returns the ZoomMode (ZoomToFit, ZoomIfNeeded, ZoomToFactor). -
setZoomMode
Sets the ZoomMode. -
isZoomToFactor
public boolean isZoomToFactor()Returns whether viewer is set to ZoomToFactor. -
getlastZoomFactor
public float getlastZoomFactor() -
getZoomFactor
Returns the zoom factor for the given mode at the current viewer size. -
setZoomToFitFactor
public void setZoomToFitFactor()Sets the zoom to fit factor, based on the current zoom mode. -
getZoomFocusRect
Returns zoom focus rect (just the visible rect by default, but overriden by editor to return selected shapes rect). -
getZoomToActualSizeFactor
public float getZoomToActualSizeFactor()Returns the zoom factor to view the document at actual size taking into account the current screen resolution. -
zoomToggleLast
public void zoomToggleLast()Sets the viewer's zoom to its previous value. -
runZoomPanel
public void runZoomPanel()Runs a dialog panel to request a percentage zoom (which is then set with setZoomFactor). -
setBounds
public void setBounds(int x, int y, int w, int h) Overrides to update ZoomFactor if dynamic. -
getContentX
public int getContentX()Returns the content shape's X location in viewer. -
getContentY
public int getContentY()Returns the content shape's Y location in viewer. -
convertPointFromShape
Returns a point converted from the coordinate space of the given shape to viewer coords. -
convertPointToShape
Returns a point converted from viewer coords to the coordinate space of the given shape. -
convertRectFromShape
Returns a rect converted from the coordinate space of the given shape to viewer coords. -
convertRectToShape
Returns a rect converted from viewer coords to the coordinate space of the given shape. -
getTransformFromShape
Returns the transform from given shape to viewer. -
repaint
Requests a repaint for the area represented by the given rect. -
getShapePainter
Returns the object that is actually responsible for paining shapes in the viewer. -
createShapePainter
Creates the object that is actually responsible for paining shapes in the viewer. -
getDrawsBackground
public boolean getDrawsBackground()Returns whether or not the gutter, page background & drop shadow get drawn. -
paintComponent
Overrides JComponent implementation to paint viewer shapes and page, margin, grid, etc.- Overrides:
paintComponentin classJComponent
-
paintBackground
Paints the background. -
getInputAdapter
Returns the input adapter for the viewer (handles mouse and keyboard input). -
setInputAdapter
Sets the input adapter for the viewer (handles mouse and keyboard input). -
createInputAdapter
Creates a default input adapter. -
processMouseEvent
Handle mouse events.- Overrides:
processMouseEventin classJComponent
-
processMouseMotionEvent
Handle mouse motion events- Overrides:
processMouseMotionEventin classJComponent
-
processMouseWheelEvent
Handle mouse wheel events.- Overrides:
processMouseWheelEventin classComponent
-
processKeyEvent
Handle key events.- Overrides:
processKeyEventin classJComponent
-
mousePressed
Handle mouse pressed event. -
mouseDragged
Handle mouse dragged event. -
mouseReleased
Handle mouse released event. -
mouseMoved
Handle mouse moved event. -
performActionURLClick
Viewer callback - called when shape with URL is clicked (opens URL). -
getHoverShape
Returns a hover shape for given something. -
getPreferredSize
Returns the optimal size of the viewer.- Overrides:
getPreferredSizein classJComponent
-
getPrefSize
Returns the preferred size of the viewer ignoring ZoomFactor. -
getPrefSize
Returns the preferred size of the viewer scaled to a given zoom factor. -
getScrollableTracksViewportWidth
public boolean getScrollableTracksViewportWidth()Scrollable methods.- Specified by:
getScrollableTracksViewportWidthin interfaceScrollable
-
getScrollableTracksViewportHeight
public boolean getScrollableTracksViewportHeight()- Specified by:
getScrollableTracksViewportHeightin interfaceScrollable
-
getScrollableBlockIncrement
- Specified by:
getScrollableBlockIncrementin interfaceScrollable
-
getScrollableUnitIncrement
- Specified by:
getScrollableUnitIncrementin interfaceScrollable
-
getPreferredScrollableViewportSize
- Specified by:
getPreferredScrollableViewportSizein interfaceScrollable
-
getUndoer
Returns the undoer associated with the viewer's document. -
undoerSetUndoTitle
Sets the title of the next registered undo in the viewer's documents's undoer (convenience). -
undoerHasUndos
public boolean undoerHasUndos()Returns whether undos exist in the viewer's documents's undoer (convenience). -
getShapeRepaintEnabled
public boolean getShapeRepaintEnabled()Returns whether changes to shapes cause repaints. -
setShapeRepaintEnabled
public void setShapeRepaintEnabled(boolean aFlag) Sets whether changes to shapes cause repaints. -
docShapeRepaint
Doc listener method - called before a shape makes a visual change. Provides a mechanism to efficiently repaint the portion of the viewer that currently displays a shape. Registers the area covered by the shape now and at event end, to efficiently repaint shapes in transition as well. -
flushShapeRepaints
protected void flushShapeRepaints()This method repaints the total bounds of shapes that have previously been registered by shapeNeedsRepaint. This should only be used internally. -
getRepaintBoundsForShape
Returns the bounds for a given shape in the viewer. Subclasses can override this to account for things like different bounds for selected shapes. -
propertyChange
PropertyChangeListener method - called by document.- Specified by:
propertyChangein interfacePropertyChangeListener
-
getShape
Returns the document shape for given name. -
getPhantomPane
Returns the phantom pane (creating, if necessary). -
getPaintFrameRate
public boolean getPaintFrameRate()Returns whether we paint frame rate. -
setPaintFrameRate
public void setPaintFrameRate(boolean aValue) Sets whether we paint frame rate. -
print
This method tells the RMViewer to print by running the print dialog (configured to the default printer).- Throws:
PrinterException- Thrown when an error that causes the print job to abort occurs.Modified in 7.8.0
-
print
This method tells the RMViewer to print to the printer with the given printer name (use null for default printer). It also offers an option to run the printer dialog.- Parameters:
aPrinterName- The name returned by PrintServiceLookup.lookupPrintServices, or null for default printerrunPanel- True if the print dialog should be shown.- Throws:
PrinterException- Thrown when an error that causes the print job to abort occurs.Modified in 7.8.0
-
getPrintingMode
public int getPrintingMode()- Since:
- 7.8.0
-
setPrintingMode
public void setPrintingMode(int printingMode) - Parameters:
printingMode- Allowable values are the constants PRINT_MODE_RASTER and PRINT_MODE_VECTOR. Other values will give undefined results.- Since:
- 7.8.0
-
getPrintingDPI
public int getPrintingDPI()- Since:
- 7.8.0
-
setPrintingDPI
public void setPrintingDPI(int printingDPI) - Parameters:
printingDPI- Must be a positive integer- Since:
- 7.8.0
-
getCopies
public int getCopies()- Since:
- 7.8.0
-
setCopies
public void setCopies(int copies) - Parameters:
copies- Must be a positive integer- Since:
- 7.8.0
-
isUseAutoLandscape
public boolean isUseAutoLandscape()- Since:
- 7.8.0
-
setUseAutoLandscape
public void setUseAutoLandscape(boolean useAutoLandscape) - Since:
- 7.8.0
-
getPageOrientation
public int getPageOrientation()- Since:
- 7.8.0
-
setPageOrientation
public void setPageOrientation(int pageOrientation) - Since:
- 7.8.0
-
isPrintBothSides
public boolean isPrintBothSides()- Since:
- 7.8.0
-
setPrintBothSides
public void setPrintBothSides(boolean printBothSides) - Since:
- 7.8.0
-
isCollate
public boolean isCollate()- Since:
- 7.8.0
-
setCollate
public void setCollate(boolean collate) - Since:
- 7.8.0
-
getBook
Returns a java.awt.print.Book, suitable for AWT printing.Changes in 7.8.0: made the printable used based on printing mode
-