sjunnesson.HPGL_plotter
Class Plotter

java.lang.Object
  extended by sjunnesson.HPGL_plotter.Plotter

public class Plotter
extends Object


Field Summary
 boolean bufferFull
           
 double DEFAULT_FONT_HEIGHT
           
 float DEFAULT_LABEL_DIRECTION
           
 int xMax
           
 int xMin
           
 int yMax
           
 int yMin
           
 
Constructor Summary
Plotter(String portName, PApplet _t, int paperType)
           
 
Method Summary
 void bezier(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
           
 void bezierDetail(double _detail)
           
 void circle(int x, int y, int r)
           
 void circle(int x, int y, int r, double precision)
           
 void drawTo(float xPos, float yPos)
           
 void drawTo(int xPos, int yPos)
           
 double getFontHeight()
           
 int getPenID()
           
 void line(float x1, float y1, float x2, float y2)
           
 void moveTo(float xPos, float yPos)
           
 void moveTo(int xPos, int yPos)
           
 void selectPen(int _penID)
           
 void setCustomDimension(int _xMin, int _yMin, int _xMax, int _yMax)
           
 void setDimensions(int paperType)
           
 void setFontHeight(double h)
           
 void setLabelDirection(float angle)
           
 void write(String hpgl)
           
 void writeLabel(String _label, float xPos, float yPos)
           
 void writeLabel(String _label, int xPos, int yPos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FONT_HEIGHT

public double DEFAULT_FONT_HEIGHT

DEFAULT_LABEL_DIRECTION

public float DEFAULT_LABEL_DIRECTION

xMin

public int xMin

yMin

public int yMin

xMax

public int xMax

yMax

public int yMax

bufferFull

public boolean bufferFull
Constructor Detail

Plotter

public Plotter(String portName,
               PApplet _t,
               int paperType)
Method Detail

write

public void write(String hpgl)

selectPen

public void selectPen(int _penID)

getPenID

public int getPenID()

setCustomDimension

public void setCustomDimension(int _xMin,
                               int _yMin,
                               int _xMax,
                               int _yMax)

setDimensions

public void setDimensions(int paperType)

writeLabel

public void writeLabel(String _label,
                       int xPos,
                       int yPos)

setFontHeight

public void setFontHeight(double h)

getFontHeight

public double getFontHeight()

setLabelDirection

public void setLabelDirection(float angle)

writeLabel

public void writeLabel(String _label,
                       float xPos,
                       float yPos)

moveTo

public void moveTo(int xPos,
                   int yPos)

moveTo

public void moveTo(float xPos,
                   float yPos)

drawTo

public void drawTo(int xPos,
                   int yPos)

drawTo

public void drawTo(float xPos,
                   float yPos)

line

public void line(float x1,
                 float y1,
                 float x2,
                 float y2)

circle

public void circle(int x,
                   int y,
                   int r)

circle

public void circle(int x,
                   int y,
                   int r,
                   double precision)

bezier

public void bezier(int x1,
                   int y1,
                   int x2,
                   int y2,
                   int x3,
                   int y3,
                   int x4,
                   int y4)

bezierDetail

public void bezierDetail(double _detail)


Processing library HPGL_Plotter by David Sjunnesson. (c) 2015