private static class OnLineStrategy.UpsideComputingVisitor extends java.lang.Object implements MapViewPath.PathSegmentConsumer
Modifier and Type | Field and Description |
---|---|
private double |
endOffset |
private double |
startOffset |
private double |
upsideDownLines |
private double |
upsideUpLines |
Constructor and Description |
---|
UpsideComputingVisitor(double startOffset,
double endOffset) |
Modifier and Type | Method and Description |
---|---|
void |
addLineBetween(double inLineOffset,
MapViewState.MapViewPoint start,
MapViewState.MapViewPoint end,
boolean startIsOldEnd)
Add a line segment between two points
|
(package private) boolean |
shouldRotateText()
Check if the text should be rotated by 180°
|
private final double startOffset
private final double endOffset
private double upsideUpLines
private double upsideDownLines
UpsideComputingVisitor(double startOffset, double endOffset)
public void addLineBetween(double inLineOffset, MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, boolean startIsOldEnd)
MapViewPath.PathSegmentConsumer
addLineBetween
in interface MapViewPath.PathSegmentConsumer
inLineOffset
- The offset of start in the linestart
- The start pointend
- The end pointstartIsOldEnd
- If the start point equals the last end point.boolean shouldRotateText()