public class LineChartView
extends android.view.View
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
LineChartView.Point |
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, 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.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected android.graphics.drawable.ShapeDrawable |
chartDrawable |
protected long |
chartRightMargin |
protected long |
chartTopMargin |
protected android.graphics.Paint |
framePaint |
protected android.graphics.Paint |
labelPaint |
protected LineChartStyle |
lineChartStyle |
protected java.lang.Long |
manualXGridUnit |
protected java.util.List<java.lang.Long> |
manualXLabels |
protected java.lang.Long |
manualYGridUnit |
protected android.graphics.Paint |
paint |
protected java.util.List<LineChartView.Point> |
points |
protected android.graphics.drawable.ShapeDrawable |
xLabelDrawable |
protected long |
xLabelHeight |
protected android.graphics.drawable.ShapeDrawable |
yLabelDrawable |
protected long |
yLabelWidth |
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, 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, 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, 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, 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, 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_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_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y| コンストラクタと説明 |
|---|
LineChartView(android.content.Context context,
java.util.List<LineChartView.Point> points) |
LineChartView(android.content.Context context,
java.util.List<LineChartView.Point> points,
LineChartStyle lineChartStyle) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
drawChartFrame(android.graphics.Canvas canvas,
float left,
float top,
float right,
float bottom) |
protected void |
drawChartFrameBorder(android.graphics.Canvas canvas,
float left,
float top,
float right,
float bottom) |
protected void |
drawLineChart(android.graphics.drawable.ShapeDrawable chartDrawable) |
protected void |
drawLines(android.graphics.Canvas canvas,
long minX,
long xrange,
long minY,
long yrange) |
protected void |
drawPoints(android.graphics.Canvas canvas,
long minX,
long xrange,
long minY,
long yrange) |
protected void |
drawXGrid(android.graphics.Canvas canvas,
long minX,
long xrange) |
protected void |
drawXLabels(android.graphics.drawable.ShapeDrawable labelDrawable) |
protected void |
drawYGrid(android.graphics.Canvas canvas,
long minY,
long yrange) |
protected void |
drawYLabels(android.graphics.drawable.ShapeDrawable labelDrawable) |
protected java.lang.String |
formatXLabel(long x) |
protected java.lang.String |
formatYLabel(long y) |
protected float |
getChartBottomMargin() |
protected float |
getChartLeftMargin() |
protected float |
getChartRightMargin() |
protected float |
getChartTopMargin() |
protected long |
getMaxX() |
protected long |
getMaxY() |
protected long |
getMinX() |
protected long |
getMinY() |
protected long |
getRawMaxX() |
protected long |
getRawMaxY() |
protected long |
getRawMinX() |
protected long |
getStep(long maxValue) |
protected float |
getXCoordinate(int canvasWidth,
LineChartView.Point point,
long minX,
long xrange) |
protected float |
getXCoordinate(int canvasWidth,
long x,
long minX,
long xrange) |
protected float |
getXCoordinate(int canvasWidth,
long x,
long minX,
long xrange,
boolean inChartArea) |
long |
getXGridUnit() |
protected float |
getYCoordinate(int canvasHeight,
LineChartView.Point point,
long minY,
long yrange) |
protected float |
getYCoordinate(int canvasHeight,
long y,
long minY,
long yrange) |
protected float |
getYCoordinate(int canvasHeight,
long y,
long minY,
long yrange,
boolean inChartArea) |
long |
getYGridUnit() |
protected void |
measureXLabel() |
protected void |
measureYLabel() |
protected void |
onDraw(android.graphics.Canvas canvas) |
void |
setXGridUnit(long xGridUnit) |
void |
setXLabels(java.util.List<java.lang.Long> labels) |
void |
setYGridUnit(long yGridUnit) |
void |
setYLabels(java.util.List<java.lang.Long> labels) |
void |
updateDrawables() |
addChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableStateChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, fitSystemWindows, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onAttachedToWindow, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onDetachedFromWindow, onDisplayHint, onDragEvent, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onMeasure, onOverScrolled, onPopulateAccessibilityEvent, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setClipBounds, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, toString, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDrawprotected final java.util.List<LineChartView.Point> points
protected final android.graphics.Paint paint
protected final android.graphics.Paint labelPaint
protected final android.graphics.Paint framePaint
protected final android.graphics.drawable.ShapeDrawable chartDrawable
protected final android.graphics.drawable.ShapeDrawable yLabelDrawable
protected final android.graphics.drawable.ShapeDrawable xLabelDrawable
protected final LineChartStyle lineChartStyle
protected java.lang.Long manualXGridUnit
protected java.lang.Long manualYGridUnit
protected long yLabelWidth
protected long xLabelHeight
protected long chartTopMargin
protected long chartRightMargin
protected java.util.List<java.lang.Long> manualXLabels
public LineChartView(android.content.Context context,
java.util.List<LineChartView.Point> points)
public LineChartView(android.content.Context context,
java.util.List<LineChartView.Point> points,
LineChartStyle lineChartStyle)
public void updateDrawables()
protected void onDraw(android.graphics.Canvas canvas)
onDraw クラス内 android.view.Viewprotected void drawYLabels(android.graphics.drawable.ShapeDrawable labelDrawable)
protected void measureYLabel()
protected java.lang.String formatYLabel(long y)
protected void drawXLabels(android.graphics.drawable.ShapeDrawable labelDrawable)
protected void measureXLabel()
protected java.lang.String formatXLabel(long x)
protected void drawLineChart(android.graphics.drawable.ShapeDrawable chartDrawable)
protected void drawChartFrame(android.graphics.Canvas canvas,
float left,
float top,
float right,
float bottom)
protected void drawChartFrameBorder(android.graphics.Canvas canvas,
float left,
float top,
float right,
float bottom)
protected float getChartLeftMargin()
protected float getChartTopMargin()
protected float getChartRightMargin()
protected float getChartBottomMargin()
protected long getMinX()
protected long getRawMinX()
protected long getMaxX()
protected long getRawMaxX()
protected float getXCoordinate(int canvasWidth,
LineChartView.Point point,
long minX,
long xrange)
protected float getXCoordinate(int canvasWidth,
long x,
long minX,
long xrange)
protected float getXCoordinate(int canvasWidth,
long x,
long minX,
long xrange,
boolean inChartArea)
protected long getMinY()
protected long getMaxY()
protected long getRawMaxY()
protected long getStep(long maxValue)
protected float getYCoordinate(int canvasHeight,
LineChartView.Point point,
long minY,
long yrange)
protected float getYCoordinate(int canvasHeight,
long y,
long minY,
long yrange)
protected float getYCoordinate(int canvasHeight,
long y,
long minY,
long yrange,
boolean inChartArea)
protected void drawXGrid(android.graphics.Canvas canvas,
long minX,
long xrange)
protected void drawYGrid(android.graphics.Canvas canvas,
long minY,
long yrange)
protected void drawLines(android.graphics.Canvas canvas,
long minX,
long xrange,
long minY,
long yrange)
protected void drawPoints(android.graphics.Canvas canvas,
long minX,
long xrange,
long minY,
long yrange)
public void setXGridUnit(long xGridUnit)
public long getXGridUnit()
public void setYGridUnit(long yGridUnit)
public long getYGridUnit()
public void setXLabels(java.util.List<java.lang.Long> labels)
public void setYLabels(java.util.List<java.lang.Long> labels)