public class IlvMapLineLabel extends IlvMapLabelingLabel
Modifier and Type | Class and Description |
---|---|
static class |
IlvMapLineLabel.ParameterRecord
Advanced parameters for
IlvMapLineLabel instances. |
Constructor and Description |
---|
IlvMapLineLabel(String label,
IlvMapLabelStyle labelStyle,
IlvMapPolyline poly,
IlvMapLineLabel.ParameterRecord parameters)
Public constructor.
|
IlvMapLineLabel(String label,
Image image,
IlvMapLabelStyle labelStyle,
IlvPolyline poly,
IlvMapLineLabel.ParameterRecord parameters)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
static IlvMapLineLabel.ParameterRecord |
getDefaultParameters(IlvMapLabelStyle style)
Returns the advanced parameters to use for
IlvMapLineLabel 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 IlvMapLineLabel(String label, Image image, IlvMapLabelStyle labelStyle, IlvPolyline poly, IlvMapLineLabel.ParameterRecord parameters)
label
- Label text.image
- Label image.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 IlvMapLineLabel(String label, IlvMapLabelStyle labelStyle, IlvMapPolyline poly, IlvMapLineLabel.ParameterRecord parameters)
label
- Label text.labelStyle
- Label style.poly
- IlvMapPolyline
to which this label is attached.parameters
- Placement parameters for this label.
If parameters are null, default parameters will be used.getDefaultParameters(IlvMapLabelStyle)
public static IlvMapLineLabel.ParameterRecord getDefaultParameters(IlvMapLabelStyle style)
IlvMapLineLabel
using the specified style.style
- The style attached to the IlvMapLineLabel
.IlvMapLineLabel
is created with this style.IlvMapLineLabel(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 (otherwise just check that previously computed labels are still valid).© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.