public class TLspViewPrintSettings extends Object
ILspView
.
Print settings can be created using the supplied TLspViewPrintSettings.Builder.
Note that in most cases, the recommended way to print the contents of a view is using
TLspViewComponentPrintable, which does
not require the user to build a TLspViewPrintSettings
object manually.ALspAWTView.print(java.awt.Graphics2D, TLspViewPrintSettings)
,
TLspViewComponentPrintable
Modifier and Type | Class and Description |
---|---|
static class |
TLspViewPrintSettings.Builder
Builder for TLspViewPrintSettings objects.
|
Modifier and Type | Method and Description |
---|---|
double |
getFeatureScale()
Returns the feature scale to use during printing.
|
Rectangle |
getPrintBounds()
Returns the bounds of the area into which the view is to be printed.
|
ILcdStatusListener |
getStatusListener()
Returns a status listener that will be notified of progress during a
printing operations.
|
static TLspViewPrintSettings.Builder |
newBuilder()
Creates a new builder for print settings.
|
public static TLspViewPrintSettings.Builder newBuilder()
public Rectangle getPrintBounds()
Graphics
to which the
printing will be done. Transformations on the Graphics
do not need
to be taken into account. If, for example, a print area of 1000x1000
pixels is specified for a Graphics
which has been scaled by a
factor 2, the resolution of the printed output will be 2000x2000 pixels.
If the aspect ratio of this area does not match the current aspect ratio
of the view, the view will expand as needed to fill the print area. While
doing so, it will ensure that at least the geographic area which was
visible in the view on screen will also be visible in the print.
If no bounds are specified, the bounds of the view are used (i.e.
[0, 0, width, height]).public double getFeatureScale()
public ILcdStatusListener getStatusListener()