Class OnLineStrategy.HalfSegment
java.lang.Object
org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy.HalfSegment
- Enclosing class:
- OnLineStrategy
A half segment that can be used to place text on it. Used in the drawTextOnPath algorithm.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MapViewState.MapViewPointend point of half segmentprivate final doubleThe offset in the path.private final doublequality factor (off screen / partly on screen / fully on screen)private final MapViewState.MapViewPointstart point of half segment -
Constructor Summary
ConstructorsConstructorDescriptionHalfSegment(MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, double quality, double offset) Create a new half segment -
Method Summary
-
Field Details
-
start
start point of half segment -
end
end point of half segment -
quality
quality factor (off screen / partly on screen / fully on screen) -
offset
The offset in the path.
-
-
Constructor Details
-
HalfSegment
HalfSegment(MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, double quality, double offset) Create a new half segment- Parameters:
start- The start along the wayend- The end of the segmentquality- A quality factor.offset- The offset in the path.
-
-
Method Details