|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.translator.MapDataGraphic
com.partnersoft.maps.translator.MapDataText
public class MapDataText
A text label with attached data.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.maps.translator.MapDataGraphic |
|---|
derived |
| Fields inherited from interface com.partnersoft.io.formats.rover.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, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, ROTATION_MULT, TEXEL_COORD_MAX, TEXEL_COORD_SIZE, TEXT, TEXT_LONG, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE |
| Constructor Summary | |
|---|---|
MapDataText()
|
|
MapDataText(double x,
double y,
double rotation,
int offsetX,
int offsetY,
java.lang.String alignment,
java.lang.String text,
Naming data)
|
|
MapDataText(double x,
double y,
double rotation,
java.lang.String alignment,
java.lang.String text,
Naming data)
Valid alignment codes: "center" "fit" "bottom left" "center left" "top left" "top center" "top right" "center right" "bottom center" "bottom fit" "top fit" "fit left" "fit right" "left" "right" "top" "bottom" |
|
| Method Summary | |
|---|---|
java.util.List<RoverShape> |
convertToShapes(int dataId,
RoverSet roverSet)
|
void |
copyStateFrom(MapDataGraphic nother)
|
java.lang.String |
getAlignment()
The alignment of the text. |
Rectangle |
getExtents()
|
java.lang.String |
getGeometryType()
The type of the graphic (e.g. |
int |
getOffsetX()
X offset of the text's graphic, in pixels. |
int |
getOffsetY()
Y offset of the text's graphic, in pixels. |
double |
getRotation()
Rotation of the text, in radians. |
java.lang.String |
getText()
The text itself |
double |
getX()
X coordinate of insertion point. |
double |
getY()
Y coordinate of insertion point. |
void |
pickleGraphic(ByteBuffer buffer)
|
void |
setAlignment(java.lang.String argAlignment)
|
void |
setOffsetX(int argOffsetX)
|
void |
setOffsetY(int argOffsetY)
|
void |
setRotation(double argRotation)
|
void |
setRotation(XyRotation rotation)
|
void |
setText(java.lang.String argText)
|
void |
setX(double argX)
|
void |
setY(double argY)
|
java.lang.String |
toString()
|
void |
unpickleGraphic(ByteBuffer buffer)
|
| Methods inherited from class com.partnersoft.maps.translator.MapDataGraphic |
|---|
clone, convertToEntity, getData, getDataType, getElectricalNode, getGraphicType, getIndexValues, getReducedData, isIndexed, isSelectable, pickleData, pickleObject, setData, setDataType, setElectricalNode, setGraphicType, setIndexed, setIndexValues, setReducedData, setSelectable, unpickleData, unpickleObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapDataText()
public MapDataText(double x,
double y,
double rotation,
java.lang.String alignment,
java.lang.String text,
Naming data)
x - y - rotation - alignment - text - data -
public MapDataText(double x,
double y,
double rotation,
int offsetX,
int offsetY,
java.lang.String alignment,
java.lang.String text,
Naming data)
| Method Detail |
|---|
public void pickleGraphic(ByteBuffer buffer)
pickleGraphic in class MapDataGraphicpublic void unpickleGraphic(ByteBuffer buffer)
unpickleGraphic in class MapDataGraphicpublic java.lang.String getGeometryType()
MapDataGraphic
getGeometryType 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 double getRotation()
public void setRotation(double argRotation)
public void setRotation(XyRotation rotation)
public int getOffsetX()
public void setOffsetX(int argOffsetX)
public int getOffsetY()
public void setOffsetY(int argOffsetY)
public java.lang.String getAlignment()
public void setAlignment(java.lang.String argAlignment)
public java.lang.String getText()
public void setText(java.lang.String argText)
public Rectangle getExtents()
getExtents in class MapDataGraphic
public java.util.List<RoverShape> convertToShapes(int dataId,
RoverSet roverSet)
convertToShapes in class MapDataGraphic
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||