public abstract class AbstractPSWriter extends MoebiusGraphicsWithPrimitives
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
bound |
protected double[] |
p |
protected double[] |
tp |
protected PrintWriter |
writer |
attributes, size, transform
Constructor and Description |
---|
AbstractPSWriter(Attributes att) |
Modifier and Type | Method and Description |
---|---|
void |
drawArc(double x,
double y,
double radius,
double startAngle,
double arcAngle) |
void |
drawCircle(double x,
double y,
double radius) |
void |
drawColor(Color color) |
void |
drawLine(double x1,
double y1,
double x2,
double y2) |
void |
drawString(String str,
double x,
double y) |
void |
fillCircle(double x,
double y,
double radius) |
void |
fillColor(Color color) |
void |
fillPolygon(double[] x,
double[] y,
int nPoints) |
Rectangle |
getBound() |
String |
getCreator() |
protected int |
getFontIndex(Font aFont) |
MoebiusShape |
getShape() |
String |
getTitle() |
protected double |
getWidthOfReference(Font aFont) |
void |
setBound(Rectangle bound) |
void |
setCreator(String creator) |
void |
setFont(Font f) |
void |
setShape(MoebiusShape shape) |
void |
setTitle(String title) |
void |
write(File aFile) |
protected void |
writeFont() |
protected float |
x(double aX) |
protected float |
y(double aY) |
arc, arc, circle, circle, clear, clone, getAttributes, getColor, getFilled, getFont, getGraphics, getHorizontalTextLayout, getLineWidth, getPointColor, getPointOutline, getPointRadius, getShapeStack, getSize, getTransform, getTransformStack, getUsePointColor, getVerticalTextLayout, line, line, lineSeg, lineSeg, lineSeg, point, point, point, popShape, popTransform, push, push, setAttributes, setColor, setFilled, setGraphics, setHorizontalTextLayout, setLineWidth, setPointColor, setPointOutline, setPointRadius, setSize, setTransformStack, setUsePointColor, setVerticalTextLayout, text, text, text
protected Rectangle bound
protected double[] p
protected double[] tp
protected PrintWriter writer
public AbstractPSWriter(Attributes att)
public void drawArc(double x, double y, double radius, double startAngle, double arcAngle)
drawArc
in class MoebiusGraphicsWithPrimitives
public void drawCircle(double x, double y, double radius)
drawCircle
in class MoebiusGraphicsWithPrimitives
public void drawColor(Color color)
drawColor
in class MoebiusGraphicsWithPrimitives
public void drawLine(double x1, double y1, double x2, double y2)
drawLine
in class MoebiusGraphicsWithPrimitives
public void drawString(String str, double x, double y)
drawString
in class MoebiusGraphicsWithPrimitives
public void fillCircle(double x, double y, double radius)
fillCircle
in class MoebiusGraphicsWithPrimitives
public void fillColor(Color color)
fillColor
in class MoebiusGraphicsWithPrimitives
public void fillPolygon(double[] x, double[] y, int nPoints)
fillPolygon
in class MoebiusGraphicsWithPrimitives
public Rectangle getBound()
public String getCreator()
protected final int getFontIndex(Font aFont)
public MoebiusShape getShape()
public String getTitle()
protected final double getWidthOfReference(Font aFont)
public void setBound(Rectangle bound)
public void setCreator(String creator)
public void setFont(Font f)
setFont
in class MoebiusGraphics
public void setShape(MoebiusShape shape)
public void setTitle(String title)
public void write(File aFile)
protected final void writeFont()
protected final float x(double aX)
protected final float y(double aY)