private class StyledMapRenderer.ComputeStyleListWorker extends java.lang.Object implements java.util.concurrent.Callable<java.util.List<StyledMapRenderer.StyleRecord>>, Visitor
Modifier and Type | Field and Description |
---|---|
private boolean |
drawArea |
private boolean |
drawMultipolygon |
private boolean |
drawRestriction |
private int |
from |
private java.util.List<? extends OsmPrimitive> |
input |
private java.util.List<StyledMapRenderer.StyleRecord> |
output |
private ElemStyles |
styles |
private int |
to |
Constructor and Description |
---|
ComputeStyleListWorker(java.util.List<? extends OsmPrimitive> input,
int from,
int to,
java.util.List<StyledMapRenderer.StyleRecord> output)
Constructs a new
ComputeStyleListWorker . |
Modifier and Type | Method and Description |
---|---|
void |
add(Node osm,
int flags) |
void |
add(Relation osm,
int flags) |
void |
add(Way osm,
int flags) |
java.util.List<StyledMapRenderer.StyleRecord> |
call() |
void |
visit(Changeset cs)
Visiting call for changesets.
|
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Relation r)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
private final java.util.List<? extends OsmPrimitive> input
private final int from
private final int to
private final java.util.List<StyledMapRenderer.StyleRecord> output
private final ElemStyles styles
private final boolean drawArea
private final boolean drawMultipolygon
private final boolean drawRestriction
ComputeStyleListWorker(java.util.List<? extends OsmPrimitive> input, int from, int to, java.util.List<StyledMapRenderer.StyleRecord> output)
ComputeStyleListWorker
.input
- the primitives to processfrom
- first index of input
to useto
- last index + 1output
- the list of styles to which styles will be addedpublic java.util.List<StyledMapRenderer.StyleRecord> call() throws java.lang.Exception
call
in interface java.util.concurrent.Callable<java.util.List<StyledMapRenderer.StyleRecord>>
java.lang.Exception
public void visit(Node n)
Visitor
public void visit(Relation r)
Visitor
public void visit(Changeset cs)
Visitor