net.sourceforge.barbecue.env
Class HeadlessEnvironment

java.lang.Object
  extended bynet.sourceforge.barbecue.env.HeadlessEnvironment
All Implemented Interfaces:
Environment

public final class HeadlessEnvironment
extends java.lang.Object
implements Environment

An environment used when the machine running barbecue is in headless mode, ie no monitor or windowing system.

Author:
Ian Bourke

Field Summary
static int DEFAULT_RESOLUTION
          The default output resolution (in DPI) for barcodes in headless mode.
 
Constructor Summary
HeadlessEnvironment()
           
 
Method Summary
 java.awt.Font getDefaultFont()
          Returns the default font for the environment.
 int getResolution()
          Returns the environment determined resolution for outputting barcodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RESOLUTION

public static final int DEFAULT_RESOLUTION
The default output resolution (in DPI) for barcodes in headless mode.

See Also:
Constant Field Values
Constructor Detail

HeadlessEnvironment

public HeadlessEnvironment()
Method Detail

getResolution

public int getResolution()
Returns the environment determined resolution for outputting barcodes.

Specified by:
getResolution in interface Environment
Returns:
The resolution for the environment

getDefaultFont

public java.awt.Font getDefaultFont()
Returns the default font for the environment.

Specified by:
getDefaultFont in interface Environment
Returns:
null


Copyright © 2003-2007 barbecue.sourceforge.net. All Rights Reserved.