|
Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Go to the documentation of this file.
28 +(void)registerTheme:(nonnull
Class)themeClass;
30 +(nullable instancetype)themeNamed:(nullable
CPTThemeName)themeName;
36 -(void)applyThemeToGraph:(nonnull
CPTGraph *)graph;
50 -(void)applyThemeToBackground:(nonnull
CPTGraph *)graph;
52 -(void)applyThemeToAxisSet:(nonnull
CPTAxisSet *)axisSet;
NSString * CPTThemeName
Theme name type.
Definition: CPTTheme.h:6
CPTThemeName __nonnull const kCPTStocksTheme
A graph theme with a gradient background and white lines.
Class graphClass
The class used to create new graphs. Must be a subclass of CPTGraph.
Definition: CPTTheme.h:24
CPTTheme abstract methods—must be overridden by subclasses.
Definition: CPTTheme.h:44
CPTThemeName __nonnull const kCPTPlainBlackTheme
A graph theme with black backgrounds and white lines.
CPTThemeName __nonnull const kCPTPlainWhiteTheme
A graph theme with white backgrounds and black lines.
CPTThemeName __nonnull const kCPTDarkGradientTheme
A graph theme with dark gray gradient backgrounds and light gray lines.
nullable NSArray< Class > * themeClasses()
List of the available theme classes, sorted by name.
Definition: CPTTheme.m:102
nonnull CPTThemeName name()
The name used for this theme class.
Definition: CPTTheme.m:152
Mutable wrapper for text style properties.
Definition: CPTMutableTextStyle.h:6
Creates a CPTGraph instance formatted with a predefined style.
Definition: CPTTheme.h:22
nullable id newGraph()
Creates a new graph styled with the theme.
Definition: CPTTheme.m:211
CPTThemeName __nonnull const kCPTSlateTheme
A graph theme with colors that match the default iPhone navigation bar, toolbar buttons,...
#define cpt_swift_struct
Marks a type definition to be imported into Swift as a structure.
Definition: CPTDefinitions.h:73
A layer drawn on top of the graph layer and behind all plot elements.
Definition: CPTPlotAreaFrame.h:8
An abstract graph class.
Definition: CPTGraph.h:74
A container layer for the set of axes for a graph.
Definition: CPTAxisSet.h:7