oak.widget.spreadsheetview
Class SpreadsheetView

java.lang.Object
  extended by android.view.View
      extended by oak.widget.spreadsheetview.SpreadsheetView
All Implemented Interfaces:
android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.GestureDetector.OnGestureListener, android.view.KeyEvent.Callback

public class SpreadsheetView
extends android.view.View
implements android.view.GestureDetector.OnGestureListener


Nested Class Summary
static interface SpreadsheetView.OnCellClickListener
           
static interface SpreadsheetView.OnFooterChangedListener
           
static interface SpreadsheetView.OnFooterClickListener
           
static interface SpreadsheetView.OnHeaderClickListener
           
 
Nested classes/interfaces inherited from class android.view.View
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
 
Field Summary
protected  String[] footers
           
protected  String[] headers
           
protected  SpreadsheetRow[] objectData
           
protected  int[] sorted
           
static int SORTED_ASCENDING
           
static int SORTED_DESCENDING
           
static int SORTED_UNSORTED
           
 
Fields inherited from class android.view.View
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_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, 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_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_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_INHERIT, TEXT_ALIGNMENT_RESOLVED_DEFAULT, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y
 
Constructor Summary
SpreadsheetView(android.content.Context context)
           
SpreadsheetView(android.content.Context context, android.util.AttributeSet attrs)
           
SpreadsheetView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
           
 
Method Summary
protected  void drawStickyColumn(android.graphics.Canvas canvas)
           
protected  void drawStickyFooter(android.graphics.Canvas canvas)
           
protected  void drawStickyHeader(android.graphics.Canvas canvas)
           
 String getDataAt(int objectIndex, int valueIndex)
           
 SpreadsheetCell getDataCell()
           
 float getDataCellHeight()
           
 int getDataCellTextColor()
           
 float getDataCellTextSize()
           
 android.graphics.Typeface getDataCellTypeface()
           
 float getDataCellWidth()
           
 String getFooterAt(int valueIndex)
           
 String getHeaderAt(int valueIndex)
           
 android.graphics.Paint getHorizontalDividingPaint()
           
 SpreadsheetCell getLeftFootCornerCell()
           
 int getLeftFootCornerCellTextColor()
           
 android.graphics.Typeface getLeftFootCornerCellTypeface()
           
 SpreadsheetCell getLeftHeadCornerCell()
           
 int getLeftHeadCornerCellTextColor()
           
 android.graphics.Typeface getLeftHeadCornerCellTypeface()
           
 int getNumberNonStickyColumns()
           
 int getNumberObjects()
           
 int getNumberStickyColumns()
           
 SpreadsheetRow getRowAt(int objectIndex)
           
 int getSortedStatus(int valueIndex)
           
 SpreadsheetCell getStickyColumnCell()
           
 int getStickyColumnCellTextColor()
           
 android.graphics.Typeface getStickyColumnCellTypeface()
           
 float getStickyColumnTextSize()
           
 float getStickyColumnWidth(int columnIndex)
           
 SpreadsheetCell getStickyFooterCell()
           
 int getStickyFooterCellTextColor()
           
 float getStickyFooterHeight()
           
 float getStickyFooterTextSize()
           
 SpreadsheetCell getStickyHeaderCell()
           
 int getStickyHeaderCellTextColor()
           
 android.graphics.Typeface getStickyHeaderCellTypeface()
           
 float getStickyHeaderHeight()
           
 float getStickyHeaderTextSize()
           
 float getStickyTableHeight()
           
 float getStickyTableWidth()
           
 int getTotalNumberColumns()
           
 float getTotalStickyColumnsWidth()
           
 android.graphics.Paint getVerticalDividingPaint()
           
 void hideStickyFooter()
           
 void incStickyColumnWidth(int columnIndex, float dw)
           
 void incStickyFooterHeight(float dh)
           
 void incStickyHeaderHeight(float dh)
           
 boolean isFooterSelected(int valueIndex)
           
 boolean isHeaderSelected(int valueIndex)
           
 boolean isSelected(int objectIndex, int valueIndex)
           
 boolean onDown(android.view.MotionEvent e)
           
protected  void onDraw(android.graphics.Canvas canvas)
           
 boolean onFling(android.view.MotionEvent e1, android.view.MotionEvent e2, float velocityX, float velocityY)
           
 void onLongPress(android.view.MotionEvent e)
           
 boolean onScroll(android.view.MotionEvent e1, android.view.MotionEvent e2, float distanceX, float distanceY)
           
 void onShowPress(android.view.MotionEvent e)
           
 boolean onSingleTapUp(android.view.MotionEvent e)
           
protected  void onSizeChanged(int width, int height, int oldwidth, int oldheight)
           
 boolean onTouchEvent(android.view.MotionEvent event)
           
 void scroll(float x, float y)
           
 void select(int objectIndex, int valueIndex, boolean select)
           
 void selectColumn(int valueIndex, boolean select)
           
 void selectFooter(int valueIndex, boolean select)
           
 void selectHeader(int valueIndex, boolean select)
           
 void selectRow(int objectIndex, boolean select)
           
 void setAllCellsBorderWidth(float horizontalWidth, float verticalWidth)
           
 void setAllCellsSelectedTextColor(int color)
           
 void setAllCellsTextColor(int color)
           
 void setAllCellsTextSize(float textSize)
           
 void setAllCellsTypeface(android.graphics.Typeface typeface)
           
 void setData(SpreadsheetRow[] data, String[] headers)
           
 void setDataAt(int objectIndex, int valueIndex, String data)
           
 void setDataCell(SpreadsheetCell cell)
           
 void setDataCellDimensions(float width, float height)
           
 void setDataCellTextColor(int color)
           
 void setDataCellTextSize(float size)
           
 void setDataCellTypeface(android.graphics.Typeface typeface)
           
 void setFooterChangedListener(SpreadsheetView.OnFooterChangedListener listener)
           
 void setFooters(String[] footers, float height)
           
 void setHorizontalDividingPaint(android.graphics.Paint paint)
           
 void setLeftFootCornerCell(SpreadsheetCell cell)
           
 void setLeftFootCornerCellTextColor(int color)
           
 void setLeftFootCornerCellTypeface(android.graphics.Typeface typeface)
           
 void setLeftHeadCornerCell(SpreadsheetCell cell)
           
 void setLeftHeadCornerCellTextColor(int color)
           
 void setLeftHeadCornerCellTypeface(android.graphics.Typeface typeface)
           
 void setNumberStickyColumns(int number)
           
 void setOnCellClickListener(SpreadsheetView.OnCellClickListener listener)
           
 void setOnFooterClickListener(SpreadsheetView.OnFooterClickListener listener)
           
 void setOnHeaderClickListener(SpreadsheetView.OnHeaderClickListener listener)
           
 void setRow(int objectIndex, SpreadsheetRow row)
           
 void setRow(int objectIndex, String[] row)
           
 void setStickyColumnCell(SpreadsheetCell cell)
           
 void setStickyColumnCellTextColor(int color)
           
 void setStickyColumnCellTypeface(android.graphics.Typeface typeface)
           
 void setStickyColumnTextSize(float size)
           
 void setStickyColumnWidth(int columnIndex, float width)
           
 void setStickyFooterCell(SpreadsheetCell cell)
           
 void setStickyFooterCellTextColor(int color)
           
 void setStickyFooterCellTypeface(android.graphics.Typeface typeface)
           
 void setStickyFooterHeight(float height)
           
 void setStickyFooterTextSize(float size)
           
 void setStickyHeaderCell(SpreadsheetCell cell)
           
 void setStickyHeaderCellTextColor(int color)
           
 void setStickyHeaderCellTypeface(android.graphics.Typeface typeface)
           
 void setStickyHeaderHeight(float height)
           
 void setStickyHeaderTextSize(float size)
           
 void setValuesColumn(int headerIndex, String[] column)
           
 void setVerticalDividingPaint(android.graphics.Paint paint)
           
 void showStickyFooter(float height)
           
 void sortDataAscBy(int valueIndex, Comparator<SpreadsheetRow> comparator)
           
 void sortDataDescBy(int valueIndex, Comparator<SpreadsheetRow> comparator)
           
 
Methods inherited from class android.view.View
addChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, 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, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, 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, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onAttachedToWindow, 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, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onStartTemporaryDetach, 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, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectData

protected SpreadsheetRow[] objectData

headers

protected String[] headers

sorted

protected int[] sorted

SORTED_UNSORTED

public static final int SORTED_UNSORTED
See Also:
Constant Field Values

SORTED_ASCENDING

public static final int SORTED_ASCENDING
See Also:
Constant Field Values

SORTED_DESCENDING

public static final int SORTED_DESCENDING
See Also:
Constant Field Values

footers

protected String[] footers
Constructor Detail

SpreadsheetView

public SpreadsheetView(android.content.Context context)

SpreadsheetView

public SpreadsheetView(android.content.Context context,
                       android.util.AttributeSet attrs)

SpreadsheetView

public SpreadsheetView(android.content.Context context,
                       android.util.AttributeSet attrs,
                       int defStyleAttr)
Method Detail

onSizeChanged

protected void onSizeChanged(int width,
                             int height,
                             int oldwidth,
                             int oldheight)
Overrides:
onSizeChanged in class android.view.View

onTouchEvent

public boolean onTouchEvent(android.view.MotionEvent event)
Overrides:
onTouchEvent in class android.view.View

setFooterChangedListener

public void setFooterChangedListener(SpreadsheetView.OnFooterChangedListener listener)

setOnHeaderClickListener

public void setOnHeaderClickListener(SpreadsheetView.OnHeaderClickListener listener)

setOnFooterClickListener

public void setOnFooterClickListener(SpreadsheetView.OnFooterClickListener listener)

setOnCellClickListener

public void setOnCellClickListener(SpreadsheetView.OnCellClickListener listener)

sortDataAscBy

public void sortDataAscBy(int valueIndex,
                          Comparator<SpreadsheetRow> comparator)

sortDataDescBy

public void sortDataDescBy(int valueIndex,
                           Comparator<SpreadsheetRow> comparator)

setData

public void setData(SpreadsheetRow[] data,
                    String[] headers)

scroll

public void scroll(float x,
                   float y)

selectRow

public void selectRow(int objectIndex,
                      boolean select)

selectColumn

public void selectColumn(int valueIndex,
                         boolean select)

select

public void select(int objectIndex,
                   int valueIndex,
                   boolean select)

selectFooter

public void selectFooter(int valueIndex,
                         boolean select)

selectHeader

public void selectHeader(int valueIndex,
                         boolean select)

isFooterSelected

public boolean isFooterSelected(int valueIndex)

isHeaderSelected

public boolean isHeaderSelected(int valueIndex)

isSelected

public boolean isSelected(int objectIndex,
                          int valueIndex)

onDraw

protected void onDraw(android.graphics.Canvas canvas)
Overrides:
onDraw in class android.view.View

drawStickyColumn

protected void drawStickyColumn(android.graphics.Canvas canvas)

drawStickyHeader

protected void drawStickyHeader(android.graphics.Canvas canvas)

drawStickyFooter

protected void drawStickyFooter(android.graphics.Canvas canvas)

getStickyTableWidth

public float getStickyTableWidth()

getStickyTableHeight

public float getStickyTableHeight()

onDown

public boolean onDown(android.view.MotionEvent e)
Specified by:
onDown in interface android.view.GestureDetector.OnGestureListener

onShowPress

public void onShowPress(android.view.MotionEvent e)
Specified by:
onShowPress in interface android.view.GestureDetector.OnGestureListener

onSingleTapUp

public boolean onSingleTapUp(android.view.MotionEvent e)
Specified by:
onSingleTapUp in interface android.view.GestureDetector.OnGestureListener

onScroll

public boolean onScroll(android.view.MotionEvent e1,
                        android.view.MotionEvent e2,
                        float distanceX,
                        float distanceY)
Specified by:
onScroll in interface android.view.GestureDetector.OnGestureListener

onLongPress

public void onLongPress(android.view.MotionEvent e)
Specified by:
onLongPress in interface android.view.GestureDetector.OnGestureListener

onFling

public boolean onFling(android.view.MotionEvent e1,
                       android.view.MotionEvent e2,
                       float velocityX,
                       float velocityY)
Specified by:
onFling in interface android.view.GestureDetector.OnGestureListener

getTotalNumberColumns

public int getTotalNumberColumns()

getNumberNonStickyColumns

public int getNumberNonStickyColumns()

getTotalStickyColumnsWidth

public float getTotalStickyColumnsWidth()

setDataAt

public void setDataAt(int objectIndex,
                      int valueIndex,
                      String data)

getDataAt

public String getDataAt(int objectIndex,
                        int valueIndex)

getNumberObjects

public int getNumberObjects()

setStickyColumnWidth

public void setStickyColumnWidth(int columnIndex,
                                 float width)

getStickyColumnWidth

public float getStickyColumnWidth(int columnIndex)

setNumberStickyColumns

public void setNumberStickyColumns(int number)

getNumberStickyColumns

public int getNumberStickyColumns()

incStickyColumnWidth

public void incStickyColumnWidth(int columnIndex,
                                 float dw)

setStickyHeaderTextSize

public void setStickyHeaderTextSize(float size)

getStickyHeaderTextSize

public float getStickyHeaderTextSize()

setStickyFooterTextSize

public void setStickyFooterTextSize(float size)

getStickyFooterTextSize

public float getStickyFooterTextSize()

setStickyColumnTextSize

public void setStickyColumnTextSize(float size)

getStickyColumnTextSize

public float getStickyColumnTextSize()

setDataCellTextSize

public void setDataCellTextSize(float size)

getDataCellTextSize

public float getDataCellTextSize()

incStickyHeaderHeight

public void incStickyHeaderHeight(float dh)

setStickyHeaderHeight

public void setStickyHeaderHeight(float height)

getStickyHeaderHeight

public float getStickyHeaderHeight()

hideStickyFooter

public void hideStickyFooter()

showStickyFooter

public void showStickyFooter(float height)

setStickyFooterHeight

public void setStickyFooterHeight(float height)

getStickyFooterHeight

public float getStickyFooterHeight()

incStickyFooterHeight

public void incStickyFooterHeight(float dh)

setDataCellDimensions

public void setDataCellDimensions(float width,
                                  float height)

getDataCellWidth

public float getDataCellWidth()

getDataCellHeight

public float getDataCellHeight()

setValuesColumn

public void setValuesColumn(int headerIndex,
                            String[] column)

setFooters

public void setFooters(String[] footers,
                       float height)

setRow

public void setRow(int objectIndex,
                   String[] row)

setRow

public void setRow(int objectIndex,
                   SpreadsheetRow row)

getRowAt

public SpreadsheetRow getRowAt(int objectIndex)

getFooterAt

public String getFooterAt(int valueIndex)

getHeaderAt

public String getHeaderAt(int valueIndex)

setAllCellsTextSize

public void setAllCellsTextSize(float textSize)

setAllCellsBorderWidth

public void setAllCellsBorderWidth(float horizontalWidth,
                                   float verticalWidth)

setAllCellsTextColor

public void setAllCellsTextColor(int color)

setAllCellsSelectedTextColor

public void setAllCellsSelectedTextColor(int color)

setAllCellsTypeface

public void setAllCellsTypeface(android.graphics.Typeface typeface)

setLeftFootCornerCell

public void setLeftFootCornerCell(SpreadsheetCell cell)

getLeftFootCornerCell

public SpreadsheetCell getLeftFootCornerCell()

setLeftFootCornerCellTypeface

public void setLeftFootCornerCellTypeface(android.graphics.Typeface typeface)

getLeftFootCornerCellTypeface

public android.graphics.Typeface getLeftFootCornerCellTypeface()

setLeftFootCornerCellTextColor

public void setLeftFootCornerCellTextColor(int color)

getLeftFootCornerCellTextColor

public int getLeftFootCornerCellTextColor()

setLeftHeadCornerCell

public void setLeftHeadCornerCell(SpreadsheetCell cell)

getLeftHeadCornerCell

public SpreadsheetCell getLeftHeadCornerCell()

setLeftHeadCornerCellTypeface

public void setLeftHeadCornerCellTypeface(android.graphics.Typeface typeface)

getLeftHeadCornerCellTypeface

public android.graphics.Typeface getLeftHeadCornerCellTypeface()

setLeftHeadCornerCellTextColor

public void setLeftHeadCornerCellTextColor(int color)

getLeftHeadCornerCellTextColor

public int getLeftHeadCornerCellTextColor()

setDataCell

public void setDataCell(SpreadsheetCell cell)

getDataCell

public SpreadsheetCell getDataCell()

setDataCellTypeface

public void setDataCellTypeface(android.graphics.Typeface typeface)

getDataCellTypeface

public android.graphics.Typeface getDataCellTypeface()

setDataCellTextColor

public void setDataCellTextColor(int color)

getDataCellTextColor

public int getDataCellTextColor()

setStickyColumnCell

public void setStickyColumnCell(SpreadsheetCell cell)

getStickyColumnCell

public SpreadsheetCell getStickyColumnCell()

setStickyColumnCellTypeface

public void setStickyColumnCellTypeface(android.graphics.Typeface typeface)

getStickyColumnCellTypeface

public android.graphics.Typeface getStickyColumnCellTypeface()

setStickyColumnCellTextColor

public void setStickyColumnCellTextColor(int color)

getStickyColumnCellTextColor

public int getStickyColumnCellTextColor()

setStickyHeaderCell

public void setStickyHeaderCell(SpreadsheetCell cell)

getStickyHeaderCell

public SpreadsheetCell getStickyHeaderCell()

setStickyHeaderCellTypeface

public void setStickyHeaderCellTypeface(android.graphics.Typeface typeface)

getStickyHeaderCellTypeface

public android.graphics.Typeface getStickyHeaderCellTypeface()

setStickyHeaderCellTextColor

public void setStickyHeaderCellTextColor(int color)

getStickyHeaderCellTextColor

public int getStickyHeaderCellTextColor()

setStickyFooterCell

public void setStickyFooterCell(SpreadsheetCell cell)

getStickyFooterCell

public SpreadsheetCell getStickyFooterCell()

setStickyFooterCellTypeface

public void setStickyFooterCellTypeface(android.graphics.Typeface typeface)

setStickyFooterCellTextColor

public void setStickyFooterCellTextColor(int color)

getStickyFooterCellTextColor

public int getStickyFooterCellTextColor()

setHorizontalDividingPaint

public void setHorizontalDividingPaint(android.graphics.Paint paint)

getHorizontalDividingPaint

public android.graphics.Paint getHorizontalDividingPaint()

setVerticalDividingPaint

public void setVerticalDividingPaint(android.graphics.Paint paint)

getVerticalDividingPaint

public android.graphics.Paint getVerticalDividingPaint()

getSortedStatus

public int getSortedStatus(int valueIndex)


Copyright © 2011-2014. All Rights Reserved.