@Override public Renderer getRenderer(AnnotationLayer aLayer) { return new RelationRenderer(createAdapter(aLayer), featureSupportRegistry, layerBehaviorsRegistry.getLayerBehaviors(this, RelationLayerBehavior.class)); } }
@Bean public LayerSupportRegistry layerSupportRegistry() { return new LayerSupportRegistryImpl(asList( new SpanLayerSupport(featureSupportRegistry(), null, annotationService(), null), new RelationLayerSupport(featureSupportRegistry(), null, annotationService(), null), new ChainLayerSupport(featureSupportRegistry(), null, annotationService(), null))); } }
@Override public void generateTypes(TypeSystemDescription aTsd, AnnotationLayer aLayer) { TypeDescription td = aTsd.addType(aLayer.getName(), "", TYPE_NAME_ANNOTATION); AnnotationLayer attachType = aLayer.getAttachType(); td.addFeature(FEAT_REL_TARGET, "", attachType.getName()); td.addFeature(FEAT_REL_SOURCE, "", attachType.getName()); generateFeatures(aTsd, td, aLayer); }
new SpanLayerSupport(featureSupportRegistry, null, schemaService, layerBehaviorRegistry), new RelationLayerSupport(featureSupportRegistry, null, schemaService, layerBehaviorRegistry), new ChainLayerSupport(featureSupportRegistry, null, schemaService,
@Override public void generateTypes(TypeSystemDescription aTsd, AnnotationLayer aLayer) { TypeDescription td = aTsd.addType(aLayer.getName(), "", TYPE_NAME_ANNOTATION); AnnotationLayer attachType = aLayer.getAttachType(); td.addFeature(FEAT_REL_TARGET, "", attachType.getName()); td.addFeature(FEAT_REL_SOURCE, "", attachType.getName()); generateFeatures(aTsd, td, aLayer); }
new SpanLayerSupport(featureSupportRegistry, null, annotationSchemaService, layerBehaviorRegistry), new RelationLayerSupport(featureSupportRegistry, null, annotationSchemaService, layerBehaviorRegistry), new ChainLayerSupport(featureSupportRegistry, null, annotationSchemaService,
@Override public Renderer getRenderer(AnnotationLayer aLayer) { return new RelationRenderer(createAdapter(aLayer), featureSupportRegistry, layerBehaviorsRegistry.getLayerBehaviors(this, RelationLayerBehavior.class)); } }