private class StyledMapRenderer.ComputeStyleListWorker extends java.util.concurrent.RecursiveTask<java.util.List<StyledMapRenderer.StyleRecord>> implements Visitor
Modifier and Type | Field and Description |
---|---|
private int |
directExecutionTaskSize |
private boolean |
drawArea |
private boolean |
drawMultipolygon |
private boolean |
drawRestriction |
private java.util.List<? extends OsmPrimitive> |
input |
private java.util.List<StyledMapRenderer.StyleRecord> |
output |
private ElemStyles |
styles |
Constructor and Description |
---|
ComputeStyleListWorker(java.util.List<? extends OsmPrimitive> input,
java.util.List<StyledMapRenderer.StyleRecord> output,
int directExecutionTaskSize)
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) |
protected java.util.List<StyledMapRenderer.StyleRecord> |
compute() |
java.util.List<StyledMapRenderer.StyleRecord> |
computeDirectly() |
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.
|
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
private final java.util.List<? extends OsmPrimitive> input
private final java.util.List<StyledMapRenderer.StyleRecord> output
private final ElemStyles styles
private final int directExecutionTaskSize
private final boolean drawArea
private final boolean drawMultipolygon
private final boolean drawRestriction
ComputeStyleListWorker(java.util.List<? extends OsmPrimitive> input, java.util.List<StyledMapRenderer.StyleRecord> output, int directExecutionTaskSize)
ComputeStyleListWorker
.input
- the primitives to processoutput
- the list of styles to which styles will be addeddirectExecutionTaskSize
- the threshold deciding whether to subdivide the tasksprotected java.util.List<StyledMapRenderer.StyleRecord> compute()
compute
in class java.util.concurrent.RecursiveTask<java.util.List<StyledMapRenderer.StyleRecord>>
public java.util.List<StyledMapRenderer.StyleRecord> computeDirectly()
public void visit(Node n)
Visitor
public void visit(Relation r)
Visitor
public void visit(Changeset cs)
Visitor