public class PSBorderPainter extends BorderPainter
BorderPainter.| Constructor and Description |
|---|
PSBorderPainter(org.apache.xmlgraphics.ps.PSGenerator generator)
Creates a new border painter for PostScript.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clip()
Reduces the current clipping region to the current path.
|
protected void |
closePath()
Closes the current path.
|
protected void |
drawBorderLine(int x1,
int y1,
int x2,
int y2,
boolean horz,
boolean startOrBefore,
int style,
java.awt.Color col)
Draws a border line.
|
static void |
drawBorderLine(org.apache.xmlgraphics.ps.PSGenerator gen,
float x1,
float y1,
float x2,
float y2,
boolean horz,
boolean startOrBefore,
int style,
java.awt.Color col) |
void |
drawLine(java.awt.Point start,
java.awt.Point end,
int width,
java.awt.Color color,
RuleStyle style)
Draws a line/rule.
|
protected void |
lineTo(int x,
int y)
Draws a line from the current cursor position to the given coordinates.
|
protected void |
moveTo(int x,
int y)
Moves the cursor to the given coordinate.
|
protected void |
restoreGraphicsState()
Restore the last graphics state from the stack.
|
protected void |
saveGraphicsState()
Save the graphics state on the stack.
|
drawBorderspublic PSBorderPainter(org.apache.xmlgraphics.ps.PSGenerator generator)
generator - the PostScript generatorprotected void drawBorderLine(int x1,
int y1,
int x2,
int y2,
boolean horz,
boolean startOrBefore,
int style,
java.awt.Color col)
throws java.io.IOException
drawBorderLine in class BorderPainterx1 - X coordinate of the upper left corner
of the line's bounding rectangle (in millipoints)y1 - start Y coordinate of the upper left corner
of the line's bounding rectangle (in millipoints)x2 - end X coordinate of the lower right corner
of the line's bounding rectangle (in millipoints)y2 - end y coordinate of the lower right corner
of the line's bounding rectangle (in millipoints)horz - true if it is a horizontal linestartOrBefore - true if the line is the start or end edge of a border boxstyle - the border stylecol - the border colorjava.io.IOException - if an I/O error occurspublic static void drawBorderLine(org.apache.xmlgraphics.ps.PSGenerator gen,
float x1,
float y1,
float x2,
float y2,
boolean horz,
boolean startOrBefore,
int style,
java.awt.Color col)
throws java.io.IOException
gen - ps content generatorjava.io.IOExceptionBorderPainter.drawBorderLine(int, int, int, int, boolean, boolean, int, java.awt.Color)public void drawLine(java.awt.Point start,
java.awt.Point end,
int width,
java.awt.Color color,
RuleStyle style)
throws java.io.IOException
drawLine in class BorderPainterstart - start point (coordinates in millipoints)end - end point (coordinates in millipoints)width - width of the linecolor - the line colorstyle - the rule stylejava.io.IOException - if an I/O error occursprotected void moveTo(int x,
int y)
throws java.io.IOException
moveTo in class BorderPainterx - the X coordinate (in millipoints)y - the Y coordinate (in millipoints)java.io.IOException - if an I/O error occursprotected void lineTo(int x,
int y)
throws java.io.IOException
lineTo in class BorderPainterx - the X coordinate (in millipoints)y - the Y coordinate (in millipoints)java.io.IOException - if an I/O error occursprotected void closePath()
throws java.io.IOException
closePath in class BorderPainterjava.io.IOException - if an I/O error occursprotected void clip()
throws java.io.IOException
clip in class BorderPainterjava.io.IOException - if an I/O error occursprotected void saveGraphicsState()
throws java.io.IOException
saveGraphicsState in class BorderPainterjava.io.IOException - if an I/O error occursprotected void restoreGraphicsState()
throws java.io.IOException
restoreGraphicsState in class BorderPainterjava.io.IOException - if an I/O error occursCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.