MAChartDataViewController

Description

The MAChartDataViewController class is used to work with a chart data view.

Inheritance Hierarchy

          NSObject

          UIResponder

          UIViewController

          MADataViewController

          MAChartDataViewController

Supported Protocols

<BaseSettingsDelegate>

<ChartTouchesDelegate>

<DataViewDatasourceDelegate>

<MADataViewControllerProtocol>

<NSCoding>

<NSObject>

<UIAppearanceContainer>

Properties

chartType. Chart type.

contentOptimizationFactor. The minimum ratio coefficient of chart plot area size to sizes of its elements, at which these elements should be hidden.

dataSource. Chart data source.

isFullScreen. Indicates whether the chart fits the whole mobile device screen.

optimizeOn. Determines whether chart elements that do not fit are hidden.

settingsPlistName. Name of the file with chart settings.

zoomEnabled. Indicates whether chart can be zoomed.

Properties inherited from <MADataViewControllerProtocol>

barButtonItems. Determines array of buttons for executing operations on the view controller.

dataViewTitle. Determines view title.

delegate. Determines the object executing delegated operations on the view controller.

hasAppeared. Determines whether controller displayed data.

hasControls. Determines whether there are view controls.

hasSettingsController. Determines whether there is a view settings controller.

isAvailable. Determines whether view controller is available for interaction.

isDataViewTitleVisible. Determines view title visibility.

isDoingCalculations. Determines whether controller executes calculations.

settingsController. Determines view settings controller.

tag. It is a controller property used to store additional custom data.

title. Determines view controller title.

view. Controller view.

Methods

initWithDatasource:. Creates an instance of the MAChartDataViewController class based on a data source.

Methods inherited from <BaseSettingsDelegate>

historyUpdatedFromController. Refreshes controller view.

performSettingsAction:. Executes operation by key.

performSettingsAction:withParameter:. Executes operation by key with specified parameter.

setSettingsBoolValue:forKey:. Sets logical value for view parameter by key.

setSettingsDoubleValue:forKey:. Sets real value for view parameter by key.

setSettingsIntValue:forKey:. Sets integer value for view parameter by key.

setSettingsValue:forKey:. Sets value for view parameter by key.

settingsBoolValueForKey:. Returns logical value of view parameter by key.

settingsControlEnabledForKey:. Returns whether value of view parameter by key can be edited.

settingsControlVisibleForKey:. Returns whether edited value of view parameter by key is displayed.

settingsDoubleValueForKey:. Returns real value of view parameter by key.

settingsIconForKey:. Returns icon by key.

settingsIntValueForKey:. Returns integer value of view parameter by key.

settingsMaxValueForKey:. Returns maximum value of view parameter by key.

settingsMinValueForKey:. Returns minimum value of view parameter by key.

settingsTextForKey:withValue:. Returns text for view parameter value by key.

settingsValueForKey:. Returns view parameter value by key.

settingsValuesDictForKey:. Returns dictionary of possible pairs "text-value" for view parameter by key.

settingsValuesEnumForKey:. Returns value options of view parameter by key.

Methods inherited from <ChartTouchesDelegate>

chartTouchesBegan:withEvent:sender:. Called on starting to touch a chart.

chartTouchesCancelled:withEvent:sender:. Called when some event cancels chart touch.

chartTouchesEnded:withEvent:sender:. Called when one several fingers stop to touch a chart.

chartTouchesLongPressInView:. Called when a user presses a chart with one or several fingers for a long time.

chartTouchesMoved:withEvent:sender:.. Called when one or several fingers move within a chart.

chartTouchesPanBeganInView:withTranslation:velocity:. Called on starting drag gesture.

chartTouchesPanChangedInView:withTranslation:velocity:. Called on changing the pan gesture.

chartTouchesPanEndedInView:withTranslation:velocity:. Called on stopping a pan gesture.

chartTouchesPinchBeganInView:withScale:velocity:. Called on starting pinch gesture.

chartTouchesPinchChangedInView:withScale:velocity:. Called on changing pinch gesture.

chartTouchesPinchEndedInView:withScale:velocity:. Called on stopping pinch gesture.

chartTouchesRotationBeganInView:withRotation:velocity:. Called on starting rotation gesture.

chartTouchesRotationChangedInView:withRotation:velocity:. Called on changing rotation gesture.

chartTouchesRotationEndedInView:withRotation:velocity:. Called on stopping rotation gesture.

chartTouchesSwipeInView:withDirection:. Called on executing swipe gesture.

chartTouchesTapInView:withPoint:. Called on executing tap gesture.

Methods inherited from <DataViewDatasourceDelegate>

dataSourceUpdated:withReason:. Handles delegate message about event occurred in the data source.

Methods inherited from <MADataViewControllerProtocol>

canGeneratePDFContent. Returns whether view contents can be generated as a PDF file.

captureScreenshotToContext:. Displays screenshot in specified drawing context.

generatePDFWithCompletionBlock:. Generates view contents as a PDF file.

loadState. Loads view state.

reloadData. Reloads source data.

saveState. Saves view state.

screenshot. Returns controller contents screenshot.

settingsControllerClosed:. Closes settings bar.

startInteraction. Locks user interaction with controller.

stopInteraction. Unlocks user interaction with controller.

updateDataWithGridSelection. Refreshes data after setting of selection.

See also:

Classes. The Mobile Application Component