Class ComputeStyleListWorker
java.lang.Object
java.util.concurrent.ForkJoinTask<V>
java.util.concurrent.RecursiveTask<List<StyledMapRenderer.StyleRecord>>
org.openstreetmap.josm.data.osm.visitor.paint.ComputeStyleListWorker
- All Implemented Interfaces:
Serializable,Future<List<StyledMapRenderer.StyleRecord>>,PrimitiveVisitor
public class ComputeStyleListWorker
extends RecursiveTask<List<StyledMapRenderer.StyleRecord>>
implements PrimitiveVisitor
Helper to compute style list.
- Since:
- 11914 (extracted from StyledMapRenderer)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final intprivate final booleanprivate final booleanprivate final booleanprivate final List<? extends IPrimitive>private final NavigatableComponentprivate final List<StyledMapRenderer.StyleRecord>private static final longprivate final ElemStyles -
Constructor Summary
ConstructorsConstructorDescriptionComputeStyleListWorker(double circum, NavigatableComponent nc, List<? extends IPrimitive> input, List<StyledMapRenderer.StyleRecord> output, int directExecutionTaskSize) Constructs a newComputeStyleListWorker.ComputeStyleListWorker(double circum, NavigatableComponent nc, List<? extends IPrimitive> input, List<StyledMapRenderer.StyleRecord> output, int directExecutionTaskSize, ElemStyles styles) Constructs a newComputeStyleListWorker. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidacceptDrawable(IPrimitive osm) voidAdd new style records for the given node.voidAdd new style records for the given relation.voidAdd new style records for the given way.protected List<StyledMapRenderer.StyleRecord>compute()Compute directly (without using fork/join) the style list.private booleandrawAreaElement(int flags, StyleElement s) voidVisiting call for nodes.voidVisiting call for relations.voidVisiting call for ways.Methods inherited from class java.util.concurrent.RecursiveTask
exec, getRawResult, setRawResultMethods inherited from class java.util.concurrent.ForkJoinTask
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, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
-
Field Details
-
serialVersionUID
- See Also:
-
input
-
output
-
styles
-
directExecutionTaskSize
-
circum
-
nc
-
drawArea
-
drawMultipolygon
-
drawRestriction
-
-
Constructor Details
-
Method Details
-
compute
- Specified by:
computein classRecursiveTask<List<StyledMapRenderer.StyleRecord>>
-
computeDirectly
Compute directly (without using fork/join) the style list. Only called for small input.- Returns:
- list of computed style records
-
acceptDrawable
-
visit
Description copied from interface:PrimitiveVisitorVisiting call for nodes.- Specified by:
visitin interfacePrimitiveVisitor- Parameters:
n- The node to inspect.
-
visit
Description copied from interface:PrimitiveVisitorVisiting call for ways.- Specified by:
visitin interfacePrimitiveVisitor- Parameters:
w- The way to inspect.
-
visit
Description copied from interface:PrimitiveVisitorVisiting call for relations.- Specified by:
visitin interfacePrimitiveVisitor- Parameters:
r- The relation to inspect.
-
add
Add new style records for the given node.- Parameters:
osm- nodeflags- flags- Since:
- 13810 (signature)
-
add
Add new style records for the given way.- Parameters:
osm- wayflags- flags- Since:
- 13810 (signature)
-
add
Add new style records for the given relation.- Parameters:
osm- relationflags- flags- Since:
- 13810 (signature)
-
drawAreaElement
-