software.authoring
Class Drills
java.lang.Object
software.authoring.Drills
public class Drills
- extends java.lang.Object
Produces two files with drill coordinates in the paper. Thse files will get to
the machinist and he read them and drill holes.
- Author:
- stefan
|
Method Summary |
static void |
DrillFilesToPdf(java.lang.String inDir,
java.lang.String background,
java.lang.String outFile)
|
static void |
GeometryToDrillFile(BallotGeometry geometry,
java.lang.String preamble,
java.lang.String pathToDrillsFile,
double xShift,
double yShift)
Creates two drill files: one for the upper half of the ballot and one for the lower part
From the geometry it extracts where the serial number and the letters on the
bottom pages are and each one hole for each. |
static void |
GeometryToDrillFile(java.lang.String pathToBallotMapFile,
java.lang.String preamble,
java.lang.String pathToDrillsFile,
double xShift,
double yShift)
reads the geometry and calls
convert(BallotGeometry geometry,String preamble,String pathToDrillsFile,double xShift,double yShift) throws Exception { |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Drills
public Drills()
GeometryToDrillFile
public static void GeometryToDrillFile(java.lang.String pathToBallotMapFile,
java.lang.String preamble,
java.lang.String pathToDrillsFile,
double xShift,
double yShift)
throws java.lang.Exception
- reads the geometry and calls
convert(BallotGeometry geometry,String preamble,String pathToDrillsFile,double xShift,double yShift) throws Exception {
- Throws:
java.lang.Exception
GeometryToDrillFile
public static void GeometryToDrillFile(BallotGeometry geometry,
java.lang.String preamble,
java.lang.String pathToDrillsFile,
double xShift,
double yShift)
throws java.lang.Exception
- Creates two drill files: one for the upper half of the ballot and one for the lower part
From the geometry it extracts where the serial number and the letters on the
bottom pages are and each one hole for each.
If can shift the holes by a given amount (in inches)
- Parameters:
geometry - - the geometry of the ballot.preamble - - the header of the filespathToDrillsFile - - a folder where the two files are writtenxShift - - x shifting applied before writingyShift - - y shifting applied before writing
- Throws:
java.lang.Exception - - no Exception is caugth and no Exception is Explicitly thrown
DrillFilesToPdf
public static void DrillFilesToPdf(java.lang.String inDir,
java.lang.String background,
java.lang.String outFile)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args -
- Throws:
java.lang.Exception