com.esri.aims.mtier.model.acetate
Class Text

java.lang.Object
  extended by com.esri.aims.mtier.model.acetate.Object
      extended by com.esri.aims.mtier.model.acetate.Text
All Implemented Interfaces:
AcetateElement, MapSurroundings, Serializable

public class Text
extends Object
implements MapSurroundings, Serializable

Defines a Text object to be drawn as an acetate layer. The Text object extends the Object class from the acetate package.

See Also:
Serialized Form

Constructor Summary
Text()
           
 
Method Summary
 String getLabel()
          Returns the label value for this object.
 TextMarkerSymbol getTextMarkerSymbol()
          Returns the TextMarkerSymbol associated with this Text object.
 String getType()
          Returns the type of Acetate object this class represents.
 double getX()
          Returns the X- coordinate value associated with this Text object.
 double getY()
          Returns the Y- coordinate value for thsi Text object.
 void setLabel(String value)
          Sets the label value for this object.
 void setSymbol(TextMarkerSymbol symbol)
          Deprecated. As of ArcIMS 9.3 Java Connector, replaced by setTextMarkerSymbol(com.esri.aims.mtier.model.map.layer.renderer.symbol.TextMarkerSymbol).
 void setTextMarkerSymbol(TextMarkerSymbol symbol)
          Assigns a TextMarkerSymbol to this Text object.
 void setX(double value)
          Sets the X- coordinate value for this Text object.
 void setY(double value)
          Sets the Y- coordinate value for thsi Text object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()
Method Detail

getType

public String getType()
Description copied from class: Object
Returns the type of Acetate object this class represents.

Specified by:
getType in interface MapSurroundings
Specified by:
getType in class Object
Returns:
String

setX

public void setX(double value)
Sets the X- coordinate value for this Text object.

Example:

text.setX(-125.00);

Parameters:
value - the X coordinate value.
See Also:
getX()

getX

public double getX()
Returns the X- coordinate value associated with this Text object.

Example:

double x = text.getX();

Returns:
double
See Also:
setX(double)

setY

public void setY(double value)
Sets the Y- coordinate value for thsi Text object.

Example:

text.setY(45.0);

Parameters:
value - the Y coordinate value.
See Also:
getY()

getY

public double getY()
Returns the Y- coordinate value for thsi Text object.

Example:

double y = text.getY();

Returns:
double
See Also:
setY(double)

setLabel

public void setLabel(String value)
Sets the label value for this object.

Example:

text.setLabel("You are here");

Parameters:
value - the label value
See Also:
getLabel()

getLabel

public String getLabel()
Returns the label value for this object.

Example:

String label = text.getLabel();

Returns:
String
See Also:
setLabel(java.lang.String)

setSymbol

public void setSymbol(TextMarkerSymbol symbol)
Deprecated. As of ArcIMS 9.3 Java Connector, replaced by setTextMarkerSymbol(com.esri.aims.mtier.model.map.layer.renderer.symbol.TextMarkerSymbol).

Assigns a TextMarkerSymbol to this Text object.

Example:

 TextMarkerSymbol textmarker = new TextMarkerSymbol();
 textmarker.setFontSize(15);
 text.setTextMarkerSymbol(textmarker);
 

Parameters:
symbol - the TextMarkerSymbol.
See Also:
getTextMarkerSymbol()

setTextMarkerSymbol

public void setTextMarkerSymbol(TextMarkerSymbol symbol)
Assigns a TextMarkerSymbol to this Text object.

Example:

 TextMarkerSymbol textmarker = new TextMarkerSymbol();
 textmarker.setFontSize(15);
 text.setTextMarkerSymbol(textmarker);
 

Parameters:
symbol - the TextMarkerSymbol.
See Also:
getTextMarkerSymbol()

getTextMarkerSymbol

public TextMarkerSymbol getTextMarkerSymbol()
Returns the TextMarkerSymbol associated with this Text object.

Example:

 TextMarkerSymbol textmarker = (TextMarkerSymbol)text.getTextMarkerSymbol();
 

Returns:
TextMarkerSymbol
See Also:
setSymbol(com.esri.aims.mtier.model.map.layer.renderer.symbol.TextMarkerSymbol)