cn.limc.androidcharts.view
Class SpiderWebChart

java.lang.Object
  extended by android.view.View
      extended by cn.limc.androidcharts.view.BaseChart
          extended by cn.limc.androidcharts.view.SpiderWebChart
All Implemented Interfaces:
android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, IChart

public class SpiderWebChart
extends BaseChart

SpiderWebChart is a kind of graph that display data on web-like graph. each data was displayed in the longitude lines,like a area graph.

SpiderWebChartは円グラフとアリアグラフを合わせるのグラフ一種です、データをワッブで表示します。

SpiderWebChart是一种将数据内容显示在网状图上的一种图表、是将饼图和面积图结合表示的一种图表

Version:
v1.0 2011/05/30 14:01:54
Author:
limc

Nested Class Summary
 
Nested classes/interfaces inherited from class android.view.View
android.view.View.BaseSavedState, android.view.View.MeasureSpec, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnFocusChangeListener, android.view.View.OnKeyListener, android.view.View.OnLongClickListener, android.view.View.OnTouchListener
 
Field Summary
static int[] COLORS
           default color for display data
static int DEFAULT_BACKGROUND_COLOR
           default color for background
static boolean DEFAULT_DISPLAY_LATITUDE
           default should display latitude lines
static boolean DEFAULT_DISPLAY_LONGITUDE
           default should display longitude lines
static int DEFAULT_LATITUDE_COLOR
           default color for latitude lines
static int DEFAULT_LATITUDE_NUM
           default latitude numbers
static int DEFAULT_LONGITUDE_COLOR
           default color for longitude lines
static int DEFAULT_LONGITUDE_LENGTH
           default longitude length
static int DEFAULT_LONGITUDE_NUM
           default longitude numbers
static android.graphics.Point DEFAULT_POSITION
           default position
static java.lang.String DEFAULT_TITLE
           default title
 
Fields inherited from class android.view.View
DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, INVISIBLE, KEEP_SCREEN_ON, NO_ID, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, VISIBLE
 
Constructor Summary
SpiderWebChart(android.content.Context context)
           
SpiderWebChart(android.content.Context context, android.util.AttributeSet attrs)
           
SpiderWebChart(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
           
 
Method Summary
 int getBackgroundColor()
           
 java.util.List<java.util.List<TitleValueEntity>> getData()
           
 int getLatitudeColor()
           
 int getLatitudeNum()
           
 int getLongitudeColor()
           
 int getLongitudeLength()
           
 int getLongitudeNum()
           
 android.graphics.Point getPosition()
           
 java.lang.String getTitle()
           
 boolean isDisplayLatitude()
           
 boolean isDisplayLongitude()
           
 void setBackgroundColor(int backgroundColor)
           
 void setData(java.util.List<java.util.List<TitleValueEntity>> data)
           
 void setDisplayLatitude(boolean displayLatitude)
           
 void setDisplayLongitude(boolean displayLongitude)
           
 void setLatitudeColor(int latitudeColor)
           
 void setLatitudeNum(int latitudeNum)
           
 void setLongitudeColor(int longitudeColor)
           
 void setLongitudeLength(int longitudeLength)
           
 void setLongitudeNum(int longitudeNum)
           
 void setPosition(android.graphics.Point position)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class android.view.View
addFocusables, addFocusables, addTouchables, bringToFront, buildDrawingCache, buildDrawingCache, cancelLongPress, checkInputConnectionProxy, clearAnimation, clearFocus, computeScroll, createContextMenu, destroyDrawingCache, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewWithTag, focusSearch, forceLayout, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getContentDescription, getContext, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getKeepScreenOn, getKeyDispatcherState, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getNextFocusDownId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRootView, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getTag, getTag, getTop, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, hasFocus, hasFocusable, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPressed, isSaveEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onCreateInputConnection, onFinishTemporaryDetach, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAnimation, setBackgroundDrawable, setBackgroundResource, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setKeepScreenOn, setLayoutParams, setLongClickable, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnTouchListener, setPadding, setPressed, setSaveEnabled, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setSelected, setSoundEffectsEnabled, setTag, setTag, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, showContextMenu, startAnimation, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TITLE

public static final java.lang.String DEFAULT_TITLE

default title

タイトルのデフォルト値

默认图表标题

See Also:
Constant Field Values

DEFAULT_DISPLAY_LONGITUDE

public static final boolean DEFAULT_DISPLAY_LONGITUDE

default should display longitude lines

経線を表示する

默认是否显示经线

See Also:
Constant Field Values

DEFAULT_LONGITUDE_NUM

public static final int DEFAULT_LONGITUDE_NUM

default longitude numbers

経線の数量のデフォルト値

默认经线数量

See Also:
Constant Field Values

DEFAULT_LONGITUDE_LENGTH

public static final int DEFAULT_LONGITUDE_LENGTH

default longitude length

経線の長さのデフォルト値

默认经线长度

See Also:
Constant Field Values

DEFAULT_LONGITUDE_COLOR

public static final int DEFAULT_LONGITUDE_COLOR

default color for longitude lines

経線の色のデフォルト値

默认经线颜色

See Also:
Constant Field Values

DEFAULT_DISPLAY_LATITUDE

public static final boolean DEFAULT_DISPLAY_LATITUDE

default should display latitude lines

緯線を表示する

默认是否显示纬线

See Also:
Constant Field Values

DEFAULT_LATITUDE_NUM

public static final int DEFAULT_LATITUDE_NUM

default latitude numbers

緯線の数量のデフォルト値

默认纬线数量

See Also:
Constant Field Values

DEFAULT_LATITUDE_COLOR

public static final int DEFAULT_LATITUDE_COLOR

default color for latitude lines

緯線の色のデフォルト値

默认纬线颜色

See Also:
Constant Field Values

DEFAULT_POSITION

public static final android.graphics.Point DEFAULT_POSITION

default position

中心位置のデフォルト値

默认绘图中心位置


DEFAULT_BACKGROUND_COLOR

public static final int DEFAULT_BACKGROUND_COLOR

default color for background

背景の色のデフォルト値

默认蛛网背景色

See Also:
Constant Field Values

COLORS

public static final int[] COLORS

default color for display data

データの色のデフォルト値

默认数据的显示颜色

Constructor Detail

SpiderWebChart

public SpiderWebChart(android.content.Context context)

SpiderWebChart

public SpiderWebChart(android.content.Context context,
                      android.util.AttributeSet attrs,
                      int defStyle)

SpiderWebChart

public SpiderWebChart(android.content.Context context,
                      android.util.AttributeSet attrs)
Method Detail

getData

public java.util.List<java.util.List<TitleValueEntity>> getData()
Returns:
the data

setData

public void setData(java.util.List<java.util.List<TitleValueEntity>> data)
Parameters:
data - the data to set

getTitle

public java.lang.String getTitle()
Returns:
the title

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - the title to set

getPosition

public android.graphics.Point getPosition()
Returns:
the position

setPosition

public void setPosition(android.graphics.Point position)
Parameters:
position - the position to set

isDisplayLongitude

public boolean isDisplayLongitude()
Returns:
the displayLongitude

setDisplayLongitude

public void setDisplayLongitude(boolean displayLongitude)
Parameters:
displayLongitude - the displayLongitude to set

getLongitudeNum

public int getLongitudeNum()
Returns:
the longitudeNum

setLongitudeNum

public void setLongitudeNum(int longitudeNum)
Parameters:
longitudeNum - the longitudeNum to set

getLongitudeColor

public int getLongitudeColor()
Returns:
the longitudeColor

setLongitudeColor

public void setLongitudeColor(int longitudeColor)
Parameters:
longitudeColor - the longitudeColor to set

getLongitudeLength

public int getLongitudeLength()
Returns:
the longitudeLength

setLongitudeLength

public void setLongitudeLength(int longitudeLength)
Parameters:
longitudeLength - the longitudeLength to set

isDisplayLatitude

public boolean isDisplayLatitude()
Returns:
the displayLatitude

setDisplayLatitude

public void setDisplayLatitude(boolean displayLatitude)
Parameters:
displayLatitude - the displayLatitude to set

getLatitudeNum

public int getLatitudeNum()
Returns:
the latitudeNum

setLatitudeNum

public void setLatitudeNum(int latitudeNum)
Parameters:
latitudeNum - the latitudeNum to set

getLatitudeColor

public int getLatitudeColor()
Returns:
the latitudeColor

setLatitudeColor

public void setLatitudeColor(int latitudeColor)
Parameters:
latitudeColor - the latitudeColor to set

getBackgroundColor

public int getBackgroundColor()
Returns:
the backgroundColor

setBackgroundColor

public void setBackgroundColor(int backgroundColor)
Overrides:
setBackgroundColor in class android.view.View
Parameters:
backgroundColor - the backgroundColor to set