Inherits from CCSBaseChartView : UIControl
Declared in CCSGridChart.h
CCSGridChart.m

Overview

CCSGridChart

CCSGridChart is base type of all the charts that use a grid to display
like line-chart stick-chart etc. CCSGridChart implemented a simple grid
with basic functions what can be used in it’s inherited charts.

CCSGridChartは全部グリドチャートのベスクラスです、一部処理は共通化け実現した。

CCSGridChart是所有网格图表的基础类对象,它实现了基本的网格图表功能,这些功能将被它的继承类使用

Tasks

Other Methods

  •   axisXTitles

    Titles Array for display of X axis
    X軸の表示用タイトル配列
    X轴标题数组

    property
  •   axisYTitles

    Titles for display of Y axis
    Y軸の表示用タイトル配列
    Y轴标题数组

    property
  •   axisXColor

    Color of X axis
    X軸の色
    坐标轴X的显示颜色

    property
  •   axisYColor

    Color of Y axis
    Y軸の色
    坐标轴Y的显示颜色

    property
  •   longitudeColor

    Color of grid‘s longitude line
    経線の色
    网格经线的显示颜色

    property
  •   latitudeColor

    Color of grid‘s latitude line
    緯線の色
    网格纬线的显示颜色

    property
  •   borderColor

    Color of grid‘s border line
    枠線の色
    图边框的颜色

    property
  •   longitudeFontColor

    Color of text for the longitude degrees display
    経度のタイトルの色
    经线刻度字体颜色

    property
  •   latitudeFontColor

    Color of text for the latitude degrees display
    緯度のタイトルの色
    纬线刻度字体颜色

    property
  •   crossLinesColor

    Color of cross line inside grid when touched
    タッチしたポイント表示用十字線の色
    十字交叉线颜色

    property
  •   crossLinesFontColor

    Color of cross line degree text when touched
    タッチしたポイント表示用十字線度数文字の色
    十字交叉线坐标轴字体颜色

    property
  •   axisMarginLeft

    Margin of the axis to the left border
    轴線より左枠線の距離
    轴线左边距

    property
  •   axisMarginBottom

    Margin of the axis to the bottom border
    轴線より下枠線の距離
    轴线下边距

    property
  •   axisMarginTop

    Margin of the axis to the top border
    轴線より上枠線の距離
    轴线上边距

    property
  •   axisMarginRight

    Margin of the axis to the top border
    轴線より右枠線の距離
    轴线右边距

    property
  •   longitudeFontSize

    Font size of text for the longitude degrees display
    経度のタイトルの文字サイズ
    经线刻度字体大小

    property
  •   latitudeFontSize

    Font size of text for the latitude degrees display
    緯度のタイトルの文字サイズ
    纬线刻度字体大小

    property
  •   axisXPosition

    The position of X axis(top,bottom) reference:CCSGridChartAxisPosition
    X軸の表示位置(上、下)参照:CCSGridChartAxisPosition
    X轴显示位置(上、下)参看:CCSGridChartAxisPosition

    property
  •   axisYPosition

    The position of Y axis(left,right) reference:CCSGridChartAxisPosition
    Y軸の表示位置(左、右)参照:CCSGridChartAxisPosition
    Y轴显示位置(左、右)参看:CCSGridChartAxisPosition

    property
  •   displayAxisXTitle

    Should display the degrees in X axis?
    X軸のタイトルを表示するか?
    X轴上的标题是否显示

    property
  •   displayAxisYTitle

    Should display the degrees in Y axis?
    Y軸のタイトルを表示するか?
    Y轴上的标题是否显示

    property
  •   displayLongitude

    Should display longitude line?
    経線を表示するか?
    经线是否显示

    property
  •   dashLongitude

    Should display longitude as dashed line?
    経線を点線にするか?
    经线是否显示为虚线

    property
  •   displayLatitude

    Should display longitude line?
    緯線を表示するか?
    纬线是否显示

    property
  •   dashLatitude

    Should display latitude as dashed line?
    緯線を点線にするか?
    纬线是否显示为虚线

    property
  •   displayBorder

    Should display the border?
    枠を表示するか?
    控件是否显示边框

    property
  •   displayCrossXOnTouch

    Should display the Y cross line if grid is touched?
    タッチしたポイントがある場合、十字線の垂直線を表示するか?
    在控件被点击时,显示十字竖线线

    property
  •   displayCrossYOnTouch

    Should display the Y cross line if grid is touched?
    タッチしたポイントがある場合、十字線の水平線を表示するか?
    在控件被点击时,显示十字横线线

    property
  •   singleTouchPoint

    Touched point inside of grid
    タッチしたポイント
    单点触控的选中点

    property
  • – drawBorder:

    Draw the border
    枠を書く。
    绘制边框

  • – drawXAxis:

    Draw the X Axis
    X軸を書く。
    绘制X轴

  • – drawYAxis:

    Draw the Y Axis
    Y軸を書く。
    绘制Y轴

  • – drawAxisGridX:

    Draw the latitude lines
    緯線を書く。
    绘制纬线

  • – drawAxisGridY:

    Draw the longitude lines
    経線を書く。
    绘制经线

  • – drawCrossLines:

    Draw the cross lines
    十字線を書く。
    绘制十字交叉线

  • – calcAxisXGraduate:

    calculate the x axis display degrees of touched point
    経度数の表示目盛りを計算する。
    计算经度的表示刻度

  • – calcAxisYGraduate:

    calculate the y axis display degrees of touched point
    緯度数の表示目盛りを計算する。
    计算纬度的表示刻度

  • – touchPointAxisXValue:

    calculate the x axis display value of touched point (value:0.0~1.0)
    経度数を計算する。(度数:0.0~1.0)
    计算经度的度数 (度数:0.0~1.0)

  • – touchPointAxisYValue:

    calculate the y axis display value of touched point (value:0.0~1.0)
    緯度数を計算する。(度数:0.0~1.0)
    计算纬度的度数 (度数:0.0~1.0)

  • – zoomOut

    Zoom out the grid
    縮小表示する。
    缩小

  • – zoomIn

    Zoom out the grid
    拡大表示する。
    放大表示

Other Methods

  • – initProperty

    @abstract
    Initialize This Object’s Properties
    オブジェクトのプロパティを初期化
    初始化当前对象的属性

Properties

axisMarginBottom

Margin of the axis to the bottom border
轴線より下枠線の距離
轴线下边距

@property (assign, nonatomic) CGFloat axisMarginBottom

Discussion

Margin of the axis to the bottom border
轴線より下枠線の距離
轴线下边距

Declared In

CCSGridChart.h

axisMarginLeft

Margin of the axis to the left border
轴線より左枠線の距離
轴线左边距

@property (assign, nonatomic) CGFloat axisMarginLeft

Discussion

Margin of the axis to the left border
轴線より左枠線の距離
轴线左边距

Declared In

CCSGridChart.h

axisMarginRight

Margin of the axis to the top border
轴線より右枠線の距離
轴线右边距

@property (assign, nonatomic) CGFloat axisMarginRight

Discussion

Margin of the axis to the top border
轴線より右枠線の距離
轴线右边距

Declared In

CCSGridChart.h

axisMarginTop

Margin of the axis to the top border
轴線より上枠線の距離
轴线上边距

@property (assign, nonatomic) CGFloat axisMarginTop

Discussion

Margin of the axis to the top border
轴線より上枠線の距離
轴线上边距

Declared In

CCSGridChart.h

axisXColor

Color of X axis
X軸の色
坐标轴X的显示颜色

@property (retain, nonatomic) UIColor *axisXColor

Discussion

Color of X axis
X軸の色
坐标轴X的显示颜色

Declared In

CCSGridChart.h

axisXPosition

The position of X axis(top,bottom) reference:CCSGridChartAxisPosition
X軸の表示位置(上、下)参照:CCSGridChartAxisPosition
X轴显示位置(上、下)参看:CCSGridChartAxisPosition

@property (assign, nonatomic) NSUInteger axisXPosition

Discussion

The position of X axis(top,bottom) reference:CCSGridChartAxisPosition
X軸の表示位置(上、下)参照:CCSGridChartAxisPosition
X轴显示位置(上、下)参看:CCSGridChartAxisPosition

Declared In

CCSGridChart.h

axisXTitles

Titles Array for display of X axis
X軸の表示用タイトル配列
X轴标题数组

@property (retain, nonatomic) NSMutableArray *axisXTitles

Discussion

Titles Array for display of X axis
X軸の表示用タイトル配列
X轴标题数组

Declared In

CCSGridChart.h

axisYColor

Color of Y axis
Y軸の色
坐标轴Y的显示颜色

@property (retain, nonatomic) UIColor *axisYColor

Discussion

Color of Y axis
Y軸の色
坐标轴Y的显示颜色

Declared In

CCSGridChart.h

axisYPosition

The position of Y axis(left,right) reference:CCSGridChartAxisPosition
Y軸の表示位置(左、右)参照:CCSGridChartAxisPosition
Y轴显示位置(左、右)参看:CCSGridChartAxisPosition

@property (assign, nonatomic) NSUInteger axisYPosition

Discussion

The position of Y axis(left,right) reference:CCSGridChartAxisPosition
Y軸の表示位置(左、右)参照:CCSGridChartAxisPosition
Y轴显示位置(左、右)参看:CCSGridChartAxisPosition

Declared In

CCSGridChart.h

axisYTitles

Titles for display of Y axis
Y軸の表示用タイトル配列
Y轴标题数组

@property (retain, nonatomic) NSMutableArray *axisYTitles

Discussion

Titles for display of Y axis
Y軸の表示用タイトル配列
Y轴标题数组

Declared In

CCSGridChart.h

borderColor

Color of grid‘s border line
枠線の色
图边框的颜色

@property (retain, nonatomic) UIColor *borderColor

Discussion

Color of grid‘s border line
枠線の色
图边框的颜色

Declared In

CCSGridChart.h

crossLinesColor

Color of cross line inside grid when touched
タッチしたポイント表示用十字線の色
十字交叉线颜色

@property (retain, nonatomic) UIColor *crossLinesColor

Discussion

Color of cross line inside grid when touched
タッチしたポイント表示用十字線の色
十字交叉线颜色

Declared In

CCSGridChart.h

crossLinesFontColor

Color of cross line degree text when touched
タッチしたポイント表示用十字線度数文字の色
十字交叉线坐标轴字体颜色

@property (retain, nonatomic) UIColor *crossLinesFontColor

Discussion

Color of cross line degree text when touched
タッチしたポイント表示用十字線度数文字の色
十字交叉线坐标轴字体颜色

Declared In

CCSGridChart.h

dashLatitude

Should display latitude as dashed line?
緯線を点線にするか?
纬线是否显示为虚线

@property (assign, nonatomic) BOOL dashLatitude

Discussion

Should display latitude as dashed line?
緯線を点線にするか?
纬线是否显示为虚线

Declared In

CCSGridChart.h

dashLongitude

Should display longitude as dashed line?
経線を点線にするか?
经线是否显示为虚线

@property (assign, nonatomic) BOOL dashLongitude

Discussion

Should display longitude as dashed line?
経線を点線にするか?
经线是否显示为虚线

Declared In

CCSGridChart.h

displayAxisXTitle

Should display the degrees in X axis?
X軸のタイトルを表示するか?
X轴上的标题是否显示

@property (assign, nonatomic) BOOL displayAxisXTitle

Discussion

Should display the degrees in X axis?
X軸のタイトルを表示するか?
X轴上的标题是否显示

Declared In

CCSGridChart.h

displayAxisYTitle

Should display the degrees in Y axis?
Y軸のタイトルを表示するか?
Y轴上的标题是否显示

@property (assign, nonatomic) BOOL displayAxisYTitle

Discussion

Should display the degrees in Y axis?
Y軸のタイトルを表示するか?
Y轴上的标题是否显示

Declared In

CCSGridChart.h

displayBorder

Should display the border?
枠を表示するか?
控件是否显示边框

@property (assign, nonatomic) BOOL displayBorder

Discussion

Should display the border?
枠を表示するか?
控件是否显示边框

Declared In

CCSGridChart.h

displayCrossXOnTouch

Should display the Y cross line if grid is touched?
タッチしたポイントがある場合、十字線の垂直線を表示するか?
在控件被点击时,显示十字竖线线

@property (assign, nonatomic) BOOL displayCrossXOnTouch

Discussion

Should display the Y cross line if grid is touched?
タッチしたポイントがある場合、十字線の垂直線を表示するか?
在控件被点击时,显示十字竖线线

Declared In

CCSGridChart.h

displayCrossYOnTouch

Should display the Y cross line if grid is touched?
タッチしたポイントがある場合、十字線の水平線を表示するか?
在控件被点击时,显示十字横线线

@property (assign, nonatomic) BOOL displayCrossYOnTouch

Discussion

Should display the Y cross line if grid is touched?
タッチしたポイントがある場合、十字線の水平線を表示するか?
在控件被点击时,显示十字横线线

Declared In

CCSGridChart.h

displayLatitude

Should display longitude line?
緯線を表示するか?
纬线是否显示

@property (assign, nonatomic) BOOL displayLatitude

Discussion

Should display longitude line?
緯線を表示するか?
纬线是否显示

Declared In

CCSGridChart.h

displayLongitude

Should display longitude line?
経線を表示するか?
经线是否显示

@property (assign, nonatomic) BOOL displayLongitude

Discussion

Should display longitude line?
経線を表示するか?
经线是否显示

Declared In

CCSGridChart.h

latitudeColor

Color of grid‘s latitude line
緯線の色
网格纬线的显示颜色

@property (retain, nonatomic) UIColor *latitudeColor

Discussion

Color of grid‘s latitude line
緯線の色
网格纬线的显示颜色

Declared In

CCSGridChart.h

latitudeFontColor

Color of text for the latitude degrees display
緯度のタイトルの色
纬线刻度字体颜色

@property (retain, nonatomic) UIColor *latitudeFontColor

Discussion

Color of text for the latitude degrees display
緯度のタイトルの色
纬线刻度字体颜色

Declared In

CCSGridChart.h

latitudeFontSize

Font size of text for the latitude degrees display
緯度のタイトルの文字サイズ
纬线刻度字体大小

@property (assign, nonatomic) NSUInteger latitudeFontSize

Discussion

Font size of text for the latitude degrees display
緯度のタイトルの文字サイズ
纬线刻度字体大小

Declared In

CCSGridChart.h

longitudeColor

Color of grid‘s longitude line
経線の色
网格经线的显示颜色

@property (retain, nonatomic) UIColor *longitudeColor

Discussion

Color of grid‘s longitude line
経線の色
网格经线的显示颜色

Declared In

CCSGridChart.h

longitudeFontColor

Color of text for the longitude degrees display
経度のタイトルの色
经线刻度字体颜色

@property (retain, nonatomic) UIColor *longitudeFontColor

Discussion

Color of text for the longitude degrees display
経度のタイトルの色
经线刻度字体颜色

Declared In

CCSGridChart.h

longitudeFontSize

Font size of text for the longitude degrees display
経度のタイトルの文字サイズ
经线刻度字体大小

@property (assign, nonatomic) NSUInteger longitudeFontSize

Discussion

Font size of text for the longitude degrees display
経度のタイトルの文字サイズ
经线刻度字体大小

Declared In

CCSGridChart.h

singleTouchPoint

Touched point inside of grid
タッチしたポイント
单点触控的选中点

@property (assign, nonatomic) CGPoint singleTouchPoint

Discussion

Touched point inside of grid
タッチしたポイント
单点触控的选中点

Declared In

CCSGridChart.h

Instance Methods

calcAxisXGraduate:

calculate the x axis display degrees of touched point
経度数の表示目盛りを計算する。
计算经度的表示刻度

- (NSString *)calcAxisXGraduate:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Return Value

NSString * the calculated value
計算出した目盛り
刻度结果

Declared In

CCSGridChart.h

calcAxisYGraduate:

calculate the y axis display degrees of touched point
緯度数の表示目盛りを計算する。
计算纬度的表示刻度

- (NSString *)calcAxisYGraduate:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Return Value

NSString * the calculated value
計算出した目盛り
刻度结果

Declared In

CCSGridChart.h

drawAxisGridX:

Draw the latitude lines
緯線を書く。
绘制纬线

- (void)drawAxisGridX:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSGridChart.h

drawAxisGridY:

Draw the longitude lines
経線を書く。
绘制经线

- (void)drawAxisGridY:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSGridChart.h

drawBorder:

Draw the border
枠を書く。
绘制边框

- (void)drawBorder:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSGridChart.h

drawCrossLines:

Draw the cross lines
十字線を書く。
绘制十字交叉线

- (void)drawCrossLines:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSGridChart.h

drawXAxis:

Draw the X Axis
X軸を書く。
绘制X轴

- (void)drawXAxis:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSGridChart.h

drawYAxis:

Draw the Y Axis
Y軸を書く。
绘制Y轴

- (void)drawYAxis:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSGridChart.h

initProperty

@abstract
Initialize This Object’s Properties
オブジェクトのプロパティを初期化
初始化当前对象的属性

- (void)initProperty

Discussion

@abstract
Initialize This Object’s Properties
オブジェクトのプロパティを初期化
初始化当前对象的属性

Declared In

CCSBaseChartView.h

touchPointAxisXValue:

calculate the x axis display value of touched point (value:0.0~1.0)
経度数を計算する。(度数:0.0~1.0)
计算经度的度数 (度数:0.0~1.0)

- (CGFloat)touchPointAxisXValue:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Return Value

CGFloat the calculated value
計算出した度数
经度计算结果

Declared In

CCSGridChart.h

touchPointAxisYValue:

calculate the y axis display value of touched point (value:0.0~1.0)
緯度数を計算する。(度数:0.0~1.0)
计算纬度的度数 (度数:0.0~1.0)

- (CGFloat)touchPointAxisYValue:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Return Value

CGFloat the calculated value
計算出した度数
纬度计算结果

Declared In

CCSGridChart.h

zoomIn

Zoom out the grid
拡大表示する。
放大表示

- (void)zoomIn

Declared In

CCSGridChart.h

zoomOut

Zoom out the grid
縮小表示する。
缩小

- (void)zoomOut

Declared In

CCSGridChart.h