Constructor and Description |
---|
FactoryPrint()
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convertToString(java.lang.Object obj)
Deprecated.
Converts the argument to a String.
|
protected abstract Print |
createPrint()
Deprecated.
Compose and return a Print appropriate for the concrete class.
|
protected EmptyPrint |
empty()
Deprecated.
Constructs and returns an EmptyPrint of size (0, 0).
|
protected EmptyPrint |
empty(int width,
int height)
Deprecated.
Constructs and returns an EmptyPrint with the given size.
|
protected int |
getDefaultGridSpacing()
Deprecated.
Returns the default spacing, in points, for GridPrints.
|
protected org.eclipse.swt.graphics.Point |
getDefaultImageDPI()
Deprecated.
Returns the default image DPI.
|
protected org.eclipse.swt.graphics.FontData |
getDefaultLabelFont()
Deprecated.
Returns the default label font.
|
protected org.eclipse.swt.graphics.FontData |
getDefaultTextFont()
Deprecated.
Returns the default text font.
|
protected org.eclipse.swt.graphics.ImageData |
getImageData(java.lang.String filename)
Deprecated.
Creates and returns an ImageData using the given filename.
|
Print |
getPrint()
Deprecated.
Returns the Print created by this factory.
|
protected GridPrint |
grid(java.lang.String columns)
Deprecated.
Returns a GridPrint with columns using the given argument.
|
protected GridPrint |
grid(java.lang.String columns,
int spacing)
Deprecated.
Returns a GridPrint with the given columns and spacing.
|
protected ImagePrint |
image(org.eclipse.swt.graphics.ImageData imageData)
Deprecated.
Returns an ImagePrint with the given image data, using the default DPI.
|
protected ImagePrint |
image(org.eclipse.swt.graphics.ImageData imageData,
org.eclipse.swt.graphics.Point dpi)
Deprecated.
Returns an ImagePrint with the given image data and DPI.
|
protected ImagePrint |
image(java.io.InputStream is)
Deprecated.
Returns an ImagePrint with the given image, and the default DPI.
|
protected ImagePrint |
image(java.io.InputStream is,
org.eclipse.swt.graphics.Point dpi)
Deprecated.
Returns an ImagePrint with the given image and DPI.
|
protected ImagePrint |
image(java.lang.String filename)
Deprecated.
Returns an ImagePrint with the given image, and the default DPI.
|
protected ImagePrint |
image(java.lang.String filename,
org.eclipse.swt.graphics.Point dpi)
Deprecated.
Returns an ImagePrint with the given image and DPI.
|
PrintIterator |
iterator(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc)
Deprecated.
Returns a PrintIterator for the Print returned from a call to
createPrint().
|
protected TextPrint |
label(java.lang.String text)
Deprecated.
Returns a TextPrint with the given text.
|
protected TextPrint |
label(java.lang.String text,
int align)
Deprecated.
Returns a TextPrint with the given text and alignment.
|
protected LayerPrint |
layer()
Deprecated.
Constructs and returns a new LayerPrint.
|
protected TextPrint |
text(java.lang.Object obj)
Deprecated.
Returns a TextPrint whose text represents the given parameter.
|
protected TextPrint |
text(java.lang.Object obj,
int align)
Deprecated.
Returns a TextPrint whose text represents the given parameter.
|
protected TextPrint |
text(java.lang.String text)
Deprecated.
Returns a TextPrint with the given text.
|
protected TextPrint |
text(java.lang.String text,
int align)
Deprecated.
Returns a TextPrint with the given text and alignment.
|
public Print getPrint()
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
protected abstract Print createPrint()
protected java.lang.String convertToString(java.lang.Object obj)
obj
- the object to convert.protected org.eclipse.swt.graphics.FontData getDefaultTextFont()
protected org.eclipse.swt.graphics.FontData getDefaultLabelFont()
protected int getDefaultGridSpacing()
protected TextPrint text(java.lang.Object obj)
obj
- the object that the returned TextPrint will represent.convertToString(Object)
,
getDefaultTextFont()
protected TextPrint text(java.lang.Object obj, int align)
obj
- the object that the returned TextPrint will represent.align
- the alignment property for the returned TextPrint.convertToString(Object)
,
getDefaultTextFont()
protected TextPrint text(java.lang.String text)
text
- the text property for the returned TextPrintgetDefaultTextFont()
protected TextPrint text(java.lang.String text, int align)
text
- the text property for the returned TextPrintalign
- the alignment property for the returned TextPrint.convertToString(Object)
,
getDefaultTextFont()
protected TextPrint label(java.lang.String text)
text
- the text property for the returned TextPrintconvertToString(Object)
,
getDefaultLabelFont()
protected TextPrint label(java.lang.String text, int align)
text
- the text property for the returned TextPrintalign
- the alignment property for the returned TextPrint.convertToString(Object)
,
getDefaultLabelFont()
protected org.eclipse.swt.graphics.Point getDefaultImageDPI()
protected org.eclipse.swt.graphics.ImageData getImageData(java.lang.String filename)
filename
- the filename of the image to load.protected ImagePrint image(java.lang.String filename)
filename
- the filename of the image to load.getDefaultImageDPI()
protected ImagePrint image(java.lang.String filename, org.eclipse.swt.graphics.Point dpi)
filename
- the filename of the image to load.dpi
- the DPI at which the image is to be printed.protected ImagePrint image(java.io.InputStream is)
is
- an input stream the image will be loaded from.protected ImagePrint image(java.io.InputStream is, org.eclipse.swt.graphics.Point dpi)
is
- an InputStream which the image will be loaded from.dpi
- the DPI the image will be printed at.protected ImagePrint image(org.eclipse.swt.graphics.ImageData imageData)
imageData
- the ImageData of the image to print.protected ImagePrint image(org.eclipse.swt.graphics.ImageData imageData, org.eclipse.swt.graphics.Point dpi)
imageData
- the ImageData of the image to print.dpi
- the DPI the image will be printed at.protected GridPrint grid(java.lang.String columns)
columns
- comma-separated list of column specs.GridColumn.parse(String)
,
getDefaultGridSpacing()
protected GridPrint grid(java.lang.String columns, int spacing)
columns
- comma-separated list of column specs.spacing
- the spacing, in points, between cells in he GridPrint.GridColumn.parse(String)
protected LayerPrint layer()
protected EmptyPrint empty()
protected EmptyPrint empty(int width, int height)
width
- the width, in points.height
- the height, in points.