private static class StyledMapRenderer.ComputeStyleListWorker extends java.util.concurrent.RecursiveTask<java.util.List<StyledMapRenderer.StyleRecord>> implements Visitor
Modifier and Type | Field and Description |
---|---|
private double |
circum |
private int |
directExecutionTaskSize |
private boolean |
drawArea |
private boolean |
drawMultipolygon |
private boolean |
drawRestriction |
private java.util.List<? extends OsmPrimitive> |
input |
private NavigatableComponent |
nc |
private java.util.List<StyledMapRenderer.StyleRecord> |
output |
private ElemStyles |
styles |
Constructor and Description |
---|
ComputeStyleListWorker(double circum,
NavigatableComponent nc,
java.util.List<? extends OsmPrimitive> input,
java.util.List<StyledMapRenderer.StyleRecord> output,
int directExecutionTaskSize)
Constructs a new
ComputeStyleListWorker . |
Modifier and Type | Method and Description |
---|---|
private void |
acceptDrawable(OsmPrimitive osm) |
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 transient java.util.List<? extends OsmPrimitive> input
private final transient java.util.List<StyledMapRenderer.StyleRecord> output
private final transient ElemStyles styles
private final int directExecutionTaskSize
private final double circum
private final NavigatableComponent nc
private final boolean drawArea
private final boolean drawMultipolygon
private final boolean drawRestriction
ComputeStyleListWorker(double circum, NavigatableComponent nc, java.util.List<? extends OsmPrimitive> input, java.util.List<StyledMapRenderer.StyleRecord> output, int directExecutionTaskSize)
ComputeStyleListWorker
.circum
- distance on the map in meters that 100 screen pixels representnc
- navigatable componentinput
- 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()
private void acceptDrawable(OsmPrimitive osm)
public void visit(Node n)
Visitor
public void visit(Relation r)
Visitor
public void visit(Changeset cs)
Visitor