moebiusViewer
Class AbstractPSWriter

java.lang.Object
  extended bymoebiusViewer.MoebiusGraphics
      extended bymoebiusViewer.MoebiusGraphicsWithPrimitives
          extended bymoebiusViewer.AbstractPSWriter
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
MoebiusPSWriter

public abstract class AbstractPSWriter
extends MoebiusGraphicsWithPrimitives

See Also:
Serialized Form

Field Summary
protected  Rectangle bound
           
protected  double[] p
           
protected  double[] tp
           
protected  java.io.PrintWriter writer
           
 
Fields inherited from class moebiusViewer.MoebiusGraphics
attributes, size, transform
 
Constructor Summary
AbstractPSWriter(Attributes att)
           
 
Method Summary
 void drawArc(double x, double y, double radius, double startAngle, double arcAngle)
           
 void drawCircle(double x, double y, double radius)
           
 void drawColor(java.awt.Color color)
           
 void drawLine(double x1, double y1, double x2, double y2)
           
 void drawString(java.lang.String str, double x, double y)
           
 void fillCircle(double x, double y, double radius)
           
 void fillColor(java.awt.Color color)
           
 void fillPolygon(double[] x, double[] y, int nPoints)
           
 Rectangle getBound()
           
 java.lang.String getCreator()
           
protected  int getFontIndex(java.awt.Font aFont)
           
 MoebiusShape getShape()
           
 java.lang.String getTitle()
           
protected  double getWidthOfReference(java.awt.Font aFont)
           
 void setBound(Rectangle bound)
           
 void setCreator(java.lang.String creator)
           
 void setFont(java.awt.Font f)
           
 void setShape(MoebiusShape shape)
           
 void setTitle(java.lang.String tigle)
           
 void write(java.io.File aFile)
           
protected  void writeFont()
           
protected  float x(double aX)
           
protected  float y(double aY)
           
 
Methods inherited from class moebiusViewer.MoebiusGraphics
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

protected double[] p

tp

protected double[] tp

writer

protected java.io.PrintWriter writer

bound

protected Rectangle bound
Constructor Detail

AbstractPSWriter

public AbstractPSWriter(Attributes att)
Method Detail

setFont

public void setFont(java.awt.Font f)
Overrides:
setFont in class MoebiusGraphics

writeFont

protected final void writeFont()

getWidthOfReference

protected final double getWidthOfReference(java.awt.Font aFont)

getFontIndex

protected final int getFontIndex(java.awt.Font aFont)

getShape

public MoebiusShape getShape()

setShape

public void setShape(MoebiusShape shape)

getBound

public Rectangle getBound()

setBound

public void setBound(Rectangle bound)

getCreator

public java.lang.String getCreator()

setCreator

public void setCreator(java.lang.String creator)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String tigle)

write

public void write(java.io.File aFile)

x

protected final float x(double aX)

y

protected final float y(double aY)

drawColor

public void drawColor(java.awt.Color color)
Specified by:
drawColor in class MoebiusGraphicsWithPrimitives

drawCircle

public void drawCircle(double x,
                       double y,
                       double radius)
Specified by:
drawCircle in class MoebiusGraphicsWithPrimitives

drawLine

public void drawLine(double x1,
                     double y1,
                     double x2,
                     double y2)
Specified by:
drawLine in class MoebiusGraphicsWithPrimitives

drawArc

public void drawArc(double x,
                    double y,
                    double radius,
                    double startAngle,
                    double arcAngle)
Specified by:
drawArc in class MoebiusGraphicsWithPrimitives

drawString

public void drawString(java.lang.String str,
                       double x,
                       double y)
Specified by:
drawString in class MoebiusGraphicsWithPrimitives

fillColor

public void fillColor(java.awt.Color color)
Specified by:
fillColor in class MoebiusGraphicsWithPrimitives

fillCircle

public void fillCircle(double x,
                       double y,
                       double radius)
Specified by:
fillCircle in class MoebiusGraphicsWithPrimitives

fillPolygon

public void fillPolygon(double[] x,
                        double[] y,
                        int nPoints)
Specified by:
fillPolygon in class MoebiusGraphicsWithPrimitives