com.swfm.mica.sys
Class MiJpgPrintDriver

java.lang.Object
  extended bycom.swfm.mica.sys.MiJpgPrintDriver
All Implemented Interfaces:
MiiNames, MiiPrintDriver, MiiPropertied, MiiPropertyTypes, MiiTypes

public class MiJpgPrintDriver
extends java.lang.Object
implements MiiPrintDriver, MiiNames, MiiPropertyTypes

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
       
Constructor Summary
MiJpgPrintDriver()
           
MiJpgPrintDriver(int width, int height)
           
 
Method Summary
 boolean configure(java.lang.String filename, int dotsPerInch, java.lang.String standardPaperSize, java.lang.String portraitOrLandscape, java.lang.String colorOutputScheme, int totalNumberOfPages)
           
 MiBounds getDeviceBounds()
           
 java.awt.Graphics getGraphics()
           
 int getHeight()
           
 MiMargins getMargins()
           
 MiPropertyDescriptions getPropertyDescriptions()
          Gets the descriptions of all of the properties.
 java.lang.String getPropertyValue(java.lang.String name)
          Gets the textual value of the property with the given name.
 int getWidth()
           
 void init()
           
 void newPage()
           
 void setBoundsOfGraphicalContent(MiBounds contentBounds)
           
 void setHeight(int h)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
          Sets the property with the given name to the given value.
 void setWidth(int w)
           
 void termin()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiJpgPrintDriver

public MiJpgPrintDriver()

MiJpgPrintDriver

public MiJpgPrintDriver(int width,
                        int height)
Method Detail

setWidth

public void setWidth(int w)

getWidth

public int getWidth()

setHeight

public void setHeight(int h)

getHeight

public int getHeight()

getGraphics

public java.awt.Graphics getGraphics()
Specified by:
getGraphics in interface MiiPrintDriver

getDeviceBounds

public MiBounds getDeviceBounds()
Specified by:
getDeviceBounds in interface MiiPrintDriver

getMargins

public MiMargins getMargins()
Specified by:
getMargins in interface MiiPrintDriver

setBoundsOfGraphicalContent

public void setBoundsOfGraphicalContent(MiBounds contentBounds)
Specified by:
setBoundsOfGraphicalContent in interface MiiPrintDriver

init

public void init()
Specified by:
init in interface MiiPrintDriver

termin

public void termin()
Specified by:
termin in interface MiiPrintDriver

newPage

public void newPage()
Specified by:
newPage in interface MiiPrintDriver

configure

public boolean configure(java.lang.String filename,
                         int dotsPerInch,
                         java.lang.String standardPaperSize,
                         java.lang.String portraitOrLandscape,
                         java.lang.String colorOutputScheme,
                         int totalNumberOfPages)
Specified by:
configure in interface MiiPrintDriver

getPropertyDescriptions

public MiPropertyDescriptions getPropertyDescriptions()
Gets the descriptions of all of the properties. These can be used to see if an property is different from the default value or if a proposed value is valid or to get a list of all of the valid values of a property.

Specified by:
getPropertyDescriptions in interface MiiPropertied
Returns:
the list of property descriptions

setPropertyValue

public void setPropertyValue(java.lang.String name,
                             java.lang.String value)
Sets the property with the given name to the given value.

Specified by:
setPropertyValue in interface MiiPropertied
Parameters:
name - the name of an attribute
value - the value of the attribute

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String name)
Gets the textual value of the property with the given name. If the value is null then MiiTypes.Mi_NULL_VALUE_NAME is returned.

Specified by:
getPropertyValue in interface MiiPropertied
Parameters:
name - the name of a property
Returns:
the string value of the property