FileDocCategorySizeDatePackage
PlotterDummy.javaAPI DocExample1017Tue Mar 13 15:32:28 GMT 2001None

PlotterDummy

public class PlotterDummy extends Plotter
Plotter class for testing higher-level software.

Fields Summary
Constructors Summary
PlotterDummy()
Constructor: nothing to do

		super();
	
Methods Summary
public voiddrawString(java.lang.String s)

		System.out.println("Draw the string \"" + s + "\"");
	
voidmoveTo(int absx, int absy)
move to absolute location

		curx = absx;
		cury = absy;
		System.out.println("moveTo ["+curx+","+cury+"]");
	
voidpenColor(int c)

		penColor = c;
		System.out.println("PenColor is ["+penColor+"]");
	
voidpenDown()

		setPenState(false);
	
voidpenUp()

		setPenState(true);
	
voidrmoveTo(int incrx, int incry)
move to relative location

		curx += incrx;
		cury += incry;
		System.out.println("rmoveTo ["+curx+","+cury+"]");
	
public voidsetFont(java.lang.String fName, int fSize)

		System.out.println("set Font to " + fName);
	
voidsetPenState(boolean up)

		penIsUp = up;
		System.out.println("Pen Up is ["+penIsUp+"]");