public class XYCoords
extends java.util.TreeMap<java.lang.Integer,java.awt.geom.Point2D>
Constructor and Description |
---|
XYCoords() |
XYCoords(java.io.File inputFile) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileExtension() |
void |
put(int id,
double x,
double y) |
void |
readFromFile(java.io.File inputFile) |
XYCoords |
scale(double factor) |
XYCoords |
translate(double dx,
double dy) |
void |
writeToFile(java.io.File outputFile) |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
public XYCoords()
inputFile
- java.io.IOException
public XYCoords(java.io.File inputFile) throws java.io.IOException
inputFile
- java.io.IOException
public java.lang.String getFileExtension()
public void put(int id, double x, double y)
vertexId
- x
- y
- public void readFromFile(java.io.File inputFile) throws java.io.IOException
inputFile
- java.io.IOException
public XYCoords scale(double factor)
factor
- public XYCoords translate(double dx, double dy)
dx
- dy
- public void writeToFile(java.io.File outputFile) throws java.io.IOException
outputFile
- java.io.IOException