Class OnLineStrategy.HalfSegment
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy.HalfSegment
-
- Enclosing class:
- OnLineStrategy
private static class OnLineStrategy.HalfSegment extends java.lang.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.MapViewPointendend point of half segmentprivate doubleoffsetThe offset in the path.private doublequalityquality factor (off screen / partly on screen / fully on screen)private MapViewState.MapViewPointstartstart 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
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.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-