public abstract class IlvMapLabelingLabel extends Object
| Constructor and Description |
|---|
IlvMapLabelingLabel(String text,
IlvMapLabelStyle labelStyle)
Public constructor.
|
IlvMapLabelingLabel(String text,
Image image,
IlvMapLabelStyle labelStyle)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawLabel(Graphics g)
Draws this label into the specified
IlvManagerView. |
Image |
getImage()
Returns the image of this label.
|
protected Vector<Point2D> |
getImageAnchorPoints()
Returns the vector containing image shapes.
|
protected Vector<Shape> |
getLabelShapes()
Returns the vector containing label shapes.
|
IlvMapLabelStyle |
getLabelStyle()
Returns the style of this label.
|
protected Vector<Shape> |
getOutlineShapes()
Returns the vector containing label outline shapes.
|
String |
getText()
Returns the string of this label.
|
protected boolean |
isTextRTL(IlvManagerView view)
Determines, in which order (left-to-right or right-to-left)
the label text should be displayed.
|
abstract void |
placeLabels(IlvManagerView view,
IlvLabelingAreas usedArea,
boolean forceCompute)
Method called when the position of this label on screen needs to be computed.
|
void |
setImage(Image image)
Sets the image of this label.
|
void |
setLabelStyle(IlvMapLabelStyle labelStyle)
Sets the style of this label.
|
void |
setText(String text)
Sets the string of this label.
|
public IlvMapLabelingLabel(String text, Image image, IlvMapLabelStyle labelStyle)
text - The label string.image - labelStyle - The label style.public IlvMapLabelingLabel(String text, IlvMapLabelStyle labelStyle)
text - The label string.labelStyle - The label style.protected Vector<Shape> getLabelShapes()
protected Vector<Shape> getOutlineShapes()
protected Vector<Point2D> getImageAnchorPoints()
public String getText()
public Image getImage()
public void setText(String text)
text - The string of this label.public void setImage(Image image)
image - The image of this label.public IlvMapLabelStyle getLabelStyle()
public void setLabelStyle(IlvMapLabelStyle labelStyle)
labelStyle - The style of this label.public void drawLabel(Graphics g)
IlvManagerView.g - The Graphics used to draw the label.public abstract void placeLabels(IlvManagerView view, IlvLabelingAreas usedArea, boolean forceCompute)
view - The IlvManagerView the label is going to be drawn into.usedArea - A forbidden area that the label must not intersect (previously placed labels).forceCompute - Forces a new computation (versus lazy computation which optimizes the process
for some subclasses.protected boolean isTextRTL(IlvManagerView view)
view - the manager view.true, if labels should be
displayed in right-to-left order, otherwise returns false© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.