private class OnLineStrategy.GlyphRotatingVisitor extends java.lang.Object implements MapViewPath.PathSegmentConsumer
| Modifier and Type | Field and Description |
|---|---|
private java.util.Iterator<OnLineStrategy.OffsetGlyph> |
gvs |
private boolean |
isDoubleTranslationBug |
private OnLineStrategy.OffsetGlyph |
next |
| Constructor and Description |
|---|
GlyphRotatingVisitor(java.util.List<OnLineStrategy.OffsetGlyph> gvs,
boolean isDoubleTranslationBug)
Create a new
OnLineStrategy.GlyphRotatingVisitor |
| 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
|
private void |
takeNext() |
private final java.util.Iterator<OnLineStrategy.OffsetGlyph> gvs
private final boolean isDoubleTranslationBug
private OnLineStrategy.OffsetGlyph next
GlyphRotatingVisitor(java.util.List<OnLineStrategy.OffsetGlyph> gvs, boolean isDoubleTranslationBug)
OnLineStrategy.GlyphRotatingVisitorgvs - The glyphs to draw. Sorted along the lineisDoubleTranslationBug - true to fix a double translation bug.private void takeNext()
public void addLineBetween(double inLineOffset, MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, boolean startIsOldEnd)
MapViewPath.PathSegmentConsumeraddLineBetween in interface MapViewPath.PathSegmentConsumerinLineOffset - The offset of start in the linestart - The start pointend - The end pointstartIsOldEnd - If the start point equals the last end point.