XuniGauge Class Reference
Inherits from | XuniView : UIView |
---|---|
Conforms to | UIGestureRecognizerDelegate |
Declared in | XuniGauge.h |
gaugeTapped
Occurs when gauge tapped
@property XuniEvent<XuniPointEventArgs*> *gaugeTapped
Discussion
Occurs when gauge tapped
Declared In
XuniGauge.h
– raiseGaugeTapped:
Creates event args and calls onChartRendering.
- (void)raiseGaugeTapped:(XuniPoint *)point
Parameters
point |
the tapped point. |
---|
Discussion
Creates event args and calls onChartRendering.
Declared In
XuniGauge.h
gaugeRendering
Occurs before gauge rendering
@property XuniEvent<XuniEventArgs*> *gaugeRendering
Discussion
Occurs before gauge rendering
Declared In
XuniGauge.h
– raiseGaugeRendering
Creates event args and calls gaugeRendering.
- (void)raiseGaugeRendering
Discussion
Creates event args and calls gaugeRendering.
Declared In
XuniGauge.h
gaugeRendered
Occurs when gauge rendered
@property XuniEvent<XuniEventArgs*> *gaugeRendered
Discussion
Occurs when gauge rendered
Declared In
XuniGauge.h
– raiseGaugeRendered
Creates event args and calls gaugeRendered.
- (void)raiseGaugeRendered
Discussion
Creates event args and calls gaugeRendered.
Declared In
XuniGauge.h
– raiseGaugeValueChanged
Creates event args and calls gaugeValueChanged.
- (void)raiseGaugeValueChanged
Discussion
Creates event args and calls gaugeValueChanged.
Declared In
XuniGauge.h
delegate
Gets or sets the delegate for handling notifications.
@property (nonatomic, weak) id<XuniGaugeDelegate> delegate
Discussion
Gets or sets the delegate for handling notifications.
Declared In
XuniGauge.h
value
Gets or sets the value displayed on the gauge.
@property (nonatomic) IBInspectable double value
Discussion
Gets or sets the value displayed on the gauge.
Declared In
XuniGauge.h
isEnabled
Gets or sets whether animation is enabled on the control.
@property (nonatomic) IBInspectable BOOL isEnabled
Discussion
Gets or sets whether animation is enabled on the control.
Declared In
XuniGauge.h
isAnimated
Gets or sets whether animation is enabled on the control.
@property (nonatomic) IBInspectable BOOL isAnimated
Discussion
Gets or sets whether animation is enabled on the control.
Declared In
XuniGauge.h
loadAnimation
Gets or sets the loading animation that occurs when the control first display.
@property (nonatomic) XuniAnimation *loadAnimation
Discussion
Gets or sets the loading animation that occurs when the control first display.
Declared In
XuniGauge.h
step
Gets or sets the step.
@property (nonatomic) IBInspectable double step
Discussion
Gets or sets the step.
Declared In
XuniGauge.h
format
Gets or sets the format string used for displaying the gauge values as text.
@property (nonatomic) IBInspectable NSString *format
Discussion
Gets or sets the format string used for displaying the gauge values as text.
Declared In
XuniGauge.h
face
Gets or sets the range used to represent the gauge’s overall geometry and appearance.
@property (nonatomic) XuniGaugeRange *face
Discussion
Gets or sets the range used to represent the gauge’s overall geometry and appearance.
Declared In
XuniGauge.h
ranges
Gets or sets the gague ranges.
@property (nonatomic) XuniObservableArray<XuniGaugeRange*> *ranges
Discussion
Gets or sets the gague ranges.
Declared In
XuniGauge.h
showText
Gets or sets which values should be displayed as text in the gauge.
@property (nonatomic) XuniShowText showText
Discussion
Gets or sets which values should be displayed as text in the gauge.
Declared In
XuniGauge.h
thickness
Gets or sets the thickness of the gauge, on a scale between zero and one.
@property (nonatomic) IBInspectable double thickness
Discussion
Gets or sets the thickness of the gauge, on a scale between zero and one.
Declared In
XuniGauge.h
rectGauge
Gets or sets the frame of the gauge.
@property (nonatomic) XuniRect *rectGauge
Discussion
Gets or sets the frame of the gauge.
Declared In
XuniGauge.h
renderEngine
Gets or sets the render engine of the gague.
@property (readonly) XuniRenderEngine *renderEngine
Discussion
Gets or sets the render engine of the gague.
Declared In
XuniGauge.h
animColor
Gets or sets the color when is during animation.
@property (nonatomic) UIColor *animColor
Discussion
Gets or sets the color when is during animation.
Declared In
XuniGauge.h
easingType
Gets or sets the ease type of the animation.
@property (nonatomic) id<IXuniEaseAction> easingType
Discussion
Gets or sets the ease type of the animation.
Declared In
XuniGauge.h
– invalidate
Refresh gague if needed.
- (void)invalidate
Discussion
Refresh gague if needed.
Declared In
XuniGauge.h
– drawRect:
Internal, draw a rectangle.
- (void)drawRect:(CGRect)rect
Parameters
rect |
the rectangle to draw. |
---|
Discussion
Internal, draw a rectangle.
Declared In
XuniGauge.h
– updateText
Updates the content and position of the text elements.
- (void)updateText
Discussion
Updates the content and position of the text elements.
Declared In
XuniGauge.h
– updateRangeElement:value:time:
Updates the range element.
- (void)updateRangeElement:(XuniGaugeRange *)rng value:(double)value time:(double)time
Parameters
rng |
the range of the gague. |
---|---|
value |
the value about the range. |
time |
the time. |
Discussion
Updates the range element.
Declared In
XuniGauge.h
– hitTest:
Gets a number that corresponds to the value of the gauge at a given point.
- (double)hitTest:(XuniPoint *)point
Parameters
point |
the point in control coordinates that this HitTestInfo refers to. |
---|
Return Value
return a number that corresponds to the value of the gauge at a given point.
Discussion
Gets a number that corresponds to the value of the gauge at a given point.
Declared In
XuniGauge.h
– hitTest:y:
– getPercent:
– getPointerColor:
- (UIColor *)getPointerColor:(double)value
Parameters
value |
the given value. |
---|
Declared In
XuniGauge.h
– clamp:min:max:
– respondToTapGesture:
Respond to tap gesture.
- (void)respondToTapGesture:(UITapGestureRecognizer *)recognizer
Parameters
recognizer |
tap gesture recognizer. |
---|
Discussion
Respond to tap gesture.
Declared In
XuniGauge.h
– getAnimationEasing
Get animation easing.
- (id<IXuniEaseAction>)getAnimationEasing
Return Value
an ease type.
Discussion
Get animation easing.
Declared In
XuniGauge.h
– getAnimationDuration
Get animation duration.
- (double)getAnimationDuration
Return Value
the duration of the animation.
Discussion
Get animation duration.
Declared In
XuniGauge.h
– formatDecimal:
Format string.
- (NSString *)formatDecimal:(double)number
Parameters
number |
the given number. |
---|
Return Value
a formatted string.
Discussion
Format string.
Declared In
XuniGauge.h
– refresh
Refreshes the control.
- (void)refresh
Discussion
Refreshes the control.
Declared In
XuniGauge.h
– getDescriptor:
Get a descriptor of font.
- (UIFontDescriptor *)getDescriptor:(NSMutableDictionary *)attributes
Parameters
attributes |
the font attributes. |
---|
Return Value
a descriptor.
Discussion
Get a descriptor of font.
Declared In
XuniGauge.h