public class DefaultAnnotationFactory extends java.lang.Object implements IAnnotationFactory
IAnnotationFactory
interfaceModifier and Type | Field and Description |
---|---|
static int |
AXIS_MARKER_ANNOTATION |
static int |
BOX_ANNOTATION |
static int |
CUSTOM_ANNOTATION |
static int |
HORIZONTAL_LINE_ANNOTATION |
static int |
LINE_ANNOTATION |
static int |
LINE_ARROW_ANNOTATION |
static int |
TEXT_ANNOTATION |
static int |
VERTICAL_LINE_ANNOTATION |
Constructor and Description |
---|
DefaultAnnotationFactory() |
Modifier and Type | Method and Description |
---|---|
IAnnotation |
createAnnotation(ISciChartSurface parentSurface,
int annotationType)
Creates a new
IAnnotation instance of specified type |
void |
setFactoryForAnnotationType(int type,
IAnnotationFactory annotationFactory) |
public static final int BOX_ANNOTATION
public static final int LINE_ANNOTATION
public static final int LINE_ARROW_ANNOTATION
public static final int AXIS_MARKER_ANNOTATION
public static final int CUSTOM_ANNOTATION
public static final int TEXT_ANNOTATION
public static final int HORIZONTAL_LINE_ANNOTATION
public static final int VERTICAL_LINE_ANNOTATION
public final void setFactoryForAnnotationType(int type, IAnnotationFactory annotationFactory)
@NonNull public IAnnotation createAnnotation(@NonNull ISciChartSurface parentSurface, int annotationType)
IAnnotationFactory
IAnnotation
instance of specified typecreateAnnotation
in interface IAnnotationFactory
parentSurface
- The parent surface for new annotationannotationType
- The annotation type