public class IlvMapText extends IlvMapGeometry
String
containing the text to display, and an anchor
point.IlvDefaultTextRenderer
interprets the anchor point as the
center of the label corresponding to the IlvMapText
.IlvDefaultTextRenderer
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 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()
public Rectangle2D getBounds(Rectangle2D result)
IlvMapGeometry
getBounds
in class IlvMapGeometry
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.