public class IlvMapAreaLabel extends IlvMapLabelingLabel
placeLabel()
method will try several
candidate positions inside the visible part (on the view passed in the parameter). The first candidate
that does not intersect previously placed labels is chosen.Modifier and Type | Class and Description |
---|---|
static class |
IlvMapAreaLabel.ParameterRecord
Class holding parameters for
IlvMapAreaLabel instances. |
Constructor and Description |
---|
IlvMapAreaLabel(String label,
IlvMapLabelStyle labelStyle,
IlvMapPolyline poly,
IlvMapAreaLabel.ParameterRecord parameters)
Public constructor.
|
IlvMapAreaLabel(String label,
Image image,
IlvMapLabelStyle labelStyle,
IlvPolyline poly,
IlvMapAreaLabel.ParameterRecord parameters)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
static IlvMapAreaLabel.ParameterRecord |
getDefaultParameters(IlvMapLabelStyle style)
Returns the advanced parameters to use for
IlvMapAreaLabel using the specified style. |
void |
placeLabels(IlvManagerView view,
IlvLabelingAreas usedArea,
boolean forceCompute)
Method called when the position of this label on screen needs to be computed.
|
drawLabel, getImage, getImageAnchorPoints, getLabelShapes, getLabelStyle, getOutlineShapes, getText, isTextRTL, setImage, setLabelStyle, setText
public IlvMapAreaLabel(String label, Image image, IlvMapLabelStyle labelStyle, IlvPolyline poly, IlvMapAreaLabel.ParameterRecord parameters)
label
- Label text.image
- Label icon.labelStyle
- Label style.poly
- IlvPolyline
to which this label is attached.parameters
- Placement parameters for this label.
If parameters is null, default parameters will be used.getDefaultParameters(IlvMapLabelStyle)
public IlvMapAreaLabel(String label, IlvMapLabelStyle labelStyle, IlvMapPolyline poly, IlvMapAreaLabel.ParameterRecord parameters)
label
- The label text.labelStyle
- The label style.poly
- IlvMapPolyline
to which this label is attached.parameters
- The placement parameters for this label.
If parameters are null, default parameters will be used.getDefaultParameters(IlvMapLabelStyle)
public static IlvMapAreaLabel.ParameterRecord getDefaultParameters(IlvMapLabelStyle style)
IlvMapAreaLabel
using the specified style.style
- The style attached to the IlvMapAreaLabel
.IlvMapAreaLabel
is created with this style.IlvMapAreaLabel(String, IlvMapLabelStyle, IlvMapPolyline, ParameterRecord)
public void placeLabels(IlvManagerView view, IlvLabelingAreas usedArea, boolean forceCompute)
placeLabels
in class IlvMapLabelingLabel
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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.