private class StyledMapRenderer.ComputeStyleListWorker extends Object implements Callable<List<StyledMapRenderer.StyleRecord>>, Visitor
| Modifier and Type | Field and Description |
|---|---|
private boolean |
drawArea |
private boolean |
drawMultipolygon |
private boolean |
drawRestriction |
private int |
from |
private List<? extends OsmPrimitive> |
input |
private List<StyledMapRenderer.StyleRecord> |
output |
private ElemStyles |
styles |
private int |
to |
| Constructor and Description |
|---|
ComputeStyleListWorker(List<? extends OsmPrimitive> input,
int from,
int to,
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) |
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 List<? extends OsmPrimitive> input
private final int from
private final int to
private final List<StyledMapRenderer.StyleRecord> output
private final ElemStyles styles
private final boolean drawArea
private final boolean drawMultipolygon
private final boolean drawRestriction
ComputeStyleListWorker(List<? extends OsmPrimitive> input, int from, int to, 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 List<StyledMapRenderer.StyleRecord> call() throws Exception
call in interface Callable<List<StyledMapRenderer.StyleRecord>>Exceptionpublic void visit(Node n)
Visitorpublic void visit(Relation r)
Visitorpublic void visit(Changeset cs)
Visitor