com.partnersoft.maps.translator
Class MapDataText

java.lang.Object
  extended by com.partnersoft.maps.translator.MapDataGraphic
      extended by com.partnersoft.maps.translator.MapDataText
All Implemented Interfaces:
RoverConstants, java.io.Serializable

public class MapDataText
extends MapDataGraphic

A text label with attached data.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.
See Also:
Serialized Form

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, LIST, MASK_TYPECODE, NAMING, POINT, POLYGON, POLYLINE, POP, PUSH, RENDER_FINDITEM, RENDER_INDICATION, RENDER_NORMAL, RENDER_SELECTION, ROTATION_MULT, TEXEL_COORD_MAX, TEXEL_COORD_SIZE, TEXT, 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
 void copyStateFrom(MapDataGraphic nother)
           
 java.lang.String getAlignment()
          The alignment of the text.
 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 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, getData, getDataType, getGraphicType, getIndexValues, getReducedData, isIndexed, pickleData, pickleObject, setData, setDataType, setGraphicType, setIndexed, setIndexValues, setReducedData, unpickleData, unpickleObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapDataText

public MapDataText()

MapDataText

public MapDataText(double x,
                   double y,
                   double rotation,
                   java.lang.String alignment,
                   java.lang.String text,
                   Naming data)
Valid alignment codes:

Parameters:
x -
y -
rotation -
alignment -
text -
data -

MapDataText

public MapDataText(double x,
                   double y,
                   double rotation,
                   int offsetX,
                   int offsetY,
                   java.lang.String alignment,
                   java.lang.String text,
                   Naming data)
Method Detail

pickleGraphic

public void pickleGraphic(ByteBuffer buffer)
Overrides:
pickleGraphic in class MapDataGraphic

unpickleGraphic

public void unpickleGraphic(ByteBuffer buffer)
Overrides:
unpickleGraphic in class MapDataGraphic

getGeometryType

public java.lang.String getGeometryType()
Description copied from class: MapDataGraphic
The type of the graphic (e.g. "point", "polyline", etc.)

Specified by:
getGeometryType in class MapDataGraphic

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

copyStateFrom

public void copyStateFrom(MapDataGraphic nother)
Overrides:
copyStateFrom in class MapDataGraphic

getX

public double getX()
X coordinate of insertion point.


setX

public void setX(double argX)

getY

public double getY()
Y coordinate of insertion point.


setY

public void setY(double argY)

getRotation

public double getRotation()
Rotation of the text, in radians.


setRotation

public void setRotation(double argRotation)

getOffsetX

public int getOffsetX()
X offset of the text's graphic, in pixels.


setOffsetX

public void setOffsetX(int argOffsetX)

getOffsetY

public int getOffsetY()
Y offset of the text's graphic, in pixels.


setOffsetY

public void setOffsetY(int argOffsetY)

getAlignment

public java.lang.String getAlignment()
The alignment of the text.


setAlignment

public void setAlignment(java.lang.String argAlignment)

getText

public java.lang.String getText()
The text itself


setText

public void setText(java.lang.String argText)