ilog.views.maps.label
Class IlvMapAreaLabel
java.lang.Object
ilog.views.maps.label.IlvMapLabelingLabel
ilog.views.maps.label.IlvMapAreaLabel
public class IlvMapAreaLabel
- extends IlvMapLabelingLabel
Class for displaying labels on areas (that is, closed polylines). The 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.
- Since:
- JViews 7.5
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlvMapAreaLabel
public IlvMapAreaLabel(String label,
Image image,
IlvMapLabelStyle labelStyle,
IlvPolyline poly,
IlvMapAreaLabel.ParameterRecord parameters)
- Public constructor.
- Parameters:
label - Label text.image - Label icon.labelStyle - Label style.poly - IlvPolyline to which this label is attached.parameters - Placement parameters for this label.
IlvMapAreaLabel
public IlvMapAreaLabel(String label,
IlvMapLabelStyle labelStyle,
IlvMapPolyline poly,
IlvMapAreaLabel.ParameterRecord parameters)
- Public constructor.
- Parameters:
label - Label text.labelStyle - Label style.poly - IlvMapPolyline to which this label is attached.parameters - Placement parameters for this label.
placeLabels
public void placeLabels(IlvManagerView view,
IlvLabelingAreas usedArea,
boolean forceCompute)
- Method called when the position of this label on screen needs to be computed.
- Specified by:
placeLabels in class IlvMapLabelingLabel
- Parameters:
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 © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage.