|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.printing.PrintConfiguration
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.
| 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 |
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
public static final double PRINTER_SCALE
| Method Detail |
public static final void registerPrintContext(PrintContext pc)
PrintContext instance which should be used
for printing operations inside the Tensegrity API.
pc - a PrintContext instancepublic static final void unregisterPrintContext()
PrintContext instance,
so that it cannot be used within the Tensegrity API for
printing operations afterwards.
public static final boolean isPrintContextAvailable()
boolean that indicates whether a
PrintContext has been assigned to the
PrintConfiguration or not.
PrintContext
has been asssigned or notpublic static final PrintContext getPrintContext()
PrintContext instance.
PrintContext instance
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||