public class RoverWriter extends java.lang.Object implements RoverConstants
ALIGN_BOTTOM_CENTER, ALIGN_BOTTOM_FIT, ALIGN_BOTTOM_LEFT, ALIGN_BOTTOM_RIGHT, ALIGN_CENTER, ALIGN_CENTER_LEFT, ALIGN_CENTER_RIGHT, ALIGN_CODE_CENTER, ALIGN_CODE_FIT, ALIGN_CODE_HIGH, ALIGN_CODE_LOW, ALIGN_FIT, ALIGN_FIT_LEFT, ALIGN_FIT_RIGHT, ALIGN_TOP_CENTER, ALIGN_TOP_FIT, ALIGN_TOP_LEFT, ALIGN_TOP_RIGHT, COMMENT, DATA_FIELDS_MAX, EOF, FLOAT_COORDS, GEOMETRY_TYPE_NAMES, HAS_DATA, HAS_OFFSET, HAS_ROTATION, IMAGE, LIST, LUMP_CODE_TYPE_AREA, LUMP_CODE_TYPE_IMAGE, LUMP_CODE_TYPE_LINE, LUMP_CODE_TYPE_POINT, LUMP_CODE_TYPE_TEXT, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, ROTATION_MULT, TEXEL_COORD_MAX, TEXT, TEXT_LONG, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE| Constructor and Description |
|---|
RoverWriter(java.io.DataOutput output)
Creates a writer for the given DataOutput (a DataOutputStream,
RandomAccessFile, or whatever).
|
RoverWriter(java.io.DataOutput output,
double originX,
double originY,
double tileSize) |
RoverWriter(java.io.OutputStream ostream)
Creates a builder to write to the given stream.
|
RoverWriter(java.io.OutputStream output,
double originX,
double originY,
double tileSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
popContext() |
void |
pushContext(int contextID) |
int |
writeComment(java.lang.String comment) |
int |
writePoint(long ID,
int offsetX,
int offsetY,
float rotation,
double x,
double y) |
int |
writePointColor(long ID,
int offsetX,
int offsetY,
float rotation,
int red,
int green,
int blue,
int alpha,
double x,
double y) |
int |
writePointColorSection(int style,
int count,
boolean hasData,
boolean hasOffset,
boolean hasRotation) |
int |
writePointSection(int style,
int count,
boolean hasData,
boolean hasOffset,
boolean hasRotation) |
int |
writePolygon(long ID,
XyPolygon polygon) |
int |
writePolygonSection(int style,
int count,
boolean hasData) |
int |
writePolyline(long ID,
FloatBuffer coords) |
int |
writePolylineSection(int style,
int count,
boolean hasData) |
int |
writeText(long ID,
int offsetX,
int offsetY,
float rotation,
double x,
double y,
java.lang.String text) |
int |
writeTextSection(int style,
int count,
boolean hasData,
int alignment,
boolean hasOffset,
boolean hasRotation) |
public RoverWriter(java.io.DataOutput output)
public RoverWriter(java.io.OutputStream ostream)
public RoverWriter(java.io.DataOutput output,
double originX,
double originY,
double tileSize)
public RoverWriter(java.io.OutputStream output,
double originX,
double originY,
double tileSize)
public void pushContext(int contextID)
throws java.io.IOException
java.io.IOExceptionpublic void popContext()
throws java.io.IOException
java.io.IOExceptionpublic int writeComment(java.lang.String comment)
throws java.io.IOException
java.io.IOExceptionpublic int writePointSection(int style,
int count,
boolean hasData,
boolean hasOffset,
boolean hasRotation)
throws java.io.IOException
java.io.IOExceptionpublic int writePointColorSection(int style,
int count,
boolean hasData,
boolean hasOffset,
boolean hasRotation)
throws java.io.IOException
java.io.IOExceptionpublic int writePolylineSection(int style,
int count,
boolean hasData)
throws java.io.IOException
java.io.IOExceptionpublic int writePolygonSection(int style,
int count,
boolean hasData)
throws java.io.IOException
java.io.IOExceptionpublic int writeTextSection(int style,
int count,
boolean hasData,
int alignment,
boolean hasOffset,
boolean hasRotation)
throws java.io.IOException
java.io.IOExceptionpublic int writePoint(long ID,
int offsetX,
int offsetY,
float rotation,
double x,
double y)
throws java.io.IOException
java.io.IOExceptionpublic int writePointColor(long ID,
int offsetX,
int offsetY,
float rotation,
int red,
int green,
int blue,
int alpha,
double x,
double y)
throws java.io.IOException
java.io.IOExceptionpublic int writePolyline(long ID,
FloatBuffer coords)
throws java.io.IOException
java.io.IOExceptionpublic int writePolygon(long ID,
XyPolygon polygon)
throws java.io.IOException
java.io.IOExceptionpublic int writeText(long ID,
int offsetX,
int offsetY,
float rotation,
double x,
double y,
java.lang.String text)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException