public abstract class AnnotationBase extends android.widget.FrameLayout implements IAnnotation, IAnnotationContainer, IAnnotationInteractionService, ISciChartSurfaceProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
AnnotationBase.CartesianAnnotationPlacementStrategyBase<T extends AnnotationBase>
Defines a base placement strategy for
AnnotationBase instance |
android.widget.FrameLayout.LayoutParams
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
Modifier and Type | Field and Description |
---|---|
protected AnnotationCoordinates |
annotationCoordinates |
protected com.scichart.core.framework.SmartProperty<AnnotationSurfaceEnum> |
annotationSurfaceProperty |
protected com.scichart.core.framework.SmartProperty<AnnotationCoordinateMode> |
coordinateModeProperty |
protected com.scichart.core.framework.SmartProperty<Direction2D> |
dragDirectionsProperty |
protected java.lang.Runnable |
invalidateRunnable |
protected com.scichart.core.framework.SmartPropertyBoolean |
isEditableProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
isHiddenProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
isSelectedProperty |
protected com.scichart.core.framework.SmartProperty<Direction2D> |
resizeDirectionsProperty |
protected com.scichart.core.framework.SmartProperty<IResizingGrip> |
resizingGripProperty |
protected com.scichart.core.framework.SmartProperty<IAnnotationSelectionDrawable> |
selectionDrawableProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.Comparable> |
x1Property |
protected com.scichart.core.framework.SmartProperty<java.lang.Comparable> |
x2Property |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
xAxisIdProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.Comparable> |
y1Property |
protected com.scichart.core.framework.SmartProperty<java.lang.Comparable> |
y2Property |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
yAxisIdProperty |
protected com.scichart.core.framework.SmartPropertyInteger |
zIndexProperty |
CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
Modifier | Constructor and Description |
---|---|
protected |
AnnotationBase(android.content.Context context) |
protected |
AnnotationBase(android.content.Context context,
android.util.AttributeSet attrs) |
protected |
AnnotationBase(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
protected |
AnnotationBase(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
protected void |
attachAdorners(IAdornerLayer adornerLayer)
Attaches associated
IAdornerProvider to the parent IAdornerLayer |
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
decrementSuspend() |
void |
detach() |
protected void |
detachAdorners(IAdornerLayer adornerLayer)
Detaches associated
IAdornerProvider from the parent IAdornerLayer |
protected boolean |
dispatchGenericPointerEvent(android.view.MotionEvent event) |
boolean |
dispatchTouchEvent(android.view.MotionEvent ev) |
protected java.lang.Comparable |
fromCoordinate(float coord,
IAxis axis)
Converts a pixel coordinate to data-value
|
protected java.lang.Comparable |
fromRelativeCoordinate(float coord,
IAxis axis)
Converts a relative coordinate (e.g.
|
protected IAdornerLayer |
getAdornerLayer()
Gets the Adorner Canvas to place annotation adorners.
|
IAnnotationSelectionDrawable |
getAnnotationSelectionDrawable()
Gets the
IAnnotationSelectionDrawable instance for this annotation |
AnnotationSurfaceEnum |
getAnnotationSurface()
Gets the
AnnotationSurfaceEnum to place the annotation on. |
AnnotationCoordinateMode |
getCoordinateMode()
Gets the
AnnotationCoordinateMode to use when placing the annotation. |
Direction2D |
getDragDirections()
Gets the
Direction2D with the Drag direction for this annotation |
boolean |
getIsEditable()
Gets the value indicating whether this annotation is editable or not
|
boolean |
getIsSuspended() |
ISciChartSurface |
getParentSurface()
Gets the parent surface that this instance is associated with
|
Direction2D |
getResizeDirections()
Gets the
Direction2D with the Resize direction for this annotation |
IResizingGrip |
getResizingGrip()
Gets the
IResizingGrip instance for this annotation |
com.scichart.core.IServiceContainer |
getServices() |
protected IAnnotationSurface |
getSurface()
Gets the parent
IAnnotationSurface for this annotation |
java.lang.Comparable |
getX1()
Gets the X1 Coordinate of the Annotation.
|
java.lang.Comparable |
getX2()
Gets the X2 Coordinate of the Annotation.
|
IAxis |
getXAxis()
Gets the XAxis instance associated with this annotation
|
protected IAxis |
getXAxis(java.lang.String axisId)
Gets the XAxis instance by string with Axis Id
|
java.lang.String |
getXAxisId()
Gets the XAxis Id that this annotation is measured against.
|
java.lang.Comparable |
getY1()
Gets the Y1 Coordinate of the Annotation.
|
java.lang.Comparable |
getY2()
Gets the Y2 Coordinate of the Annotation.
|
IAxis |
getYAxis()
Gets the YAxis instance associated with this annotation
|
protected IAxis |
getYAxis(java.lang.String axisId)
Gets the YAxis instance by string with Axis Id
|
java.lang.String |
getYAxisId()
Gets the YAxis Id that this annotation is measured against.
|
int |
getZIndex()
Gets the z-index position for this annotation
|
void |
hide()
Hides the Annotation by removing it and its adorner markers from the parent
ISciChartSurface |
protected abstract IAnnotationPlacementStrategy |
initPlacementStrategy(CoordinateSystem newCoordinateSystem)
Creates a new
IAnnotationPlacementStrategy for specified CoordinateSystem |
void |
invalidateElement() |
boolean |
isAttached() |
boolean |
isCoordinateValid(float coord,
int canvasMeasurement)
Determines whether the coordinate is valid for placing on the canvas, e.g.
|
boolean |
isEditable()
Gets the value indicating whether this annotation is editable or not
|
boolean |
isHidden()
Gets the value indicating whether this annotation is hidden or not
|
protected boolean |
isPointWithinBounds(float x,
float y)
Checks if specified point is within annotation's bounds
|
protected boolean |
isPointWithinBounds(float x,
float y,
com.scichart.core.framework.IHitTestable relativeTo)
Checks if point specified relative to
IHitTestable element is within annotation's bounds |
boolean |
isSelected()
Gets the value indicating whether this annotation is selected or not
|
void |
makeInvisible()
Makes this annotation container visible
|
void |
makeVisible()
Makes this annotation container visible
|
void |
moveAnnotation(float horizOffset,
float vertOffset)
This method is used in internally to move annotation in X and Y direction
|
void |
moveBasePointTo(float xCoord,
float yCoord,
int index)
This method is used in internally to set an adorner point position
|
protected void |
moveBasePointTo(float xCoord,
float yCoord,
int index,
IAxis xAxis,
IAxis yAxis)
This method is used in internally to set an adorner point position
|
protected void |
notifyOnDragDelta(float horizontalOffset,
float verticalOffset)
Notifies
OnAnnotationDragListener about drag operation |
protected void |
notifyOnDragEnded()
Notifies
OnAnnotationDragListener about end of drag operation |
protected void |
notifyOnDragStarted()
Notifies
OnAnnotationDragListener about start of drag operation |
void |
onAnnotationSelected()
Called when parent annotation becomes selected
|
void |
onAnnotationUnselected()
Called when parent annotation becomes unselected
|
protected void |
onAttachedToWindow() |
void |
onAxisAlignmentChanged(IAxis axis,
AxisAlignment oldValue,
AxisAlignment newValue)
Notifies about changing of axis alignment in one of axes
|
protected void |
onDetachedFromWindow() |
boolean |
onDragDelta(float horizontalOffset,
float verticalOffset)
Called when this adorner provider is dragged
|
void |
onDragEnded()
Called when drag operation ends
|
boolean |
onDragStarted(float startPointX,
float startPointY,
IAdornerLayer relativeTo)
Called when drag operation starts on
IAdornerLayer |
void |
onDrawAdorner(android.graphics.Canvas adornerCanvas)
Draws this adorner provider on specified
Canvas |
void |
onStrategyManagerChanged(IStrategyManager manager)
Called when something changes in
IStrategyManager |
boolean |
onTouchEvent(android.view.MotionEvent event) |
boolean |
onTrySelectAnnotationContainer()
Tries to select
IAnnotationContainer instance |
void |
onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
Called when parent
SciChartSurface.getXAxes() collection changes |
void |
onXAxesDrasticallyChanged(ISciChartSurface surface)
Called when parent
SciChartSurface.getXAxes() collection drastically changed |
protected void |
onXAxisIdChanged()
Called when XAxis Id changes
|
void |
onYAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
Called when parent
SciChartSurface.getYAxes() collection changes |
void |
onYAxesDrasticallyChanged(ISciChartSurface surface)
Called when parent
SciChartSurface.getYAxes() collection drastically changed |
protected void |
onYAxisIdChanged()
Called when YAxis Id changes
|
void |
refresh()
refresh the annotation position
|
void |
resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender) |
void |
setAnnotationSelectionDrawable(IAnnotationSelectionDrawable annotationSelectionDrawable)
Sets the
IAnnotationSelectionDrawable instance for this annotation |
void |
setAnnotationSurface(AnnotationSurfaceEnum annotationsSurface)
Sets the
AnnotationSurfaceEnum to place the annotation on. |
void |
setCoordinateMode(AnnotationCoordinateMode coordinateMode)
Sets the
AnnotationCoordinateMode to use when placing the annotation. |
void |
setDragDirections(Direction2D dragDirections)
Sets the
Direction2D with the Drag direction for this annotation |
void |
setIsEditable(boolean isEditable)
Sets the value indicating whether this annotation is editable or not
|
void |
setIsHidden(boolean isHidden)
Sets the value indicating whether this annotation is hidden or not
|
void |
setOnAnnotationDragListener(OnAnnotationDragListener listener)
Sets the
OnAnnotationDragListener which is called when drag event occurs on this annotation |
void |
setOnAnnotationIsHiddenChangeListener(OnAnnotationIsHiddenChangeListener listener)
Sets the
OnAnnotationIsHiddenChangeListener which is called when IAnnotation.isHidden() property changes |
void |
setOnAnnotationSelectionChangeListener(OnAnnotationSelectionChangeListener listener)
Sets the
OnAnnotationSelectionChangeListener which is called when IAnnotation.isSelected() property changes |
void |
setResizeDirections(Direction2D resizeDirections)
Sets the
Direction2D with the Resize direction for this annotation |
void |
setResizingGrip(IResizingGrip resizingGrip)
Sets the
IResizingGrip instance for this annotation |
void |
setSelected(boolean isSelected)
Sets the value indicating whether this annotation is selected or not
|
void |
setX1(java.lang.Comparable x1)
Sets the X1 Coordinate of the Annotation.
|
void |
setX2(java.lang.Comparable x2)
Sets the X2 Coordinate of the Annotation.
|
void |
setXAxisId(java.lang.String xAxisId)
Sets the XAxis Id that this annotation is measured against.
|
protected void |
setXYPropertiesFromIndex(java.lang.Comparable xValue,
java.lang.Comparable yValue,
int index)
Sets X and Y Value for base point with specified index
|
void |
setY1(java.lang.Comparable y1)
Sets the Y1 Coordinate of the Annotation.
|
void |
setY2(java.lang.Comparable y2)
Sets the Y2 Coordinate of the Annotation.
|
void |
setYAxisId(java.lang.String yAxisId)
Sets the YAxis Id that this annotation is measured against.
|
void |
setZIndex(int zIndex)
Sets the z-index position for this annotation
|
void |
show()
Shows annotation which being hidden by
IAnnotation.hide() call |
com.scichart.core.framework.IUpdateSuspender |
suspendUpdates() |
protected float |
toCoordinate(java.lang.Comparable dataValue,
int canvasMeasurement,
ICoordinateCalculator coordCalc,
Direction2D direction)
Converts a data value to pixel coordinate
|
protected void |
tryUpdate(ICoordinateCalculator xCalc,
ICoordinateCalculator yCalc)
Updates annotation if coordinate calculators are valid
|
void |
update(IAxis xAxis,
IAxis yAxis)
Updates the coordinate calculators and refreshes the annotation position on the parent
ISciChartSurface |
protected void |
update(ICoordinateCalculator xCalc,
ICoordinateCalculator yCalc)
Updates the coordinate calculators and refreshes the annotation position on the parent
ISciChartSurface |
void |
updateAdorner()
Updates the adorner provider with latest values
|
protected void |
updateAnnotationCoordinates(AnnotationCoordinates annotationCoordinates,
IAnnotationSurface annotationSurface,
ICoordinateCalculator xCalc,
ICoordinateCalculator yCalc)
Updates the
AnnotationCoordinates instance associated with this annotation |
protected void |
updateAnnotationPlacement()
Called internally to places annotation
|
protected void |
updatePointCoordinates(android.graphics.PointF coordPoint,
java.lang.Comparable xDataValue,
java.lang.Comparable yDataValue,
IAnnotationSurface annotationSurface,
ICoordinateCalculator xCalc,
ICoordinateCalculator yCalc)
Updates coordinate point based on provided values
|
checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState
addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onCreateDrawableState, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAutofillHints, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
protected final com.scichart.core.framework.SmartPropertyBoolean isEditableProperty
protected final com.scichart.core.framework.SmartPropertyBoolean isSelectedProperty
protected final com.scichart.core.framework.SmartPropertyBoolean isHiddenProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> xAxisIdProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> yAxisIdProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.Comparable> x1Property
protected final com.scichart.core.framework.SmartProperty<java.lang.Comparable> y1Property
protected final com.scichart.core.framework.SmartProperty<java.lang.Comparable> x2Property
protected final com.scichart.core.framework.SmartProperty<java.lang.Comparable> y2Property
protected final com.scichart.core.framework.SmartProperty<AnnotationSurfaceEnum> annotationSurfaceProperty
protected final com.scichart.core.framework.SmartProperty<AnnotationCoordinateMode> coordinateModeProperty
protected final com.scichart.core.framework.SmartProperty<Direction2D> dragDirectionsProperty
protected final com.scichart.core.framework.SmartProperty<Direction2D> resizeDirectionsProperty
protected final com.scichart.core.framework.SmartProperty<IResizingGrip> resizingGripProperty
protected final com.scichart.core.framework.SmartProperty<IAnnotationSelectionDrawable> selectionDrawableProperty
protected final com.scichart.core.framework.SmartPropertyInteger zIndexProperty
protected final java.lang.Runnable invalidateRunnable
protected final AnnotationCoordinates annotationCoordinates
protected AnnotationBase(android.content.Context context)
protected AnnotationBase(android.content.Context context, android.util.AttributeSet attrs)
protected AnnotationBase(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
protected AnnotationBase(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
public final boolean isEditable()
isEditable
in interface IAnnotation
public final boolean getIsEditable()
getIsEditable
in interface IAnnotation
public final void setIsEditable(boolean isEditable)
setIsEditable
in interface IAnnotation
isEditable
- The new isEditable
valuepublic final boolean isSelected()
isSelected
in interface IAnnotation
isSelected
in class android.view.View
public final void setSelected(boolean isSelected)
setSelected
in interface IAnnotation
setSelected
in class android.view.View
isSelected
- The new isSelected
valuepublic final boolean isHidden()
isHidden
in interface IAnnotation
public final void setIsHidden(boolean isHidden)
setIsHidden
in interface IAnnotation
isHidden
- The new isHidden
valuepublic final void setZIndex(int zIndex)
zIndex
- The new z-index valuepublic final int getZIndex()
public final void setResizeDirections(Direction2D resizeDirections)
Direction2D
with the Resize direction for this annotationsetResizeDirections
in interface IAnnotation
resizeDirections
- The Direction2D
valuepublic final Direction2D getResizeDirections()
Direction2D
with the Resize direction for this annotationgetResizeDirections
in interface IAnnotation
Direction2D
valuepublic final void setDragDirections(Direction2D dragDirections)
Direction2D
with the Drag direction for this annotationsetDragDirections
in interface IAnnotation
dragDirections
- The Direction2D
valuepublic final Direction2D getDragDirections()
Direction2D
with the Drag direction for this annotationgetDragDirections
in interface IAnnotation
Direction2D
value@NonNull public final IResizingGrip getResizingGrip()
IResizingGrip
instance for this annotationIResizingGrip
instancepublic final void setResizingGrip(@NonNull IResizingGrip resizingGrip)
IResizingGrip
instance for this annotationresizingGrip
- The IResizingGrip
instance@NonNull public final IAnnotationSelectionDrawable getAnnotationSelectionDrawable()
IAnnotationSelectionDrawable
instance for this annotationIAnnotationSelectionDrawable
instancepublic final void setAnnotationSelectionDrawable(@NonNull IAnnotationSelectionDrawable annotationSelectionDrawable)
IAnnotationSelectionDrawable
instance for this annotationannotationSelectionDrawable
- The IAnnotationSelectionDrawable
instancepublic final java.lang.String getXAxisId()
getXAxisId
in interface IAnnotation
IAxisCore.getAxisId()
public final void setXAxisId(java.lang.String xAxisId)
setXAxisId
in interface IAnnotation
xAxisId
- The XAxis IdIAxisCore.getAxisId()
public final java.lang.String getYAxisId()
getYAxisId
in interface IAnnotation
IAxisCore.getAxisId()
public final void setYAxisId(java.lang.String yAxisId)
setYAxisId
in interface IAnnotation
yAxisId
- The YAxis IdIAxisCore.getAxisId()
public final java.lang.Comparable getX1()
getX1
in interface IAnnotation
public final void setX1(java.lang.Comparable x1)
AnnotationCoordinateMode.Absolute
, this must be a data-value on the XAxis such as a double for NumericAxis
For AnnotationCoordinateMode.Relative
, this must be a double value between 0.0 and 1.0, where 0.0 is the far left of the XAxis and 1.0 is the far right.setX1
in interface IAnnotation
x1
- The X1 Coordinate valuepublic final java.lang.Comparable getY1()
getY1
in interface IAnnotation
public final void setY1(java.lang.Comparable y1)
AnnotationCoordinateMode.Absolute
, this must be a data-value on the YAxis such as a double for NumericAxis
For AnnotationCoordinateMode.Relative
, this must be a double value between 0.0 and 1.0, where 0.0 is the far left of the YAxis and 1.0 is the far right.setY1
in interface IAnnotation
y1
- The Y1 Coordinate valuepublic final java.lang.Comparable getX2()
getX2
in interface IAnnotation
public final void setX2(java.lang.Comparable x2)
AnnotationCoordinateMode.Absolute
, this must be a data-value on the XAxis such as a double for NumericAxis
For AnnotationCoordinateMode.Relative
, this must be a double value between 0.0 and 1.0, where 0.0 is the far left of the XAxis and 1.0 is the far right.setX2
in interface IAnnotation
x2
- The X2 Coordinate valuepublic final java.lang.Comparable getY2()
getY2
in interface IAnnotation
public final void setY2(java.lang.Comparable y2)
AnnotationCoordinateMode.Absolute
, this must be a data-value on the YAxis such as a double for NumericAxis
For AnnotationCoordinateMode.Relative
, this must be a double value between 0.0 and 1.0, where 0.0 is the far left of the YAxis and 1.0 is the far right.setY2
in interface IAnnotation
y2
- The Y2 Coordinate valuepublic final AnnotationCoordinateMode getCoordinateMode()
AnnotationCoordinateMode
to use when placing the annotation.
E.g. the default of AnnotationCoordinateMode.Absolute
requires that X1,Y1 coordinates are data-values.
The AnnotationCoordinateMode.Relative
requires that X1,Y1 are double values from 0.0 to 1.0
AnnotationCoordinateMode
for this annotationpublic final void setCoordinateMode(AnnotationCoordinateMode coordinateMode)
AnnotationCoordinateMode
to use when placing the annotation.
E.g. the default of AnnotationCoordinateMode.Absolute
requires that X1,Y1 coordinates are data-values.
The AnnotationCoordinateMode.Relative
requires that X1,Y1 are double values from 0.0 to 1.0
coordinateMode
- The AnnotationCoordinateMode
for this annotationpublic final AnnotationSurfaceEnum getAnnotationSurface()
AnnotationSurfaceEnum
to place the annotation on. The default is AnnotationSurfaceEnum.AboveChart
AnnotationSurfaceEnum
value for this annotationpublic final void setAnnotationSurface(AnnotationSurfaceEnum annotationsSurface)
AnnotationSurfaceEnum
to place the annotation on. The default is AnnotationSurfaceEnum.AboveChart
annotationsSurface
- The AnnotationSurfaceEnum
value for this annotationprotected boolean dispatchGenericPointerEvent(android.view.MotionEvent event)
dispatchGenericPointerEvent
in class android.view.ViewGroup
public boolean dispatchTouchEvent(android.view.MotionEvent ev)
dispatchTouchEvent
in class android.view.ViewGroup
protected boolean isPointWithinBounds(float x, float y)
x
- The x coordinate to checky
- The y coordinate to checkprotected boolean isPointWithinBounds(float x, float y, com.scichart.core.framework.IHitTestable relativeTo)
IHitTestable
element is within annotation's boundsx
- The x coordinate to checky
- The y coordinate to checkrelativeTo
- The IHitTestable
element to use when checking the pointpublic void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
public void onStrategyManagerChanged(IStrategyManager manager)
IStrategyManager
onStrategyManagerChanged
in interface IStrategyManagerListener
manager
- The IStrategyManager
which has been changedprotected abstract IAnnotationPlacementStrategy initPlacementStrategy(CoordinateSystem newCoordinateSystem)
IAnnotationPlacementStrategy
for specified CoordinateSystem
newCoordinateSystem
- The new CoordinateSystem
valueIAnnotationPlacementStrategy
instancepublic void onAxisAlignmentChanged(IAxis axis, AxisAlignment oldValue, AxisAlignment newValue)
onAxisAlignmentChanged
in interface ILayoutManagerListener
axis
- axis which has been changedoldValue
- old axis alignmentnewValue
- new axis alignmentpublic void detach()
detach
in interface com.scichart.core.framework.IAttachable
public final boolean isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
protected void onAttachedToWindow()
onAttachedToWindow
in class android.view.ViewGroup
protected void onDetachedFromWindow()
onDetachedFromWindow
in class android.view.ViewGroup
public final boolean onTrySelectAnnotationContainer()
IAnnotationContainer
instanceonTrySelectAnnotationContainer
in interface IAnnotationInteractionService
public final ISciChartSurface getParentSurface()
getParentSurface
in interface ISciChartSurfaceProvider
public final com.scichart.core.IServiceContainer getServices()
getServices
in interface com.scichart.core.IServiceProvider
public IAxis getXAxis()
getXAxis
in interface IAnnotation
protected final IAxis getXAxis(java.lang.String axisId)
axisId
- The axis idpublic IAxis getYAxis()
getYAxis
in interface IAnnotation
protected final IAxis getYAxis(java.lang.String axisId)
axisId
- The axis idprotected final IAdornerLayer getAdornerLayer()
IAdornerLayer
instance to place annotation adorners.public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic final boolean getIsSuspended()
getIsSuspended
in interface com.scichart.core.framework.ISuspendable
public final com.scichart.core.framework.IUpdateSuspender suspendUpdates()
suspendUpdates
in interface com.scichart.core.framework.ISuspendable
public void resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender)
resumeUpdates
in interface com.scichart.core.framework.ISuspendable
public void decrementSuspend()
decrementSuspend
in interface com.scichart.core.framework.ISuspendable
public void setOnAnnotationIsHiddenChangeListener(OnAnnotationIsHiddenChangeListener listener)
OnAnnotationIsHiddenChangeListener
which is called when IAnnotation.isHidden()
property changessetOnAnnotationIsHiddenChangeListener
in interface IAnnotation
listener
- The listener to setpublic void setOnAnnotationSelectionChangeListener(OnAnnotationSelectionChangeListener listener)
OnAnnotationSelectionChangeListener
which is called when IAnnotation.isSelected()
property changessetOnAnnotationSelectionChangeListener
in interface IAnnotation
listener
- The listener to setpublic void setOnAnnotationDragListener(OnAnnotationDragListener listener)
OnAnnotationDragListener
which is called when drag event occurs on this annotationsetOnAnnotationDragListener
in interface IAnnotation
listener
- The listener to setpublic void onDrawAdorner(android.graphics.Canvas adornerCanvas)
Canvas
onDrawAdorner
in interface IAdornerProvider
adornerCanvas
- The target canvas to draw adorner onpublic void updateAdorner()
updateAdorner
in interface IAdornerProvider
public boolean onDragStarted(float startPointX, float startPointY, IAdornerLayer relativeTo)
IAdornerLayer
onDragStarted
in interface IAdornerProvider
startPointX
- The x coordinate in pixels relative to parent IAdornerLayer
startPointY
- The y coordiante in pixels relative to parent IAdornerLayer
relativeTo
- The IAdornerLayer
instanceprotected final void notifyOnDragStarted()
OnAnnotationDragListener
about start of drag operationpublic final boolean onDragDelta(float horizontalOffset, float verticalOffset)
onDragDelta
in interface IAdornerProvider
horizontalOffset
- The horizontal offset in pixelsverticalOffset
- The vertical offset in pixelsprotected final void notifyOnDragDelta(float horizontalOffset, float verticalOffset)
OnAnnotationDragListener
about drag operationhorizontalOffset
- The horizontal offset in pixelsverticalOffset
- The vertical offset in pixelspublic final void onDragEnded()
onDragEnded
in interface IAdornerProvider
protected final void notifyOnDragEnded()
OnAnnotationDragListener
about end of drag operationpublic void onAnnotationSelected()
onAnnotationSelected
in interface IAnnotationContainer
public void onAnnotationUnselected()
onAnnotationUnselected
in interface IAnnotationContainer
protected void onXAxisIdChanged()
protected void onYAxisIdChanged()
public final void show()
IAnnotation.hide()
callshow
in interface IAnnotation
public final void hide()
ISciChartSurface
hide
in interface IAnnotation
public final void refresh()
refresh
in interface IAnnotation
protected void tryUpdate(ICoordinateCalculator xCalc, ICoordinateCalculator yCalc)
xCalc
- The current ICoordinateCalculator
for XAxisyCalc
- The current ICoordinateCalculator
for YAxispublic void update(IAxis xAxis, IAxis yAxis)
ISciChartSurface
update
in interface IAnnotation
xAxis
- The XAxis instanceyAxis
- The YAxis instanceprotected void update(ICoordinateCalculator xCalc, ICoordinateCalculator yCalc)
ISciChartSurface
xCalc
- The current ICoordinateCalculator
for XAxisyCalc
- The current ICoordinateCalculator
for YAxisprotected void updateAnnotationCoordinates(AnnotationCoordinates annotationCoordinates, IAnnotationSurface annotationSurface, ICoordinateCalculator xCalc, ICoordinateCalculator yCalc)
AnnotationCoordinates
instance associated with this annotationannotationCoordinates
- The AnnotationCoordinates
to updateannotationSurface
- The parent IAnnotationSurface
xCalc
- The current ICoordinateCalculator
for XAxisyCalc
- The current ICoordinateCalculator
for YAxisprotected void updatePointCoordinates(android.graphics.PointF coordPoint, java.lang.Comparable xDataValue, java.lang.Comparable yDataValue, IAnnotationSurface annotationSurface, ICoordinateCalculator xCalc, ICoordinateCalculator yCalc)
coordPoint
- The coordinate point to updatexDataValue
- The X data valueyDataValue
- The Y Data valueannotationSurface
- The parent IAnnotationSurface
xCalc
- The current ICoordinateCalculator
for XAxisyCalc
- The current ICoordinateCalculator
for YAxisprotected float toCoordinate(java.lang.Comparable dataValue, int canvasMeasurement, ICoordinateCalculator coordCalc, Direction2D direction)
dataValue
- The data value to convertcanvasMeasurement
- The size of IAnnotationSurface
coordCalc
- The current ICoordinateCalculator
direction
- The X or Y direction for the transformationpublic void makeVisible()
makeVisible
in interface IAnnotationContainer
protected void updateAnnotationPlacement()
public void makeInvisible()
makeInvisible
in interface IAnnotationContainer
protected void detachAdorners(IAdornerLayer adornerLayer)
IAdornerProvider
from the parent IAdornerLayer
adornerLayer
- The parent IAdornerLayer
protected void attachAdorners(IAdornerLayer adornerLayer)
IAdornerProvider
to the parent IAdornerLayer
adornerLayer
- The parent IAdornerLayer
public final void moveBasePointTo(float xCoord, float yCoord, int index)
moveBasePointTo
in interface IAnnotation
xCoord
- The new x coordinate of base point in pixelsyCoord
- The new y coordinate of base point in pixelsindex
- The index of base point to moveprotected void moveBasePointTo(float xCoord, float yCoord, int index, IAxis xAxis, IAxis yAxis)
xCoord
- The new x coordinate of base point in pixelsyCoord
- The new y coordinate of base point in pixelsindex
- The index of base point to movexAxis
- The current XAxis instanceyAxis
- The current YAxis instanceprotected void setXYPropertiesFromIndex(java.lang.Comparable xValue, java.lang.Comparable yValue, int index)
xValue
- The X Value to setyValue
- The Y Value to setindex
- The index of base point to setprotected java.lang.Comparable fromCoordinate(float coord, IAxis axis)
coord
- The pixel coordinateaxis
- The axis for which the data value is calculatedprotected java.lang.Comparable fromRelativeCoordinate(float coord, IAxis axis)
coord
- The relative coordinate, in the range of 0.0 to 1.0 for extremes of the viewportaxis
- The axis for which the data value is calculatedpublic boolean isCoordinateValid(float coord, int canvasMeasurement)
coord
- the coordinatecanvasMeasurement
- The canvas dimension in this axisprotected final IAnnotationSurface getSurface()
IAnnotationSurface
for this annotationIAnnotationSurface
instancepublic final void moveAnnotation(float horizOffset, float vertOffset)
moveAnnotation
in interface IAnnotation
horizOffset
- The horizontal offset in pixelsvertOffset
- The vertical offset in pixelspublic boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent
in class android.view.View
public void invalidateElement()
invalidateElement
in interface com.scichart.core.framework.IInvalidatableElement
public void onYAxesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getYAxes()
collection drastically changedonYAxesDrasticallyChanged
in interface IAnnotation
surface
- The parent surfacepublic void onXAxesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getXAxes()
collection drastically changedonXAxesDrasticallyChanged
in interface IAnnotation
surface
- The parent surfacepublic void onYAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getYAxes()
collection changesonYAxesCollectionChanged
in interface IAnnotation
args
- The collection changed event argspublic void onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getXAxes()
collection changesonXAxesCollectionChanged
in interface IAnnotation
args
- The collection changed event args