#import "CPTDefinitions.h"
#import "CPTLayer.h"
#import "CPTTextStyle.h"
#import <Foundation/Foundation.h>
/// @file
@class CPTAxis;
@class CPTAxisSet;
@class CPTAxisTitle;
@class CPTGridLines;
@class CPTLimitBand;
@class CPTLineCap;
@class CPTLineStyle;
@class CPTPlotSpace;
@class CPTPlotRange;
@class CPTPlotArea;
@class CPTShadow;
/**
* @brief Enumeration of labeling policies
**/
typedef enum _CPTAxisLabelingPolicy {
CPTAxisLabelingPolicyNone, ///< No labels provided; user sets labels and tick locations.
CPTAxisLabelingPolicyLocationsProvided, ///< User sets tick locations; axis makes labels.
CPTAxisLabelingPolicyFixedInterval, ///< Fixed interval labeling policy.
CPTAxisLabelingPolicyAutomatic, ///< Automatic labeling policy.
CPTAxisLabelingPolicyEqualDivisions ///< Divide the plot range into equal parts.
}
CPTAxisLabelingPolicy;
#pragma mark -
/**
* @brief Axis labeling delegate.
**/
@protocol CPTAxisDelegate<NSObject>
@optional
/// @name Labels
/// @{
/** @brief (Optional) Determines if the axis should relabel itself now.
* @param axis The axis.
* @return YES if the axis should relabel now.
**/
-(BOOL)axisShouldRelabel:(CPTAxis *)axis;
/** @brief (Optional) The method is called after the axis is relabeled to allow the delegate to perform any
* necessary cleanup or further labeling actions.
* @param axis The axis.
**/
-(void)axisDidRelabel:(CPTAxis *)axis;
/** @brief (Optional) This method gives the delegate a chance to create custom labels for each tick.
* It can be used with any labeling policy. Returning NO will cause the axis not
* to update the labels. It is then the delegates responsiblity to do this.
* @param axis The axis.
* @param locations The locations of the major ticks.
* @return YES if the axis class should proceed with automatic labeling.
**/
-(BOOL)axis:(CPTAxis *)axis shouldUpdateAxisLabelsAtLocations:(NSSet *)locations;
/** @brief (Optional) This method gives the delegate a chance to create custom labels for each minor tick.
* It can be used with any labeling policy. Returning NO will cause the axis not
* to update the labels. It is then the delegates responsiblity to do this.
* @param axis The axis.
* @param locations The locations of the minor ticks.
* @return YES if the axis class should proceed with automatic labeling.
**/
-(BOOL)axis:(CPTAxis *)axis shouldUpdateMinorAxisLabelsAtLocations:(NSSet *)locations;
/// @}
@end
#pragma mark -
@interface CPTAxis : CPTLayer {
@private
CPTCoordinate coordinate;
CPTPlotSpace *plotSpace;
NSSet *majorTickLocations;
NSSet *minorTickLocations;
CGFloat majorTickLength;
CGFloat minorTickLength;
CGFloat labelOffset;
CGFloat minorTickLabelOffset;
CGFloat labelRotation;
CGFloat minorTickLabelRotation;
CPTAlignment labelAlignment;
CPTAlignment minorTickLabelAlignment;
CPTLineStyle *axisLineStyle;
CPTLineStyle *majorTickLineStyle;
CPTLineStyle *minorTickLineStyle;
CPTLineStyle *majorGridLineStyle;
CPTLineStyle *minorGridLineStyle;
CPTLineCap *axisLineCapMin;
CPTLineCap *axisLineCapMax;
NSDecimal labelingOrigin;
NSDecimal majorIntervalLength;
NSUInteger minorTicksPerInterval;
NSUInteger preferredNumberOfMajorTicks;
CPTAxisLabelingPolicy labelingPolicy;
CPTTextStyle *labelTextStyle;
CPTTextStyle *minorTickLabelTextStyle;
CPTTextStyle *titleTextStyle;
NSNumberFormatter *labelFormatter;
NSNumberFormatter *minorTickLabelFormatter;
BOOL labelFormatterChanged;
BOOL minorLabelFormatterChanged;
NSSet *axisLabels;
NSSet *minorTickAxisLabels;
CPTAxisTitle *axisTitle;
NSString *title;
CGFloat titleOffset;
CGFloat titleRotation;
NSDecimal titleLocation;
CPTSign tickDirection;
BOOL needsRelabel;
NSArray *labelExclusionRanges;
CPTPlotRange *visibleRange;
CPTPlotRange *gridLinesRange;
NSArray *alternatingBandFills;
NSMutableArray *mutableBackgroundLimitBands;
BOOL separateLayers;
CPTShadow *labelShadow;
__cpt_weak CPTPlotArea *plotArea;
__cpt_weak CPTGridLines *minorGridLines;
__cpt_weak CPTGridLines *majorGridLines;
}
/// @name Axis
/// @{
@property (nonatomic, readwrite, copy) CPTLineStyle *axisLineStyle;
@property (nonatomic, readwrite, assign) CPTCoordinate coordinate;
@property (nonatomic, readwrite, assign) NSDecimal labelingOrigin;
@property (nonatomic, readwrite, assign) CPTSign tickDirection;
@property (nonatomic, readwrite, copy) CPTPlotRange *visibleRange;
@property (nonatomic, readwrite, copy) CPTLineCap *axisLineCapMin;
@property (nonatomic, readwrite, copy) CPTLineCap *axisLineCapMax;
/// @}
/// @name Title
/// @{
@property (nonatomic, readwrite, copy) CPTTextStyle *titleTextStyle;
@property (nonatomic, readwrite, retain) CPTAxisTitle *axisTitle;
@property (nonatomic, readwrite, assign) CGFloat titleOffset;
@property (nonatomic, readwrite, copy) NSString *title;
@property (nonatomic, readwrite, assign) CGFloat titleRotation;
@property (nonatomic, readwrite, assign) NSDecimal titleLocation;
@property (nonatomic, readonly, assign) NSDecimal defaultTitleLocation;
/// @}
/// @name Labels
/// @{
@property (nonatomic, readwrite, assign) CPTAxisLabelingPolicy labelingPolicy;
@property (nonatomic, readwrite, assign) CGFloat labelOffset;
@property (nonatomic, readwrite, assign) CGFloat minorTickLabelOffset;
@property (nonatomic, readwrite, assign) CGFloat labelRotation;
@property (nonatomic, readwrite, assign) CGFloat minorTickLabelRotation;
@property (nonatomic, readwrite, assign) CPTAlignment labelAlignment;
@property (nonatomic, readwrite, assign) CPTAlignment minorTickLabelAlignment;
@property (nonatomic, readwrite, copy) CPTTextStyle *labelTextStyle;
@property (nonatomic, readwrite, copy) CPTTextStyle *minorTickLabelTextStyle;
@property (nonatomic, readwrite, retain) NSNumberFormatter *labelFormatter;
@property (nonatomic, readwrite, retain) NSNumberFormatter *minorTickLabelFormatter;
@property (nonatomic, readwrite, retain) NSSet *axisLabels;
@property (nonatomic, readwrite, retain) NSSet *minorTickAxisLabels;
@property (nonatomic, readonly, assign) BOOL needsRelabel;
@property (nonatomic, readwrite, retain) NSArray *labelExclusionRanges;
@property (nonatomic, readwrite, retain) CPTShadow *labelShadow;
/// @}
/// @name Major Ticks
/// @{
@property (nonatomic, readwrite, assign) NSDecimal majorIntervalLength;
@property (nonatomic, readwrite, assign) CGFloat majorTickLength;
@property (nonatomic, readwrite, copy) CPTLineStyle *majorTickLineStyle;
@property (nonatomic, readwrite, retain) NSSet *majorTickLocations;
@property (nonatomic, readwrite, assign) NSUInteger preferredNumberOfMajorTicks;
/// @}
/// @name Minor Ticks
/// @{
@property (nonatomic, readwrite, assign) NSUInteger minorTicksPerInterval;
@property (nonatomic, readwrite, assign) CGFloat minorTickLength;
@property (nonatomic, readwrite, copy) CPTLineStyle *minorTickLineStyle;
@property (nonatomic, readwrite, retain) NSSet *minorTickLocations;
/// @}
/// @name Grid Lines
/// @{
@property (nonatomic, readwrite, copy) CPTLineStyle *majorGridLineStyle;
@property (nonatomic, readwrite, copy) CPTLineStyle *minorGridLineStyle;
@property (nonatomic, readwrite, copy) CPTPlotRange *gridLinesRange;
/// @}
/// @name Background Bands
/// @{
@property (nonatomic, readwrite, copy) NSArray *alternatingBandFills;
@property (nonatomic, readonly, retain) NSArray *backgroundLimitBands;
/// @}
/// @name Plot Space
/// @{
@property (nonatomic, readwrite, retain) CPTPlotSpace *plotSpace;
/// @}
/// @name Layers
/// @{
@property (nonatomic, readwrite, assign) BOOL separateLayers;
@property (nonatomic, readwrite, cpt_weak_property) __cpt_weak CPTPlotArea *plotArea;
@property (nonatomic, readonly, cpt_weak_property) __cpt_weak CPTGridLines *minorGridLines;
@property (nonatomic, readonly, cpt_weak_property) __cpt_weak CPTGridLines *majorGridLines;
@property (nonatomic, readonly, retain) CPTAxisSet *axisSet;
/// @}
/// @name Labels
/// @{
-(void)relabel;
-(void)setNeedsRelabel;
-(void)updateMajorTickLabels;
-(void)updateMinorTickLa
没有合适的资源?快使用搜索试试~ 我知道了~
Xcode下饼图、柱状图、折线图的绘制
共484个文件
h:407个
m:17个
plist:10个
5星 · 超过95%的资源 需积分: 34 32 下载量 174 浏览量
2013-12-17
20:07:58
上传
评论
收藏 8.41MB ZIP 举报
温馨提示
在Xcode下绘制一些图形,有饼图,柱状图、折线图等,可以直接运行的源码。
资源推荐
资源详情
资源评论
收起资源包目录
Xcode下饼图、柱状图、折线图的绘制 (484个子文件)
libCorePlot-CocoaTouch.a 4.64MB
libCorePlot-CocoaTouch.a 4.64MB
libCorePlot-CocoaTouch.a 4.64MB
libCorePlot-CocoaTouch.a 4.64MB
libCorePlot-CocoaTouch.a 4.64MB
.DS_Store 12KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
CPTAxis.h 9KB
CPTAxis.h 9KB
CPTAxis.h 9KB
CPTAxis.h 9KB
CPTAxis.h 9KB
CPTPlot.h 8KB
CPTPlot.h 8KB
CPTPlot.h 8KB
CPTPlot.h 8KB
CPTPlot.h 8KB
CPTPlotSpace.h 6KB
CPTPlotSpace.h 6KB
CPTPlotSpace.h 6KB
CPTPlotSpace.h 6KB
CPTPlotSpace.h 6KB
CPTLegend.h 4KB
CPTLegend.h 4KB
CPTLegend.h 4KB
CPTLegend.h 4KB
CPTLegend.h 4KB
CPTDefinitions.h 4KB
CPTDefinitions.h 4KB
CPTDefinitions.h 4KB
CPTDefinitions.h 4KB
CPTDefinitions.h 4KB
CPTBarPlot.h 4KB
CPTBarPlot.h 4KB
CPTBarPlot.h 4KB
CPTBarPlot.h 4KB
CPTBarPlot.h 4KB
CPTUtilities.h 4KB
CPTUtilities.h 4KB
CPTUtilities.h 4KB
CPTUtilities.h 4KB
CPTUtilities.h 4KB
CPTScatterPlot.h 3KB
CPTScatterPlot.h 3KB
CPTScatterPlot.h 3KB
CPTScatterPlot.h 3KB
CPTScatterPlot.h 3KB
CPTGraph.h 3KB
CPTGraph.h 3KB
CPTGraph.h 3KB
CPTGraph.h 3KB
CPTGraph.h 3KB
CPTPieChart.h 3KB
CPTPieChart.h 3KB
CPTPieChart.h 3KB
CPTPieChart.h 3KB
CPTPieChart.h 3KB
CPTGradient.h 3KB
CPTGradient.h 3KB
CPTGradient.h 3KB
CPTGradient.h 3KB
CPTGradient.h 3KB
CPTLayer.h 3KB
CPTLayer.h 3KB
CPTLayer.h 3KB
CPTLayer.h 3KB
CPTLayer.h 3KB
CPTPlotSymbol.h 2KB
CPTPlotSymbol.h 2KB
CPTPlotSymbol.h 2KB
CPTPlotSymbol.h 2KB
CPTPlotSymbol.h 2KB
CPTTradingRangePlot.h 2KB
CPTTradingRangePlot.h 2KB
CPTTradingRangePlot.h 2KB
CPTTradingRangePlot.h 2KB
CPTTradingRangePlot.h 2KB
CPTLineCap.h 2KB
CPTLineCap.h 2KB
CPTLineCap.h 2KB
CPTLineCap.h 2KB
CPTLineCap.h 2KB
CPTNumericData.h 2KB
CPTNumericData.h 2KB
CPTNumericData.h 2KB
CPTNumericData.h 2KB
CPTNumericData.h 2KB
CPTPlotRange.h 2KB
CPTPlotRange.h 2KB
CPTPlotRange.h 2KB
CPTPlotRange.h 2KB
CPTPlotRange.h 2KB
CPTResponder.h 2KB
CPTResponder.h 2KB
CPTResponder.h 2KB
共 484 条
- 1
- 2
- 3
- 4
- 5
iOS猎人笔记
- 粉丝: 387
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python实现的股票量化交易策略源代码+视频讲解+案例代码,含RSI策略、BOP指标策略、KDJ策略、MACD指标策略等
- EDA编码.zip
- 文本分类任务训练神经网络来学习词汇表中每个词的词向量
- MyBatis进阶技巧:探索动态SQL的无限可能.md
- HM2300C-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- HM2300B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 员工解除劳动合同申请表.pdf
- 物模块模型代码,前往设计物模块所属
- mybatis动态sql(使用<where>标签来处理多个查询条件)
- Java面试手册,助力大家面试过五关斩六将,面试成功
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页