Class TLcdShapeAnnotation

java.lang.Object
com.luciad.shape.TLcdShapeAnnotation
All Implemented Interfaces:
ILcdAnnotation

public class TLcdShapeAnnotation extends Object implements ILcdAnnotation
Provides information on which ILcdShape interfaces are implemented by instances of a data type. If an instance class of a data type implements ILcdShape, this annotation can be set on the data type to provide information on which actual ILcdShape interfaces are allowed to be implemented by subclasses of the data type's instance class.
  • Constructor Details

    • TLcdShapeAnnotation

      public TLcdShapeAnnotation(Set<Class<? extends ILcdShape>> aShapeClasses, boolean aShapeMandatory)
      Creates a new TLcdShapeAnnotation with the specified list of shape classes.
      Parameters:
      aShapeClasses - the set of shape classes that is allowed to be implemented by instances of this annotation's data type.
      aShapeMandatory - true if an instance of this annotation's data type always implements a shape interface, false if it may be shapeless.
    • TLcdShapeAnnotation

      public TLcdShapeAnnotation(boolean aShapeMandatory, Class<? extends ILcdShape>... aShapeClasses)
      Creates a new TLcdShapeAnnotation with the specified list of shape classes.
      Parameters:
      aShapeMandatory -
      aShapeClasses - the shape classes that are allowed as shape on the instances of this annotation's data type.
  • Method Details

    • getShapeClasses

      public Set<Class<? extends ILcdShape>> getShapeClasses()
      Returns the set of shape classes that is allowed to be implemented by instances of this annotation's data type.
      Returns:
      the set of shape classes that is allowed to be implemented by instances of this annotation's data type.
    • isShapeMandatory

      public boolean isShapeMandatory()
      Returns true if an instance of this annotation's data type always implements a shape interface, false if it may be shapeless.
      Returns:
      true if an instance of this annotation's data type always implements a shape interface, false if it may be shapeless.