com.swfm.mica.sys
Class MiJDKPrintDriver
java.lang.Object
com.swfm.mica.sys.MiJDKPrintDriver
- All Implemented Interfaces:
- MiiPrintDriver, MiiPropertied, MiiTypes
- public class MiJDKPrintDriver
- extends java.lang.Object
- implements MiiPrintDriver, MiiTypes
- Version:
- %I% %G%
- Author:
- Michael L. Davis
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MiJDKPrintDriver
public MiJDKPrintDriver(java.awt.Frame frame)
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 attributevalue - 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