PsDevice
Inheritance: java.lang.Object, com.aspose.page.Device, com.aspose.xps.rendering.DeviceXps
All Implemented Interfaces: com.aspose.page.IMultiPartitionDevice
public class PsDevice extends DeviceXps implements IMultiPartitionDevice
Class incapsulating PostScript composing device.
Constructors
Constructor | Description |
---|---|
PsDevice(OutputStream stream) | Creates the new instance. |
Fields
Field | Description |
---|---|
DEFAULT_SIZE | |
VERSION | Current device version. |
Methods
Method | Description |
---|---|
addOutline(int outlineLevel, String description) | Adds an outline item with the last object as its target. |
addOutline(Point2D origin, int outlineLevel, String description) | Adds an outline item with the origin point as its target. |
closePage() | Accomplishes the page. |
closePartition() | Accomplished the document partition. |
create() | Creates a new instance of the device based on this device instance. |
dispose() | Disposes this device instance. |
draw(Shape path) | Draws the specified path. |
drawArc(float x, float y, float width, float height, float startAngle, float arcAngle) | Draws an arc. |
drawImage(BufferedImage image, AffineTransform transform, Color bkg) | Draws an image with assigned transform and background. |
drawLine(float x1, float y1, float x2, float y2) | Draws a line segment. |
drawOval(float x, float y, float width, float height) | Draws an oval. |
drawPolygon(float[] xPoints, float[] yPoints, int nPoints) | Draws a polygon. |
drawPolygon(int[] xPoints, int[] yPoints, int nPoints) | Draws a polygon. |
drawPolyline(float[] xPoints, float[] yPoints, int nPoints) | Draws a polyline. |
drawPolyline(int[] xPoints, int[] yPoints, int nPoints) | Draws a polyline. |
drawRect(float x, float y, float width, float height) | Draws a rectangle. |
drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight) | Draws a round rectangle. |
drawString(String str, float x, float y) | Draws a string at the specified position. |
endDocument() | Accomplishes the document. |
equals(Object arg0) | |
fill(Shape path) | Fills the specified path. |
fillArc(float x, float y, float width, float height, float startAngle, float arcAngle) | Fills an arc. |
fillOval(float x, float y, float width, float height) | Fills an oval. |
fillPolygon(float[] xPoints, float[] yPoints, int nPoints) | Fills a polygon. |
fillPolygon(int[] xPoints, int[] yPoints, int nPoints) | Fills a polygon. |
fillRect(float x, float y, float width, float height) | Fills a rectangle. |
fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight) | Draws a round rectangle. |
getBackground() | Gets the background color. |
getCharTM() | Gets current characters transform. |
getClass() | |
getCreator() | Gets creator of resulting device output. |
getCurrentPageNumber() | Returns the absolute number of the current page within the document. |
getCurrentRelativePageNumber() | Returns the relative number of the current page within the current partition. |
getFont() | Gets the current font. |
getOpacity() | Gets the opacity. |
getOpacityMask() | Gets the brush for opacity mask. |
getPaint() | Gets the brush for filling paths. |
getProperties() | Gets device properties including metadata. |
getProperty(String key) | Gets a value of string property. |
getPropertyColor(String key) | Gets a value of color property. |
getPropertyDouble(String key) | Gets a value of double property. |
getPropertyInt(String key) | Gets a value of integer property. |
getPropertyMargins(String key) | Gets a value of margins property. |
getPropertyMatrix(String key) | Gets a value of matrix property. |
getPropertyRectangle(String key) | Gets a value of rectangle property. |
getPropertySize(String key) | Gets a value of size property. |
getSaveOptions() | Returns save options. |
getSize() | Gets the device media size. |
getStroke() | Gets the stroke for drawing paths. |
getTextRenderingMode() | Gets current text rendering mode. |
getTextStrokeWidth() | Gets current text stroke width. |
getTransform() | Returns the current transformation matrix. |
hashCode() | |
initClip() | Initializes clip of the device. |
initPageNumbers() | Initializes numbers of pages to output. |
isDirectRGB() | Indicates whether device uses direct RGB mode, that is RGB. |
isMainDocument() | |
isProperty(String key) | Gets a value of boolean property. |
notify() | |
notifyAll() | |
openPage(float width, float height) | Starts a new page with the specified width and height. |
openPage(String title) | Starts a new page with the specifies title. |
openPartition() | Starts a new document partition. |
renew() | Sets the devices to the initial state. |
renewForMerge(boolean mainDocument) | |
reset() | Resets the device. |
rotate(double theta) | Applies a clockwise rotation about the origin to the current transformation matrix. |
rotate(double theta, double x, double y) | Rotate the current transformation matrix around a point. |
scale(double x, double y) | Applies the specified scale vector to the current transformation matrix. |
setBackground(Color value) | Sets the background color. |
setCharTM(AffineTransform charTM) | Specifies characters transform. |
setClip(Shape clipPath) | Adds the specified path to the current clip path. |
setCreator(String creator) | Specifies creator of resulting device output. |
setFont(ITrFont value) | Sets the current font. |
setHyperlinkTarget(int targetPageNumber) | Sets the hyperlink with a page number as its target. |
setHyperlinkTarget(String targetUri) | Sets the hyperlink with an external URI as its target. |
setOpacity(float value) | Sets the opacity. |
setOpacityMask(Paint value) | Gets the brush for opacity mask. |
setPaint(Paint value) | Sets the brush for filling paths. |
setProperties(UserProperties props) | Specifies device properties including metadata. |
setSaveOptions(SaveOptions value) | Initializes save options. |
setSize(Dimension value) | Sets the device media size. |
setStroke(Stroke value) | Sets the stroke for drawing paths. |
setTextRenderingMode(TextRenderingMode textRenderingMode) | Specifies text rendering mode. |
setTextStrokeWidth(float textStrokeWidth) | Specifies text stroke width. |
setTransform(AffineTransform transform) | Sets the current transformation matrix. |
shear(double shx, double shy) | Applies the specified shear vector to the current transformation matrix. |
startDocument() | Starts the document. |
toString() | Returns the name of device type. |
transform(AffineTransform transform) | Multiplies the current transformation matrix by the specified Matrix . |
translate(double x, double y) | Applies the specified translation vector to the current transformation matrix. |
updatePageParameters(IMultiPageDevice device) | Updates the current page parameters. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) | |
writeComment(String comment) | Writes a comment. |
writeString(ITrFont font, String str) | Writes out string with specified font. |
PsDevice(OutputStream stream)
public PsDevice(OutputStream stream)
Creates the new instance.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | The output stream containing PostScript. |
DEFAULT_SIZE
public static final Dimension DEFAULT_SIZE
VERSION
public static String VERSION
Current device version.
addOutline(int outlineLevel, String description)
public void addOutline(int outlineLevel, String description)
Adds an outline item with the last object as its target.
Parameters:
Parameter | Type | Description |
---|---|---|
outlineLevel | int | The outline level. |
description | java.lang.String | The item description. |
addOutline(Point2D origin, int outlineLevel, String description)
public void addOutline(Point2D origin, int outlineLevel, String description)
Adds an outline item with the origin point as its target.
Parameters:
Parameter | Type | Description |
---|---|---|
origin | java.awt.geom.Point2D | The target origin. |
outlineLevel | int | The outline level. |
description | java.lang.String | The item description. |
closePage()
public void closePage()
Accomplishes the page.
closePartition()
public void closePartition()
Accomplished the document partition.
create()
public Device create()
Creates a new instance of the device based on this device instance. Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties.
Returns: Device - The new device instance.
dispose()
public void dispose()
Disposes this device instance. Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device’s graphics state ApsCanvas .
draw(Shape path)
public void draw(Shape path)
Draws the specified path.
Parameters:
Parameter | Type | Description |
---|---|---|
path | java.awt.Shape | The path to draw. |
drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)
public void drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)
Draws an arc.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of center of the arc. |
y | float | Y coordinate of center of the arc. |
width | float | A width of circumscribed rectangle. |
height | float | A height of circumscribed rectangle. |
startAngle | float | A start angle of the arc. |
arcAngle | float | An angle of the arc. |
drawImage(BufferedImage image, AffineTransform transform, Color bkg)
public void drawImage(BufferedImage image, AffineTransform transform, Color bkg)
Draws an image with assigned transform and background.
Parameters:
Parameter | Type | Description |
---|---|---|
image | java.awt.image.BufferedImage | An image to be drawn. |
transform | java.awt.geom.AffineTransform | A transform. |
bkg | java.awt.Color | A background color. |
drawLine(float x1, float y1, float x2, float y2)
public void drawLine(float x1, float y1, float x2, float y2)
Draws a line segment.
Parameters:
Parameter | Type | Description |
---|---|---|
x1 | float | X coordinate of the beginning of segment. |
y1 | float | Y coordinate of the beginning of segment. |
x2 | float | X coordinate of the end of segment. |
y2 | float | Y coordinate of the end of segment. |
drawOval(float x, float y, float width, float height)
public void drawOval(float x, float y, float width, float height)
Draws an oval.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of center of the oval. |
y | float | Y coordinate of center of the oval. |
width | float | A width of circumscribed rectangle. |
height | float | A height of circumscribed rectangle. |
drawPolygon(float[] xPoints, float[] yPoints, int nPoints)
public void drawPolygon(float[] xPoints, float[] yPoints, int nPoints)
Draws a polygon.
Parameters:
Parameter | Type | Description |
---|---|---|
xPoints | float[] | X coordinates of points. |
yPoints | float[] | Y coordinate of points. |
nPoints | int | The number of points. |
drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
Draws a polygon.
Parameters:
Parameter | Type | Description |
---|---|---|
xPoints | int[] | X coordinates of points. |
yPoints | int[] | Y coordinate of points. |
nPoints | int | The number of points. |
drawPolyline(float[] xPoints, float[] yPoints, int nPoints)
public void drawPolyline(float[] xPoints, float[] yPoints, int nPoints)
Draws a polyline.
Parameters:
Parameter | Type | Description |
---|---|---|
xPoints | float[] | X coordinates of points. |
yPoints | float[] | Y coordinate of points. |
nPoints | int | The number of points. |
drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
Draws a polyline.
Parameters:
Parameter | Type | Description |
---|---|---|
xPoints | int[] | X coordinates of points. |
yPoints | int[] | Y coordinate of points. |
nPoints | int | The number of points. |
drawRect(float x, float y, float width, float height)
public void drawRect(float x, float y, float width, float height)
Draws a rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of upper left corner of the rectangle. |
y | float | Y coordinate of upper left corner of the rectangle. |
width | float | A width of the rectangle. |
height | float | A height of the rectangle. |
drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)
public void drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)
Draws a round rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of upper left corner of the rectangle. |
y | float | Y coordinate of upper left corner of the rectangle. |
width | float | A width of the rectangle. |
height | float | A height of the rectangle. |
arcWidth | float | A width of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
arcHeight | float | A height of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
drawString(String str, float x, float y)
public void drawString(String str, float x, float y)
Draws a string at the specified position.
Parameters:
Parameter | Type | Description |
---|---|---|
str | java.lang.String | The text. |
x | float | The x-coordinate of the string position. |
y | float | The y-coordinate of the string position. |
endDocument()
public void endDocument()
Accomplishes the document.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
fill(Shape path)
public void fill(Shape path)
Fills the specified path.
Parameters:
Parameter | Type | Description |
---|---|---|
path | java.awt.Shape | The path to fill. |
fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)
public void fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)
Fills an arc.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of center of the arc. |
y | float | Y coordinate of center of the arc. |
width | float | A width of circumscribed rectangle. |
height | float | A height of circumscribed rectangle. |
startAngle | float | A start angle of the arc. |
arcAngle | float | An angle of the arc. |
fillOval(float x, float y, float width, float height)
public void fillOval(float x, float y, float width, float height)
Fills an oval.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of center of the oval. |
y | float | Y coordinate of center of the oval. |
width | float | A width of circumscribed rectangle. |
height | float | A height of circumscribed rectangle. |
fillPolygon(float[] xPoints, float[] yPoints, int nPoints)
public void fillPolygon(float[] xPoints, float[] yPoints, int nPoints)
Fills a polygon.
Parameters:
Parameter | Type | Description |
---|---|---|
xPoints | float[] | X coordinates of points. |
yPoints | float[] | Y coordinate of points. |
nPoints | int | The number of points. |
fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
Fills a polygon.
Parameters:
Parameter | Type | Description |
---|---|---|
xPoints | int[] | X coordinates of points. |
yPoints | int[] | Y coordinate of points. |
nPoints | int | The number of points. |
fillRect(float x, float y, float width, float height)
public void fillRect(float x, float y, float width, float height)
Fills a rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of upper left corner of the rectangle. |
y | float | Y coordinate of upper left corner of the rectangle. |
width | float | A width of the rectangle. |
height | float | A height of the rectangle. |
fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)
public void fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)
Draws a round rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
x | float | X coordinate of upper left corner of the rectangle. |
y | float | Y coordinate of upper left corner of the rectangle. |
width | float | A width of the rectangle. |
height | float | A height of the rectangle. |
arcWidth | float | A width of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
arcHeight | float | A height of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
getBackground()
public Color getBackground()
Gets the background color.
Returns: java.awt.Color - The background color.
getCharTM()
public AffineTransform getCharTM()
Gets current characters transform.
Returns: java.awt.geom.AffineTransform - Current characters transform.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCreator()
public String getCreator()
Gets creator of resulting device output.
Returns: java.lang.String - A creator value.
getCurrentPageNumber()
public int getCurrentPageNumber()
Returns the absolute number of the current page within the document.
Returns: int - The absolute number of the current page.
getCurrentRelativePageNumber()
public int getCurrentRelativePageNumber()
Returns the relative number of the current page within the current partition.
Returns: int - The relative number of the current page.
getFont()
public ITrFont getFont()
Gets the current font.
Returns: ITrFont - The current font.
getOpacity()
public float getOpacity()
Gets the opacity.
Returns: float - The opacity.
getOpacityMask()
public Paint getOpacityMask()
Gets the brush for opacity mask. The mask applies over Paint or Strike.
Returns: java.awt.Paint - The brush for opacity mask.
getPaint()
public Paint getPaint()
Gets the brush for filling paths.
Returns: java.awt.Paint - The brush for filling paths.
getProperties()
public UserProperties getProperties()
Gets device properties including metadata.
Returns: UserProperties - Device properties.
getProperty(String key)
public String getProperty(String key)
Gets a value of string property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: java.lang.String - The property value.
getPropertyColor(String key)
public Color getPropertyColor(String key)
Gets a value of color property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: java.awt.Color - The property value.
getPropertyDouble(String key)
public double getPropertyDouble(String key)
Gets a value of double property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: double - The property value.
getPropertyInt(String key)
public int getPropertyInt(String key)
Gets a value of integer property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: int - The property value.
getPropertyMargins(String key)
public Insets getPropertyMargins(String key)
Gets a value of margins property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: java.awt.Insets - The property value.
getPropertyMatrix(String key)
public AffineTransform getPropertyMatrix(String key)
Gets a value of matrix property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: java.awt.geom.AffineTransform - The property value.
getPropertyRectangle(String key)
public Rectangle getPropertyRectangle(String key)
Gets a value of rectangle property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: java.awt.Rectangle - The property value.
getPropertySize(String key)
public Dimension getPropertySize(String key)
Gets a value of size property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: java.awt.Dimension - The property value.
getSaveOptions()
public SaveOptions getSaveOptions()
Returns save options.
Returns: SaveOptions - The save options.
getSize()
public Dimension getSize()
Gets the device media size.
Returns: java.awt.Dimension - The device media size.
getStroke()
public Stroke getStroke()
Gets the stroke for drawing paths.
Returns: java.awt.Stroke - The stroke for drawing paths.
getTextRenderingMode()
public TextRenderingMode getTextRenderingMode()
Gets current text rendering mode.
Returns: TextRenderingMode - Current text rendering mode.
getTextStrokeWidth()
public float getTextStrokeWidth()
Gets current text stroke width.
Returns: float - Current text stroke width.
getTransform()
public AffineTransform getTransform()
Returns the current transformation matrix.
Returns: java.awt.geom.AffineTransform - The current transformation matrix.
hashCode()
public native int hashCode()
Returns: int
initClip()
public void initClip()
Initializes clip of the device.
initPageNumbers()
public void initPageNumbers()
Initializes numbers of pages to output.
isDirectRGB()
public boolean isDirectRGB()
Indicates whether device uses direct RGB mode, that is RGB.
Returns: boolean - True if direct RGB mode and false otherwise, that is BGR.
isMainDocument()
public boolean isMainDocument()
Returns: boolean
isProperty(String key)
public boolean isProperty(String key)
Gets a value of boolean property.
Parameters:
Parameter | Type | Description |
---|---|---|
key | java.lang.String | The name of property. |
Returns: boolean - The property value.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
openPage(float width, float height)
public boolean openPage(float width, float height)
Starts a new page with the specified width and height.
Parameters:
Parameter | Type | Description |
---|---|---|
width | float | The width of the page. |
height | float | The height of the page. |
Returns: boolean - True if started page is to be output (it’s number is contained in PageNumbers save options). False , otherwise.
openPage(String title)
public boolean openPage(String title)
Starts a new page with the specifies title.
Parameters:
Parameter | Type | Description |
---|---|---|
title | java.lang.String | The title. |
Returns: boolean - True if started page is to be output (it’s number is contained in PageNumbers save options). False , otherwise.
openPartition()
public void openPartition()
Starts a new document partition.
renew()
public void renew()
Sets the devices to the initial state.
renewForMerge(boolean mainDocument)
public void renewForMerge(boolean mainDocument)
Parameters:
Parameter | Type | Description |
---|---|---|
mainDocument | boolean |
reset()
public void reset()
Resets the device.
rotate(double theta)
public void rotate(double theta)
Applies a clockwise rotation about the origin to the current transformation matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
theta | double | The angle of the rotation, in radians. |
rotate(double theta, double x, double y)
public void rotate(double theta, double x, double y)
Rotate the current transformation matrix around a point.
Parameters:
Parameter | Type | Description |
---|---|---|
theta | double | An angle of rotation in radians. |
x | double | X coordinate of point. |
y | double | Y coordinate of point. |
scale(double x, double y)
public void scale(double x, double y)
Applies the specified scale vector to the current transformation matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
x | double | The x scale factor. |
y | double | The y scale factor. |
setBackground(Color value)
public void setBackground(Color value)
Sets the background color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | The background color. |
setCharTM(AffineTransform charTM)
public void setCharTM(AffineTransform charTM)
Specifies characters transform.
Parameters:
Parameter | Type | Description |
---|---|---|
charTM | java.awt.geom.AffineTransform | \u0421haracters transform. |
setClip(Shape clipPath)
public void setClip(Shape clipPath)
Adds the specified path to the current clip path.
Parameters:
Parameter | Type | Description |
---|---|---|
clipPath | java.awt.Shape | The clip path to be added. |
setCreator(String creator)
public void setCreator(String creator)
Specifies creator of resulting device output.
Parameters:
Parameter | Type | Description |
---|---|---|
creator | java.lang.String | A creator value. |
setFont(ITrFont value)
public void setFont(ITrFont value)
Sets the current font.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ITrFont | The current font. |
setHyperlinkTarget(int targetPageNumber)
public void setHyperlinkTarget(int targetPageNumber)
Sets the hyperlink with a page number as its target.
Parameters:
Parameter | Type | Description |
---|---|---|
targetPageNumber | int | The target page number. |
setHyperlinkTarget(String targetUri)
public void setHyperlinkTarget(String targetUri)
Sets the hyperlink with an external URI as its target.
Parameters:
Parameter | Type | Description |
---|---|---|
targetUri | java.lang.String | The target external URI. |
setOpacity(float value)
public void setOpacity(float value)
Sets the opacity.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The opacity. |
setOpacityMask(Paint value)
public void setOpacityMask(Paint value)
Gets the brush for opacity mask. The mask applies over Paint or Strike.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Paint | The brush for opacity mask. |
setPaint(Paint value)
public void setPaint(Paint value)
Sets the brush for filling paths.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Paint | The brush for filling paths. |
setProperties(UserProperties props)
public void setProperties(UserProperties props)
Specifies device properties including metadata.
Parameters:
Parameter | Type | Description |
---|---|---|
props | UserProperties | Device properties. |
setSaveOptions(SaveOptions value)
public void setSaveOptions(SaveOptions value)
Initializes save options.
Parameters:
Parameter | Type | Description |
---|---|---|
value | SaveOptions | Save options. |
setSize(Dimension value)
public void setSize(Dimension value)
Sets the device media size.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Dimension | The device media size. |
setStroke(Stroke value)
public void setStroke(Stroke value)
Sets the stroke for drawing paths.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Stroke | The stroke for drawing paths. |
setTextRenderingMode(TextRenderingMode textRenderingMode)
public void setTextRenderingMode(TextRenderingMode textRenderingMode)
Specifies text rendering mode.
Parameters:
Parameter | Type | Description |
---|---|---|
textRenderingMode | TextRenderingMode | Text rendering mode. |
setTextStrokeWidth(float textStrokeWidth)
public void setTextStrokeWidth(float textStrokeWidth)
Specifies text stroke width.
Parameters:
Parameter | Type | Description |
---|---|---|
textStrokeWidth | float | Text stroke width. |
setTransform(AffineTransform transform)
public void setTransform(AffineTransform transform)
Sets the current transformation matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
transform | java.awt.geom.AffineTransform | The new transformation matrix. |
shear(double shx, double shy)
public void shear(double shx, double shy)
Applies the specified shear vector to the current transformation matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
shx | double | The x shear factor. |
shy | double | The y shear factor. |
startDocument()
public void startDocument()
Starts the document.
toString()
public String toString()
Returns the name of device type.
Returns: java.lang.String - Type name.
transform(AffineTransform transform)
public void transform(AffineTransform transform)
Multiplies the current transformation matrix by the specified Matrix .
Parameters:
Parameter | Type | Description |
---|---|---|
transform | java.awt.geom.AffineTransform | The matrix by which the current transformation matrix is to be multiplied. |
translate(double x, double y)
public void translate(double x, double y)
Applies the specified translation vector to the current transformation matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
x | double | The x offset. |
y | double | The y offset. |
updatePageParameters(IMultiPageDevice device)
public void updatePageParameters(IMultiPageDevice device)
Updates the current page parameters.
Parameters:
Parameter | Type | Description |
---|---|---|
device | IMultiPageDevice | The multipage device. |
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |
writeComment(String comment)
public void writeComment(String comment)
Writes a comment.
Parameters:
Parameter | Type | Description |
---|---|---|
comment | java.lang.String | A comment to be written. |
writeString(ITrFont font, String str)
public void writeString(ITrFont font, String str)
Writes out string with specified font.
Parameters:
Parameter | Type | Description |
---|---|---|
font | ITrFont | Specified font. |
str | java.lang.String | The string. |