|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.label.IlvMapLabelingLabel
public abstract class IlvMapLabelingLabel
Abstract class defining the general behavior of a map label. It holds the text attribute itself as well as graphic style, and has a method to compute a position for this label and paint it on the view.
| Constructor Summary | |
|---|---|
IlvMapLabelingLabel(String text,
IlvMapLabelStyle labelStyle)
Public constructor. |
|
IlvMapLabelingLabel(String text,
Image image,
IlvMapLabelStyle labelStyle)
Public constructor. |
|
| Method Summary | |
|---|---|
void |
drawLabel(Graphics g)
Draws this label into the specified IlvManagerView. |
Image |
getImage()
Returns the image of this label. |
protected Vector |
getImageAnchorPoints()
Returns the vector containing image shapes. |
protected Vector |
getLabelShapes()
Returns the vector containing label shapes. |
IlvMapLabelStyle |
getLabelStyle()
Returns the style of this label. |
protected Vector |
getOutlineShapes()
Returns the vector containing label outline shapes. |
String |
getText()
Returns the string of this label. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
protected Vector getLabelShapes()
protected Vector getOutlineShapes()
protected Vector 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||