public class CreateNorthArrowProcessor extends AbstractProcessor<CreateNorthArrowProcessor.Input,CreateNorthArrowProcessor.Output>
Processor to create a north-arrow for a map.
The north-arrow is rotated according to the rotation of the associated map.
Example configuration:
attributes:
...
northArrow: !northArrow
size: 50
default:
graphic: "file://NorthArrow_10.svg"
processors:
...
- !createNorthArrow {}
See also: !northArrow attribute
[[examples=verboseExample,print_osm_new_york_nosubreports]]| Modifier and Type | Class and Description |
|---|---|
static class |
CreateNorthArrowProcessor.Input
Input for the processor.
|
static class |
CreateNorthArrowProcessor.Output
Output for the processor.
|
AbstractProcessor.ContextProcessor.ExecutionContext| Modifier | Constructor and Description |
|---|---|
protected |
CreateNorthArrowProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CreateNorthArrowProcessor.Input |
createInputParameter()
Returns a new/clean instance of a parameter object.
|
CreateNorthArrowProcessor.Output |
execute(CreateNorthArrowProcessor.Input values,
Processor.ExecutionContext context)
Perform the process on the input attributes.
|
protected void |
extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
Perform any extra validation a subclass may need to perform.
|
checkCancelState, getInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, validateprotected void extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
AbstractProcessorextraValidation in class AbstractProcessor<CreateNorthArrowProcessor.Input,CreateNorthArrowProcessor.Output>validationErrors - a list to add errors to so that all validation errors are reported as one.configuration - the containing configurationpublic final CreateNorthArrowProcessor.Input createInputParameter()
ProcessorValues object.
The way the properties will be looked up is to
Values object using the mapped property name
HasDefaultValue annotation is on the field for the property.
public final CreateNorthArrowProcessor.Output execute(CreateNorthArrowProcessor.Input values, Processor.ExecutionContext context) throws java.lang.Exception
Processorvalues - A Java object whose public fields are populated from the Values object
(which is used for transferring properties between processors).context - The execution context for a print task.Values object. The
key in the Values object is the name of the field or if there is a mapping in the
Processor.getOutputMapperBiMap() map, the mapped name. The key is determined in a similar way as for the input object.java.lang.Exception