|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.IlvMapGeometry
ilog.views.maps.geometry.IlvMapText
public class IlvMapText
This class defines a georeferenced text. A georeferenced text is composed
of a String containing the text to display, and an anchor
point.
The position of the text from the anchor point is dependent of the
interpretation made by the renderer. For instance,
IlvDefaultTextRenderer interprets the anchor point as the
center of the label corresponding to the IlvMapText.
IlvDefaultTextRenderer| Constructor Summary | |
|---|---|
IlvMapText()
Initializes an instance of text, with no label. |
|
IlvMapText(IlvCoordinate p,
String text)
Initializes an instance of text. |
|
IlvMapText(IlvRect rect,
String text)
Initializes an instance of text using a rectangular anchor. |
|
| Method Summary | |
|---|---|
Rectangle2D |
getBounds(Rectangle2D result)
Returns the bounds of this IlvMapGeometry |
IlvCoordinate |
getPoint()
Returns the anchor point of the text |
IlvRect |
getRectangle()
Returns the anchor rectangle of the text. |
String |
getText()
Returns the value of the text |
void |
setPoint(IlvCoordinate point)
Sets the position of the text. |
void |
setRectangle(IlvRect rect)
Sets the rectangle anchor of the text. |
void |
setText(String text)
Sets the value of the text. |
String |
toString()
Returns a string describing the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapText()
public IlvMapText(IlvCoordinate p,
String text)
p - an anchor point for the text. This coordinate is not copied.text - the value of the text.
public IlvMapText(IlvRect rect,
String text)
rect - an anchor rectangle for the text.
This IlvRect is not copied.text - the value of the text.| Method Detail |
|---|
public IlvRect getRectangle()
public void setRectangle(IlvRect rect)
rect - An anchor rectangle for the text.
(The rectangle is not copied).public IlvCoordinate getPoint()
public void setPoint(IlvCoordinate point)
point - An anchor point for the text. (The coordinate is not copied).public String getText()
public void setText(String text)
text - the value of the text.public String toString()
toString in class Objectpublic Rectangle2D getBounds(Rectangle2D result)
IlvMapGeometry
getBounds in class IlvMapGeometry
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||