Interface AnnotationConfiguration.Builder
-
- All Implemented Interfaces:
public interface AnnotationConfiguration.Builder<T>
Builder for AnnotationConfiguration. All builders declared in subclasses of annotation configuration must extend this builder.
-
-
Method Summary
Modifier and Type Method Description abstract T
setSupportedProperties(@NonNull() EnumSet<AnnotationProperty> supportedProperties)
Controls which annotation properties are enabled for specific annotation type or tool. abstract T
setZIndexEditingEnabled(boolean enabled)
Sets whether the z-index editing is enabled for specific annotation type or tool. abstract T
disableProperty(@NonNull() AnnotationProperty disabledProperty)
Removes specific property from the supported properties. abstract T
setForceDefaults(boolean forceDefaults)
Sets whether annotation defaults defined in the configuration should be enforced. abstract AnnotationConfiguration
build()
Builds the annotation configuration from values configured by this builder. -
-
Method Detail
-
setSupportedProperties
@NonNull() abstract T setSupportedProperties(@NonNull() EnumSet<AnnotationProperty> supportedProperties)
Controls which annotation properties are enabled for specific annotation type or tool. This is used to customize annotation inspector contents. Defaults to all properties supported by annotation type/tool.
- Parameters:
supportedProperties
- Enum set of all supported annotation properties.
-
setZIndexEditingEnabled
abstract T setZIndexEditingEnabled(boolean enabled)
Sets whether the z-index editing is enabled for specific annotation type or tool.
- Parameters:
enabled
-true
to enable z-index editing,false
to disable it.
-
disableProperty
@NonNull() abstract T disableProperty(@NonNull() AnnotationProperty disabledProperty)
Removes specific property from the supported properties. This disables annotation inspector for this property.
- Parameters:
disabledProperty
- Property that should be removed from supported properties.
-
setForceDefaults
@NonNull() abstract T setForceDefaults(boolean forceDefaults)
Sets whether annotation defaults defined in the configuration should be enforced.
By default last picked values are used when creating annotations. Configured defaults are are used only when last used value is not available.
- Parameters:
forceDefaults
-true
to always use annotation defaults.
-
build
@NonNull() abstract AnnotationConfiguration build()
Builds the annotation configuration from values configured by this builder.
-
-
-
-