public class IlvMapPointLabel extends IlvMapLabelingLabel
IlvMapPoints
. For each IlvMapPoint
passed as parameter, the placeLabels()
method will try 4 candidate positions about the point (ordered according to general label quality
criteria, North-East, South-East, North-West, South-West). The first candidate that does not intersect
previously placed labels is chosen. Otherwise this label is not drawn.Modifier and Type | Class and Description |
---|---|
static class |
IlvMapPointLabel.ParameterRecord
Class holding parameters for IlvMapPointLabel instances
|
Constructor and Description |
---|
IlvMapPointLabel(String label,
IlvMapLabelStyle labelStyle,
IlvPoint[] points,
IlvMapPointLabel.ParameterRecord parameters)
Public constructor.
|
IlvMapPointLabel(String label,
Image image,
IlvMapLabelStyle labelStyle,
IlvPoint[] points,
IlvMapPointLabel.ParameterRecord parameters)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
static IlvMapPointLabel.ParameterRecord |
getDefaultParameters(IlvMapLabelStyle style)
Returns the advanced parameters to use for
IlvMapPointLabel using the specified style. |
void |
placeLabels(IlvManagerView view,
IlvLabelingAreas usedArea,
boolean forceCompute)
Method called when this label's position on screen needs to be computed.
|
drawLabel, getImage, getImageAnchorPoints, getLabelShapes, getLabelStyle, getOutlineShapes, getText, isTextRTL, setImage, setLabelStyle, setText
public IlvMapPointLabel(String label, Image image, IlvMapLabelStyle labelStyle, IlvPoint[] points, IlvMapPointLabel.ParameterRecord parameters)
label
- Label text.image
- Label icon.labelStyle
- Label style.points
- Array of points to label.parameters
- Placement parameters for this label.
If parameters is null, default parameters will be used.getDefaultParameters(IlvMapLabelStyle)
public IlvMapPointLabel(String label, IlvMapLabelStyle labelStyle, IlvPoint[] points, IlvMapPointLabel.ParameterRecord parameters)
label
- Label text.labelStyle
- Label style.points
- Array of points to label.parameters
- Placement parameters for this label.
If parameters is null, default parameters will be used.getDefaultParameters(IlvMapLabelStyle)
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.public static IlvMapPointLabel.ParameterRecord getDefaultParameters(IlvMapLabelStyle style)
IlvMapPointLabel
using the specified style.style
- The style attached to the IlvMapPointLabel
.IlvMapPointLabel
is created with this style.IlvMapPointLabel(String, IlvMapLabelStyle, IlvPoint[], ParameterRecord)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.