Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTPlotArea.h
Go to the documentation of this file.
2 #import "CPTGraph.h"
3 #import "CPTLayer.h"
4 
5 @class CPTAxis;
6 @class CPTAxisLabelGroup;
7 @class CPTAxisSet;
8 @class CPTGridLineGroup;
9 @class CPTPlotArea;
10 @class CPTPlotGroup;
11 @class CPTLineStyle;
12 @class CPTFill;
13 
18 
19 @optional
20 
23 
29 -(void)plotAreaWasSelected:(nonnull CPTPlotArea *)plotArea;
30 
37 -(void)plotAreaWasSelected:(nonnull CPTPlotArea *)plotArea withEvent:(nonnull CPTNativeEvent *)event;
38 
44 -(void)plotAreaTouchDown:(nonnull CPTPlotArea *)plotArea;
45 
52 -(void)plotAreaTouchDown:(nonnull CPTPlotArea *)plotArea withEvent:(nonnull CPTNativeEvent *)event;
53 
59 -(void)plotAreaTouchUp:(nonnull CPTPlotArea *)plotArea;
60 
67 -(void)plotAreaTouchUp:(nonnull CPTPlotArea *)plotArea withEvent:(nonnull CPTNativeEvent *)event;
68 
70 
71 @end
72 
73 #pragma mark -
74 
78 @property (nonatomic, readwrite, strong, nullable) CPTGridLineGroup *minorGridLineGroup;
79 @property (nonatomic, readwrite, strong, nullable) CPTGridLineGroup *majorGridLineGroup;
80 @property (nonatomic, readwrite, strong, nullable) CPTAxisSet *axisSet;
81 @property (nonatomic, readwrite, strong, nullable) CPTPlotGroup *plotGroup;
82 @property (nonatomic, readwrite, strong, nullable) CPTAxisLabelGroup *axisLabelGroup;
83 @property (nonatomic, readwrite, strong, nullable) CPTAxisLabelGroup *axisTitleGroup;
85 
88 @property (nonatomic, readwrite, strong, nullable) CPTNumberArray *topDownLayerOrder;
90 
93 @property (nonatomic, readwrite, copy, nullable) CPTLineStyle *borderLineStyle;
94 @property (nonatomic, readwrite, copy, nullable) CPTFill *fill;
96 
99 @property (nonatomic, readonly) NSDecimal widthDecimal;
100 @property (nonatomic, readonly) NSDecimal heightDecimal;
102 
105 -(void)updateAxisSetLayersForType:(CPTGraphLayerType)layerType;
106 -(void)setAxisSetLayersForType:(CPTGraphLayerType)layerType;
107 -(unsigned)sublayerIndexForAxis:(nonnull CPTAxis *)axis layerType:(CPTGraphLayerType)layerType;
109 
110 @end
CPTPlotArea::fill
CPTFill * fill
The fill for the layer background. If nil, the layer background is not filled.
Definition: CPTPlotArea.h:94
CPTLineStyle
Immutable wrapper for various line drawing properties. Create a CPTMutableLineStyle if you want to cu...
Definition: CPTLineStyle.h:20
CPTPlotArea::heightDecimal
NSDecimal heightDecimal
The height of the bounds as an NSDecimal value.
Definition: CPTPlotArea.h:100
CPTGraph.h
CPTPlotArea::axisTitleGroup
CPTAxisLabelGroup * axisTitleGroup
The parent layer for all axis titles.
Definition: CPTPlotArea.h:83
UIEvent
CPTPlotAreaDelegate-p
Plot area delegate.
Definition: CPTPlotArea.h:17
CPTPlotGroup
Defines the coordinate system of a plot.
Definition: CPTPlotGroup.h:6
CPTPlotArea::topDownLayerOrder
CPTNumberArray * topDownLayerOrder
An array of graph layers to be drawn in an order other than the default.
Definition: CPTPlotArea.h:88
CPTFill
Draws area fills.
Definition: CPTFill.h:18
CPTAnnotationHostLayer
A container layer for annotations.
Definition: CPTAnnotationHostLayer.h:5
-[NSObject copy]
id copy
CPTLayerDelegate-p
Layer delegate.
Definition: CPTLayer.h:76
CPTAnnotationHostLayer.h
CPTPlotArea::majorGridLineGroup
CPTGridLineGroup * majorGridLineGroup
The parent layer for all major grid lines.
Definition: CPTPlotArea.h:79
CPTPlotArea::borderLineStyle
CPTLineStyle * borderLineStyle
The line style for the layer border. If nil, the border is not drawn.
Definition: CPTPlotArea.h:93
CPTPlotArea::axisLabelGroup
CPTAxisLabelGroup * axisLabelGroup
The parent layer for all axis labels.
Definition: CPTPlotArea.h:82
NSArray
CPTPlotArea
A layer representing the actual plotting area of a graph.
Definition: CPTPlotArea.h:76
CPTPlotArea::widthDecimal
NSDecimal widthDecimal
The width of the bounds as an NSDecimal value.
Definition: CPTPlotArea.h:99
CPTPlotArea::axisSet
CPTAxisSet * axisSet
The axis set.
Definition: CPTPlotArea.h:80
CPTLayer.h
CPTAxisLabelGroup
A container layer for the axis labels.
Definition: CPTAxisLabelGroup.h:4
CPTPlotArea::minorGridLineGroup
CPTGridLineGroup * minorGridLineGroup
The parent layer for all minor grid lines.
Definition: CPTPlotArea.h:78
CPTPlotArea::plotGroup
CPTPlotGroup * plotGroup
The plot group.
Definition: CPTPlotArea.h:81
CPTGridLineGroup
A group of grid line layers.
Definition: CPTGridLineGroup.h:6
CPTAxisSet
A container layer for the set of axes for a graph.
Definition: CPTAxisSet.h:7
CPTGraphLayerType
CPTGraphLayerType
Enumeration of graph layers.
Definition: CPTGraph.h:62
CPTAxis
An abstract axis class.
Definition: CPTAxis.h:198