Class OnLineStrategy.GlyphRotatingVisitor
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy.GlyphRotatingVisitor
-
- All Implemented Interfaces:
MapViewPath.PathSegmentConsumer
- Enclosing class:
- OnLineStrategy
private class OnLineStrategy.GlyphRotatingVisitor extends java.lang.Object implements MapViewPath.PathSegmentConsumer
Rotate the glyphs along a path.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<OnLineStrategy.OffsetGlyph>
gvs
private boolean
isDoubleTranslationBug
private OnLineStrategy.OffsetGlyph
next
-
Constructor Summary
Constructors Constructor Description GlyphRotatingVisitor(java.util.List<OnLineStrategy.OffsetGlyph> gvs, boolean isDoubleTranslationBug)
Create a newOnLineStrategy.GlyphRotatingVisitor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLineBetween(double inLineOffset, MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, boolean startIsOldEnd)
Add a line segment between two pointsprivate void
takeNext()
-
-
-
Field Detail
-
gvs
private final java.util.Iterator<OnLineStrategy.OffsetGlyph> gvs
-
isDoubleTranslationBug
private final boolean isDoubleTranslationBug
-
next
private OnLineStrategy.OffsetGlyph next
-
-
Constructor Detail
-
GlyphRotatingVisitor
GlyphRotatingVisitor(java.util.List<OnLineStrategy.OffsetGlyph> gvs, boolean isDoubleTranslationBug)
Create a newOnLineStrategy.GlyphRotatingVisitor
- Parameters:
gvs
- The glyphs to draw. Sorted along the lineisDoubleTranslationBug
- true to fix a double translation bug.
-
-
Method Detail
-
takeNext
private void takeNext()
-
addLineBetween
public void addLineBetween(double inLineOffset, MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, boolean startIsOldEnd)
Description copied from interface:MapViewPath.PathSegmentConsumer
Add a line segment between two points- Specified by:
addLineBetween
in interfaceMapViewPath.PathSegmentConsumer
- Parameters:
inLineOffset
- The offset of start in the linestart
- The start pointend
- The end pointstartIsOldEnd
- If the start point equals the last end point.
-
-