Class OnLineStrategy.HalfSegment
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy.HalfSegment
-
- Enclosing class:
- OnLineStrategy
private static class OnLineStrategy.HalfSegment extends Object
A half segment that can be used to place text on it. Used in the drawTextOnPath algorithm.
-
-
Field Summary
Fields Modifier and Type Field Description private MapViewState.MapViewPoint
end
end point of half segmentprivate double
offset
The offset in the path.private double
quality
quality factor (off screen / partly on screen / fully on screen)private MapViewState.MapViewPoint
start
start point of half segment
-
Constructor Summary
Constructors Constructor Description HalfSegment(MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, double quality, double offset)
Create a new half segment
-
-
-
Field Detail
-
start
private final MapViewState.MapViewPoint start
start point of half segment
-
end
private final MapViewState.MapViewPoint end
end point of half segment
-
quality
private final double quality
quality factor (off screen / partly on screen / fully on screen)
-
offset
private final double offset
The offset in the path.
-
-
Constructor Detail
-
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.
-
-