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 Object
implements MapViewPath.PathSegmentConsumer
Rotate the glyphs along a path.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Iterator<OnLineStrategy.OffsetGlyph>private final booleanprivate OnLineStrategy.OffsetGlyph -
Constructor Summary
ConstructorsConstructorDescriptionGlyphRotatingVisitor(List<OnLineStrategy.OffsetGlyph> gvs, boolean isDoubleTranslationBug) Create a newOnLineStrategy.GlyphRotatingVisitor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLineBetween(double inLineOffset, MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, boolean startIsOldEnd) Add a line segment between two pointsprivate voidtakeNext()
-
Field Details
-
gvs
-
isDoubleTranslationBug
-
next
-
-
Constructor Details
-
GlyphRotatingVisitor
GlyphRotatingVisitor(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 Details
-
takeNext
-
addLineBetween
public void addLineBetween(double inLineOffset, MapViewState.MapViewPoint start, MapViewState.MapViewPoint end, boolean startIsOldEnd) Description copied from interface:MapViewPath.PathSegmentConsumerAdd a line segment between two points- Specified by:
addLineBetweenin 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.
-