public class SinglePage extends Viewport2D implements Pageable, Printable
EMPTY_GEOMETRYUNKNOWN_NUMBER_OF_PAGESNO_SUCH_PAGE, PAGE_EXISTS| Constructor and Description |
|---|
SinglePage(Project project,
BoundingBox boundingBox,
int viewWidth,
int viewHeight) |
| Modifier and Type | Method and Description |
|---|---|
Graphics2D |
getGraphics() |
int |
getNumberOfPages() |
PageFormat |
getPageFormat(int pageIndex) |
protected double |
getPixelsPerYUnit(double viewHeight,
double mapHeight) |
Printable |
getPrintable(int pageIndex) |
int |
getScreenResolution() |
boolean |
isHidden(AbstractRecordLayer layer,
LayerRecord record) |
static void |
print() |
int |
print(Graphics graphics,
PageFormat pageFormat,
int pageIndex) |
createModelToScreenTransform, createScreenToModelTransform, drawGeometry, drawText, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getGeometry, getGeometryFactory, getModelHeight, getModelHeightLength, getModelToScreenTransform, getModelUnitsPerViewUnit, getModelWidth, getModelWidthLength, getOriginX, getOriginY, getPixelsPerXUnit, getPixelsPerYUnit, getProject, getPropertyChangeSupport, getRoundedGeometry, getRoundedGeometryFactory, getScale, getScale, getScaleForUnitsPerPixel, getScales, getScreenToModelTransform, getScreenUnit, getUnitsPerPixel, getUnitsPerPixel, getViewAspectRatio, getViewHeightLength, getViewHeightPixels, getViewToModelUnit, getViewWidthLength, getViewWidthPixels, getZoomOutScale, isInitialized, render, setBoundingBox, setBoundingBoxInternal, setGeometryFactory, setInitialized, setScale, setScales, setViewHeight, setViewWidth, toDisplayValue, toDisplayValue, toModelCoordinates, toModelPoint, toModelPoint, toModelPoint, toModelPoint, toModelPoint, toModelPointRounded, toViewCoordinates, toViewPoint, toViewPoint, updatepublic SinglePage(Project project, BoundingBox boundingBox, int viewWidth, int viewHeight)
public static void print()
public Graphics2D getGraphics()
getGraphics in class Viewport2Dpublic int getNumberOfPages()
getNumberOfPages in interface Pageablepublic PageFormat getPageFormat(int pageIndex)
getPageFormat in interface Pageableprotected double getPixelsPerYUnit(double viewHeight,
double mapHeight)
getPixelsPerYUnit in class Viewport2Dpublic Printable getPrintable(int pageIndex)
getPrintable in interface Pageablepublic int getScreenResolution()
getScreenResolution in class Viewport2Dpublic boolean isHidden(AbstractRecordLayer layer, LayerRecord record)
isHidden in class Viewport2Dpublic int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
print in interface PrintablePrinterExceptionCopyright © 2015 Revolution Systems Inc.. All rights reserved.