public class MapDataImage extends MapDataGraphic
derivedALIGN_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 |
|---|
MapDataImage() |
MapDataImage(double x,
double y,
float rotation,
double scale,
int pixelsWide,
int pixelsHigh,
int imageId,
byte[] imageBytes,
Naming data) |
MapDataImage(double x,
double y,
float rotation,
int offsetX,
int offsetY,
double scale,
int pixelsWide,
int pixelsHigh,
int imageId,
byte[] imageBytes,
Naming data) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RoverShape> |
convertToShapes(int dataId,
RoverSet roverSet) |
void |
copyStateFrom(MapDataGraphic nother) |
Rectangle |
getExtents() |
java.lang.String |
getGeometryType()
The type of the graphic (e.g.
|
byte[] |
getImageBytes() |
int |
getImageId() |
int |
getOffsetX()
X offset of the point's graphic, in pixels.
|
int |
getOffsetY()
Y offset of the point's graphic, in pixels.
|
int |
getPixelsHigh() |
int |
getPixelsWide() |
float |
getRotation()
Rotation of the point, in radians.
|
double |
getScale() |
double |
getX()
X coordinate of insertion point.
|
double |
getY()
Y coordinate of insertion point.
|
void |
pickleGraphic(ByteBuffer buffer) |
XyPoint |
pointNearest(double x,
double y,
double scale,
Style style) |
void |
setImageBytes(byte[] imageBytes) |
void |
setImageId(int imageId) |
void |
setOffsetX(int argOffsetX) |
void |
setOffsetY(int argOffsetY) |
void |
setPixelsHigh(int pixelsHigh) |
void |
setPixelsWide(int pixelsWide) |
void |
setRotation(double argRotation) |
void |
setRotation(float argRotation) |
void |
setRotation(XyRotation rotation) |
void |
setScale(double scale) |
void |
setX(double argX) |
void |
setY(double argY) |
java.lang.String |
toString() |
void |
unpickleGraphic(ByteBuffer buffer) |
clone, convertToEntity, getData, getDataType, getElectricalNode, getGraphicType, getIndexValues, getReducedData, isIndexed, isSelectable, pickleData, pickleObject, setData, setDataType, setElectricalNode, setGraphicType, setIndexed, setIndexValues, setReducedData, setSelectable, unpickleData, unpickleObjectpublic MapDataImage()
public MapDataImage(double x,
double y,
float rotation,
double scale,
int pixelsWide,
int pixelsHigh,
int imageId,
byte[] imageBytes,
Naming data)
public MapDataImage(double x,
double y,
float rotation,
int offsetX,
int offsetY,
double scale,
int pixelsWide,
int pixelsHigh,
int imageId,
byte[] imageBytes,
Naming data)
public void pickleGraphic(ByteBuffer buffer)
pickleGraphic in class MapDataGraphicpublic void unpickleGraphic(ByteBuffer buffer)
unpickleGraphic in class MapDataGraphicpublic java.lang.String getGeometryType()
MapDataGraphicgetGeometryType in class MapDataGraphicpublic java.lang.String toString()
toString in class java.lang.Objectpublic void copyStateFrom(MapDataGraphic nother)
copyStateFrom in class MapDataGraphicpublic double getX()
public void setX(double argX)
public double getY()
public void setY(double argY)
public float getRotation()
public void setRotation(float argRotation)
public void setRotation(XyRotation rotation)
public void setRotation(double argRotation)
public int getOffsetX()
public void setOffsetX(int argOffsetX)
public int getOffsetY()
public void setOffsetY(int argOffsetY)
public Rectangle getExtents()
getExtents in class MapDataGraphicpublic double getScale()
public void setScale(double scale)
public int getPixelsWide()
public void setPixelsWide(int pixelsWide)
public int getPixelsHigh()
public void setPixelsHigh(int pixelsHigh)
public byte[] getImageBytes()
public void setImageBytes(byte[] imageBytes)
public int getImageId()
public void setImageId(int imageId)
public java.util.List<RoverShape> convertToShapes(int dataId, RoverSet roverSet)
convertToShapes in class MapDataGraphicpublic XyPoint pointNearest(double x, double y, double scale, Style style)
pointNearest in class MapDataGraphic