NChartTimeAxis Class Reference
Inherits from | NChartAxis : NChartObject : NSObject |
---|---|
Declared in | NChartTimeAxis.h |
– setBeginButtonStateImagesNormal:andPushed:
Set images for button “go to the beginning”.
- (void)setBeginButtonStateImagesNormal:(UIImage *)normal andPushed:(UIImage *)pushed
Parameters
normal |
|
---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setEndButtonStateImagesNormal:andPushed:
Set images for button “go to the ending”.
- (void)setEndButtonStateImagesNormal:(UIImage *)normal andPushed:(UIImage *)pushed
Parameters
normal |
|
---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setPlayButtonStateImagesNormal:andPushed:
Set images for button “play”.
- (void)setPlayButtonStateImagesNormal:(UIImage *)normal andPushed:(UIImage *)pushed
Parameters
normal |
|
---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setPauseButtonStateImagesNormal:andPushed:
Set images for button “pause”.
- (void)setPauseButtonStateImagesNormal:(UIImage *)normal andPushed:(UIImage *)pushed
Parameters
normal |
|
---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setHandlerImage:
Set image for the handler of the slider.
- (void)setHandlerImage:(UIImage *)handler
Parameters
handler |
|
---|
Declared In
NChartTimeAxis.h
– setSliderImage:capInsets:
Specify the image for the slider and the cap insets to stretch it. The cap insets works as the insets in a method
[UIImage resizableImageWithCapInsets:]
. This means, they specify the stretchable caps of the image.
- (void)setSliderImage:(UIImage *)slider capInsets:(UIEdgeInsets)capInsets
Parameters
slider |
|
---|---|
capInsets |
|
Declared In
NChartTimeAxis.h
– setImagesForBeginNormal:beginPushed:endNormal:endPushed:playNormal:playPushed:pauseNormal:pausePushed:slider:handler:
Set all images used for time axis at once. This method automatically adjusts tickSize and tickOffset according to images provided.
- (void)setImagesForBeginNormal:(UIImage *)beginNormal beginPushed:(UIImage *)beginPushed endNormal:(UIImage *)endNormal endPushed:(UIImage *)endPushed playNormal:(UIImage *)playNormal playPushed:(UIImage *)playPushed pauseNormal:(UIImage *)pauseNormal pausePushed:(UIImage *)pausePushed slider:(UIImage *)slider handler:(UIImage *)handler
Parameters
beginNormal |
|
---|---|
beginPushed |
|
endNormal |
|
endPushed |
|
playNormal |
|
playPushed |
|
pauseNormal |
|
pausePushed |
|
slider |
|
handler |
|
Declared In
NChartTimeAxis.h
– goToNextTick
Go to the next timestamp (without any user interactions).
- (void)goToNextTick
Declared In
NChartTimeAxis.h
– goToPreviousTick
Go to the previous timestamp (without any user interactions).
- (void)goToPreviousTick
Declared In
NChartTimeAxis.h
– goToFirstTick
Go to the beginning of the timeline (without any user interactions).
- (void)goToFirstTick
Declared In
NChartTimeAxis.h
– goToLastTick
Go to the ending of the timeline (without any user interactions).
- (void)goToLastTick
Declared In
NChartTimeAxis.h
– play
Start playing the timeline (without any user interactions).
- (void)play
Declared In
NChartTimeAxis.h
– stop
Stop playing the timeline (without any user interactions).
- (void)stop
Declared In
NChartTimeAxis.h
currentIndex
Current timestamp index (index of the timestamp tick where the handler stays).
@property (nonatomic, assign) NSInteger currentIndex
Declared In
NChartTimeAxis.h
tooltip
Tooltip that appears over the handler. This is nil by default.
@property (nonatomic, strong) NChartTimeAxisTooltip *tooltip
See Also
Declared In
NChartTimeAxis.h
tickTitlesFont
Font used to display timestamp titles.
@property (nonatomic, strong) UIFont *tickTitlesFont
Declared In
NChartTimeAxis.h
tickTitlesColor
Color used to display timestamp titles.
@property (nonatomic, strong) UIColor *tickTitlesColor
Declared In
NChartTimeAxis.h
tickColor
Color used to display timestamp ticks.
@property (nonatomic, strong) UIColor *tickColor
Declared In
NChartTimeAxis.h
tickSize
Size of ticks in pixels.
@property (nonatomic, assign) CGSize tickSize
Declared In
NChartTimeAxis.h
tickOffset
Offset of timestamp ticks (spacing between slider and ticks) in pixels. If positive, ticks are outside of slider, if negative, ticks may overlap the slider; so the outer border of the slider (including the slider’s handler) is assumed as zero offset.
@property (nonatomic, assign) float tickOffset
Declared In
NChartTimeAxis.h
tickTitlesOffset
Offset of timestamp titles (spacing between the slider and titles) in pixels.
@property (nonatomic, assign) float tickTitlesOffset
Declared In
NChartTimeAxis.h
tickShape
Shape of timestamp ticks.
@property (nonatomic, assign) NChartTimeAxisTickShape tickShape
See Also
Declared In
NChartTimeAxis.h
tickTitlesLayout
Layout of timestamp titles.
@property (nonatomic, assign) NChartTimeAxisLabelsLayout tickTitlesLayout
See Also
Declared In
NChartTimeAxis.h
tickTitlesPosition
Position of timestamp titles.
@property (nonatomic, assign) NChartTimeAxisLabelsPosition tickTitlesPosition
See Also
Declared In
NChartTimeAxis.h
minTickSpacing
Minimal spacing between neighbor ticks in pixels (the tick is the center place of the timestamp title, a kind of milestone on the axis). According to this value some timestamps can be hidden, if there are too many of them.
@property (nonatomic, assign) float minTickSpacing
Declared In
NChartTimeAxis.h
margin
Margin of the time axis.
@property (nonatomic, assign) NChartMargin margin
Declared In
NChartTimeAxis.h
autohideTooltip
Flag indicating whether the tooltip should be hidden automatically when the user interactions end (YES) or not (NO).
@property (nonatomic, assign) BOOL autohideTooltip
Declared In
NChartTimeAxis.h
animationTime
Time that takes to play the whole time axis in seconds.
@property (nonatomic, assign) float animationTime
Declared In
NChartTimeAxis.h
padding
Padding of the time axis.
@property (nonatomic, assign) NChartMargin padding
Declared In
NChartTimeAxis.h
frame
Frame of the time axis in the view’s coordinate system.
@property (nonatomic, readonly) CGRect frame
Discussion
The frame is a rect fully enclosing the entire time axis with its ticks, labels and control buttons, but not
its tooltip. This rect is calculated during updateData
call when the chat lays out its elements.
Declared In
NChartTimeAxis.h
dataSource
Time axis data source.
@property (nonatomic, assign) id<NChartTimeAxisDataSource> dataSource
See Also
Declared In
NChartTimeAxis.h