|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freehep.graphicsio.AbstractPathConstructor
org.freehep.graphicsio.QuadToCubicPathConstructor
org.freehep.graphicsio.font.CharstringEncoder
public class CharstringEncoder
Encoder to encode "CharStrings" used in PostScript and Type 1 Fonts.
Constructor Summary | |
---|---|
CharstringEncoder(java.io.OutputStream out)
|
Method Summary | |
---|---|
void |
closePath(double x0,
double y0)
Closes the path by drawing a straight line to the last point which was argument to move. |
void |
cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draws a cubic bezier curve from the current point to (x3, y3) using the control points (x1, y1) and (x2, y2) and make (x3, y3) the current point. |
void |
drawPath(java.awt.Shape s)
|
void |
endchar()
|
void |
line(double x,
double y)
Draws a line from the current point to (x,y) and make (x,y) the current point. |
void |
move(double x,
double y)
Makes (x,y) the current point. |
void |
startChar(double sidebearing,
double width)
|
protected void |
writeCommand(int com)
|
protected void |
writeExtCommand(int com)
|
Methods inherited from class org.freehep.graphicsio.QuadToCubicPathConstructor |
---|
quad |
Methods inherited from class org.freehep.graphicsio.AbstractPathConstructor |
---|
addPath, addPath, addPath, flush, isEvenOdd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharstringEncoder(java.io.OutputStream out)
Method Detail |
---|
protected void writeCommand(int com) throws java.io.IOException
java.io.IOException
protected void writeExtCommand(int com) throws java.io.IOException
java.io.IOException
public void startChar(double sidebearing, double width) throws java.io.IOException
java.io.IOException
public void endchar() throws java.io.IOException
java.io.IOException
public void move(double x, double y) throws java.io.IOException
PathConstructor
move
in interface PathConstructor
move
in class QuadToCubicPathConstructor
java.io.IOException
public void line(double x, double y) throws java.io.IOException
PathConstructor
line
in interface PathConstructor
line
in class QuadToCubicPathConstructor
java.io.IOException
public void cubic(double x1, double y1, double x2, double y2, double x3, double y3) throws java.io.IOException
PathConstructor
cubic
in interface PathConstructor
cubic
in class QuadToCubicPathConstructor
java.io.IOException
public void closePath(double x0, double y0) throws java.io.IOException
PathConstructor
closePath
in interface PathConstructor
closePath
in class QuadToCubicPathConstructor
java.io.IOException
public void drawPath(java.awt.Shape s) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |