Interface AnnotationConfiguration

  • All Implemented Interfaces:

    
    public interface AnnotationConfiguration
    
                        

    Base for all annotation configuration classes. Contains configuration options shared by all annotation types.

    • Constructor Detail

    • Method Detail

      • getSupportedProperties

        @NonNull() abstract EnumSet<AnnotationProperty> getSupportedProperties()

        Controls which annotation properties are enabled for this annotation type. This is used to customize annotation inspector contents.

        Property can be editable in annotation inspector when its returned by this method and annotation configuration implements required interface. For example to enable editing annotation color property, this method should return COLOR and annotation configuration should implement AnnotationColorConfiguration.

        Returns:

        Enum set of all supported annotation properties.

      • isZIndexEditingEnabled

         abstract boolean isZIndexEditingEnabled()

        Indicates whether the z-index editing is enabled for this annotation type.

        Returns:

        true if enabled, false otherwise.

      • getForceDefaults

         abstract boolean getForceDefaults()

        Indicates whether defaults defined by this configuration should be enforced. By default, last picked values are used when creating annotations.

        Values from AnnotationConfiguration are used only when last used value is not available. For example, getDefaultColor is used only when creating annotation of given type for the first time, all annotation created after that are created with last used color.

        Returns:

        true to always use annotation defaults even when property is set in .