com.tensegrity.gui.printing
Class PrintConfiguration

java.lang.Object
  extended bycom.tensegrity.gui.printing.PrintConfiguration

public class PrintConfiguration
extends java.lang.Object

The PrintConfiguration class manages different configuration settings for printing inside the Tensegrity API. It provides methods to register and obtain an instance of PrintContext, which defines those settings.

Version:
$Id: PrintConfiguration.java,v 1.5 2006/05/16 15:01:40 BurkhardWick Exp $
Author:
Arnd Houben

Field Summary
static double PRINTER_SCALE
          This is a dummy scaling factor that is applied when printing graphs to ensure a minimum resolution when rendering curves
static boolean USE_NEW_PRINT_SCALING
          USE_NEW_PRINT_SCALING: Set this to true, to enable the new print scaling which enhances the rendering of curves
 
Method Summary
static PrintContext getPrintContext()
          Returns the currently registered PrintContext instance.
static boolean isPrintContextAvailable()
          Returns a boolean that indicates whether a PrintContext has been assigned to the PrintConfiguration or not.
static void registerPrintContext(PrintContext pc)
          Registers a PrintContext instance which should be used for printing operations inside the Tensegrity API.
static void unregisterPrintContext()
          Unregisters the currently registered PrintContext instance, so that it cannot be used within the Tensegrity API for printing operations afterwards.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_NEW_PRINT_SCALING

public static boolean USE_NEW_PRINT_SCALING
USE_NEW_PRINT_SCALING: Set this to true, to enable the new print scaling which enhances the rendering of curves


PRINTER_SCALE

public static final double PRINTER_SCALE
This is a dummy scaling factor that is applied when printing graphs to ensure a minimum resolution when rendering curves

See Also:
Constant Field Values
Method Detail

registerPrintContext

public static final void registerPrintContext(PrintContext pc)
Registers a PrintContext instance which should be used for printing operations inside the Tensegrity API.

Parameters:
pc - a PrintContext instance

unregisterPrintContext

public static final void unregisterPrintContext()
Unregisters the currently registered PrintContext instance, so that it cannot be used within the Tensegrity API for printing operations afterwards.


isPrintContextAvailable

public static final boolean isPrintContextAvailable()
Returns a boolean that indicates whether a PrintContext has been assigned to the PrintConfiguration or not.

Returns:
boolean a flag indicating whether a PrintContext has been asssigned or not

getPrintContext

public static final PrintContext getPrintContext()
Returns the currently registered PrintContext instance.

Returns:
the currently registered PrintContext instance


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.