com.swfm.mica.sys
Class MiPDFDriver
java.lang.Object
java.awt.Graphics
com.swfm.mica.sys.MiPDFDriver
- All Implemented Interfaces:
- MiiPrintDriver, MiiPropertied, MiiTypes
- public class MiPDFDriver
- extends java.awt.Graphics
- implements MiiTypes, MiiPrintDriver
- Version:
- %I% %G%
- Author:
- Michael L. Davis
|
Method Summary |
void |
clearRect(int x,
int y,
int width,
int height)
|
void |
clipRect(int x,
int y,
int width,
int height)
|
boolean |
configure(java.lang.String filename,
int dotsPerInch,
java.lang.String standardPaperSize,
java.lang.String portraitOrLandscape,
java.lang.String colorOutputScheme,
int totalNumberOfPages)
|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
|
java.awt.Graphics |
create()
|
void |
dispose()
|
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
|
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
|
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int width,
int height)
|
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawRect(int x,
int y,
int width,
int height)
|
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
void |
drawString(java.text.AttributedCharacterIterator iterator,
int x,
int y)
|
void |
drawString(java.lang.String str,
int x,
int y)
|
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
fillOval(int x,
int y,
int width,
int height)
|
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
fillRect(int x,
int y,
int width,
int height)
|
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
java.awt.Shape |
getClip()
|
java.awt.Rectangle |
getClipBounds()
public Rectangle getClipRect()
{
return(currentClipRect);
} |
java.awt.Color |
getColor()
|
MiBounds |
getDeviceBounds()
|
java.awt.Font |
getFont()
|
java.awt.FontMetrics |
getFontMetrics(java.awt.Font f)
|
java.awt.Graphics |
getGraphics()
|
MiMargins |
getMargins()
|
MiPaperSize |
getPaperSize()
|
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. |
void |
init()
|
void |
newPage()
|
void |
scale(double sx,
double sy)
|
void |
setBoundsOfGraphicalContent(MiBounds bounds)
|
void |
setClip(int x,
int y,
int width,
int height)
|
void |
setClip(java.awt.Shape shape)
|
void |
setColor(java.awt.Color color)
|
boolean |
setColorOutputScheme(java.lang.String scheme)
|
void |
setDotsPerInch(int dotsPerInch)
|
void |
setFont(java.awt.Font font)
|
void |
setLineStyle(int style)
|
void |
setLineWidth(int lwidth)
|
boolean |
setPageOrientation(java.lang.String orientation)
|
void |
setPaintMode()
|
void |
setPaperSize(MiPaperSize size)
|
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given
value. |
void |
setXORMode(java.awt.Color c1)
|
void |
termin()
|
void |
translate(double x,
double y)
|
void |
translate(int x,
int y)
|
| Methods inherited from class java.awt.Graphics |
create, draw3DRect, drawBytes, drawChars, drawPolygon, fill3DRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MiPDFDriver
public MiPDFDriver()
getGraphics
public java.awt.Graphics getGraphics()
- Specified by:
getGraphics 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
create
public java.awt.Graphics create()
getDeviceBounds
public MiBounds getDeviceBounds()
- Specified by:
getDeviceBounds in interface MiiPrintDriver
getMargins
public MiMargins getMargins()
- Specified by:
getMargins in interface MiiPrintDriver
init
public void init()
- Specified by:
init in interface MiiPrintDriver
termin
public void termin()
- Specified by:
termin in interface MiiPrintDriver
setBoundsOfGraphicalContent
public void setBoundsOfGraphicalContent(MiBounds bounds)
- Specified by:
setBoundsOfGraphicalContent in interface MiiPrintDriver
setPaperSize
public void setPaperSize(MiPaperSize size)
getPaperSize
public MiPaperSize getPaperSize()
setDotsPerInch
public void setDotsPerInch(int dotsPerInch)
setPageOrientation
public boolean setPageOrientation(java.lang.String orientation)
setColorOutputScheme
public boolean setColorOutputScheme(java.lang.String scheme)
newPage
public void newPage()
- Specified by:
newPage in interface MiiPrintDriver
setLineStyle
public void setLineStyle(int style)
setLineWidth
public void setLineWidth(int lwidth)
scale
public void scale(double sx,
double sy)
translate
public void translate(double x,
double y)
translate
public void translate(int x,
int y)
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color color)
setPaintMode
public void setPaintMode()
setXORMode
public void setXORMode(java.awt.Color c1)
getFont
public java.awt.Font getFont()
setFont
public void setFont(java.awt.Font font)
getFontMetrics
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
getClip
public java.awt.Shape getClip()
getClipBounds
public java.awt.Rectangle getClipBounds()
- public Rectangle getClipRect()
{
return(currentClipRect);
}
setClip
public void setClip(java.awt.Shape shape)
setClip
public void setClip(int x,
int y,
int width,
int height)
clipRect
public void clipRect(int x,
int y,
int width,
int height)
copyArea
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
fillRect
public void fillRect(int x,
int y,
int width,
int height)
drawRect
public void drawRect(int x,
int y,
int width,
int height)
clearRect
public void clearRect(int x,
int y,
int width,
int height)
drawRoundRect
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
fillRoundRect
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawOval
public void drawOval(int x,
int y,
int width,
int height)
fillOval
public void fillOval(int x,
int y,
int width,
int height)
drawArc
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
fillArc
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
drawPolyline
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolygon
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
fillPolygon
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
drawString
public void drawString(java.lang.String str,
int x,
int y)
drawString
public void drawString(java.text.AttributedCharacterIterator iterator,
int x,
int y)
drawImage
public boolean drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
drawImage
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
drawImage
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
drawImage
public boolean drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
drawImage
public boolean drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
drawImage
public boolean drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
dispose
public void dispose()
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