LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.print
Class LyPrintManager

java.lang.Object
  extended by leon.view.print.LyPrintManager
Direct Known Subclasses:
LySwingPrintManager

public abstract class LyPrintManager
extends java.lang.Object


Field Summary
static java.lang.String __VERSION
           
static int BOTTOM_MARGIN
           
static boolean DEBUG_TO_SCREEN
          Dump the result to the screen, not to printer.
static int LEFT_MARGIN
           
static int PAGE_HEIGHT
           
static int PAGE_WIDTH
           
static int PRINT_TABLE_FONT_REDUCTION
          Reduce the font size in printing compared to screen.
static int RIGHT_MARGIN
           
static int TOP_MARGIN
           
 
Constructor Summary
LyPrintManager(LyEnvironment environment, LyPrintDataInterface printDataInterface, java.util.Properties properties)
          Default constructor.
 
Method Summary
abstract  void end()
          End of printing.
 LyEnvironment getEnvironment()
          Gets environment;
 java.lang.String getFormat()
          Gets printing format.
 java.lang.String getSupportName()
          Gets support name (either printer name or file name if printing is done in a file).
 boolean isInFile()
          Checks if printing is done in a file.
abstract  int print(java.lang.Object object, java.util.Vector<java.lang.Object> fields, int fontReduction, int startPage)
           
abstract  void print(java.util.Vector<LyObject> objects, java.util.Vector<java.lang.Object> fields, int fontReduction)
          Print an objects list with its given list of fields.
abstract  boolean wasCancelled()
          Tests if job was cencelled.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

PRINT_TABLE_FONT_REDUCTION

public static int PRINT_TABLE_FONT_REDUCTION
Reduce the font size in printing compared to screen.


LEFT_MARGIN

public static int LEFT_MARGIN

TOP_MARGIN

public static int TOP_MARGIN

RIGHT_MARGIN

public static int RIGHT_MARGIN

BOTTOM_MARGIN

public static int BOTTOM_MARGIN

DEBUG_TO_SCREEN

public static boolean DEBUG_TO_SCREEN
Dump the result to the screen, not to printer.


PAGE_WIDTH

public static int PAGE_WIDTH

PAGE_HEIGHT

public static int PAGE_HEIGHT
Constructor Detail

LyPrintManager

public LyPrintManager(LyEnvironment environment,
                      LyPrintDataInterface printDataInterface,
                      java.util.Properties properties)
Default constructor.

Method Detail

isInFile

public boolean isInFile()
Checks if printing is done in a file.

Returns:
True if printing is done in a file, false otherwise.

getSupportName

public java.lang.String getSupportName()
Gets support name (either printer name or file name if printing is done in a file).

Returns:
Support name.

getFormat

public java.lang.String getFormat()
Gets printing format.

Returns:
Print format.

getEnvironment

public LyEnvironment getEnvironment()
Gets environment;

Returns:
Environment of the print manager.

wasCancelled

public abstract boolean wasCancelled()
Tests if job was cencelled.

Returns:
True if cancelled, false otherwise.

end

public abstract void end()
End of printing.


print

public abstract int print(java.lang.Object object,
                          java.util.Vector<java.lang.Object> fields,
                          int fontReduction,
                          int startPage)
Parameters:
object - Printed object.
fields - List of printed fields
fontReduction - Font reduction factor.
startPage - Page number.
Returns:
New page count after printing.

print

public abstract void print(java.util.Vector<LyObject> objects,
                           java.util.Vector<java.lang.Object> fields,
                           int fontReduction)
Print an objects list with its given list of fields.

Parameters:
objects - List of printed objects.
fields - List of printed fields
fontReduction - Font reduction factor.
startPage - Page number.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com