NChartTimeAxis Class Reference
| Inherits from | NChartAxis : NChartObject : NSObject |
|---|---|
| Declared in | NChartTimeAxis.h |
– setBeginButtonStateImagesNormal:andPushed:
Set images for button “go to the beginning”.
- (void)setBeginButtonStateImagesNormal:(NSImage *)normal andPushed:(NSImage *)pushedParameters
normal |
|
|---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setEndButtonStateImagesNormal:andPushed:
Set images for button “go to the ending”.
- (void)setEndButtonStateImagesNormal:(NSImage *)normal andPushed:(NSImage *)pushedParameters
normal |
|
|---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setPlayButtonStateImagesNormal:andPushed:
Set images for button “play”.
- (void)setPlayButtonStateImagesNormal:(NSImage *)normal andPushed:(NSImage *)pushedParameters
normal |
|
|---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setPauseButtonStateImagesNormal:andPushed:
Set images for button “pause”.
- (void)setPauseButtonStateImagesNormal:(NSImage *)normal andPushed:(NSImage *)pushedParameters
normal |
|
|---|---|
pushed |
|
Declared In
NChartTimeAxis.h
– setHandlerImage:
Set image for the handler of the slider.
- (void)setHandlerImage:(NSImage *)handlerParameters
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
[NSImage resizableImageWithCapInsets:]. This means, they specify the stretchable caps of the image.
- (void)setSliderImage:(NSImage *)slider capInsets:(NSEdgeInsets)capInsetsParameters
slider |
|
|---|---|
capInsets |
|
Declared In
NChartTimeAxis.h
– setImagesForBeginNormal:beginPushed:endNormal:endPushed:playNormal:playPushed:pauseNormal:pausePushed:slider:handler:contentScale:
Set all images used for time axis at once. This method automatically adjusts tickSize and tickOffset according to images provided.
- (void)setImagesForBeginNormal:(NSImage *)beginNormal beginPushed:(NSImage *)beginPushed endNormal:(NSImage *)endNormal endPushed:(NSImage *)endPushed playNormal:(NSImage *)playNormal playPushed:(NSImage *)playPushed pauseNormal:(NSImage *)pauseNormal pausePushed:(NSImage *)pausePushed slider:(NSImage *)slider handler:(NSImage *)handler contentScale:(double)contentScaleParameters
beginNormal |
|
|---|---|
beginPushed |
|
endNormal |
|
endPushed |
|
playNormal |
|
playPushed |
|
pauseNormal |
|
pausePushed |
|
slider |
|
handler |
|
contentScale |
|
Declared In
NChartTimeAxis.h
– goToNextTick
Go to the next timestamp (without any user interactions).
- (void)goToNextTickDeclared In
NChartTimeAxis.h
– goToPreviousTick
Go to the previous timestamp (without any user interactions).
- (void)goToPreviousTickDeclared In
NChartTimeAxis.h
– goToFirstTick
Go to the beginning of the timeline (without any user interactions).
- (void)goToFirstTickDeclared In
NChartTimeAxis.h
– goToLastTick
Go to the ending of the timeline (without any user interactions).
- (void)goToLastTickDeclared In
NChartTimeAxis.h
– play
Start playing the timeline (without any user interactions).
- (void)playDeclared In
NChartTimeAxis.h
– stop
Stop playing the timeline (without any user interactions).
- (void)stopDeclared In
NChartTimeAxis.h
currentIndex
Current timestamp index (index of the timestamp tick where the handler stays).
@property (nonatomic, assign) NSInteger currentIndexDeclared In
NChartTimeAxis.h
tooltip
Tooltip that appears over the handler. This is nil by default.
@property (nonatomic, strong) NChartTimeAxisTooltip *tooltipSee Also
Declared In
NChartTimeAxis.h
tickTitlesFont
Font used to display timestamp titles.
@property (nonatomic, strong) NSFont *tickTitlesFontDeclared In
NChartTimeAxis.h
tickTitlesColor
Color used to display timestamp titles.
@property (nonatomic, strong) NSColor *tickTitlesColorDeclared In
NChartTimeAxis.h
tickColor
Color used to display timestamp ticks.
@property (nonatomic, strong) NSColor *tickColorDeclared In
NChartTimeAxis.h
tickSize
Size of ticks in pixels.
@property (nonatomic, assign) CGSize tickSizeDeclared 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 tickOffsetDeclared In
NChartTimeAxis.h
tickTitlesOffset
Offset of timestamp titles (spacing between the slider and titles) in pixels.
@property (nonatomic, assign) float tickTitlesOffsetDeclared In
NChartTimeAxis.h
tickShape
Shape of timestamp ticks.
@property (nonatomic, assign) NChartTimeAxisTickShape tickShapeSee Also
Declared In
NChartTimeAxis.h
tickTitlesLayout
Layout of timestamp titles.
@property (nonatomic, assign) NChartTimeAxisLabelsLayout tickTitlesLayoutSee Also
Declared In
NChartTimeAxis.h
tickTitlesPosition
Position of timestamp titles.
@property (nonatomic, assign) NChartTimeAxisLabelsPosition tickTitlesPositionSee 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 minTickSpacingDeclared In
NChartTimeAxis.h
margin
Margin of the time axis.
@property (nonatomic, assign) NChartMargin marginDeclared 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 autohideTooltipDeclared In
NChartTimeAxis.h
animationTime
Time that takes to play the whole time axis in seconds.
@property (nonatomic, assign) float animationTimeDeclared In
NChartTimeAxis.h
padding
Padding of the time axis.
@property (nonatomic, assign) NChartMargin paddingDeclared In
NChartTimeAxis.h
frame
Frame of the time axis in the view’s coordinate system.
@property (nonatomic, readonly) CGRect frameDiscussion
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> dataSourceSee Also
Declared In
NChartTimeAxis.h