IXuniRenderEngine Protocol Reference
Declared in | IRenderEngine.h |
---|
– clear
required method
Clear the engine.
- (void)clear
Discussion
Clear the engine.
Declared In
IRenderEngine.h
– getTextFill
required method
Gets the color to fill text.
- (UIColor *)getTextFill
Return Value
return a kind of color.
Discussion
Gets the color to fill text.
Declared In
IRenderEngine.h
– setViewportSize:height:
required method
Set view port size.
- (void)setViewportSize:(double)width height:(double)height
Parameters
width |
the width of the size. |
---|---|
height |
the height of the size. |
Discussion
Set view port size.
Declared In
IRenderEngine.h
– setClipRect:y:w:h:
required method
Clip the rectangle.
- (void)setClipRect:(double)x y:(double)y w:(double)w h:(double)h
Parameters
x |
left of the rectangle. |
---|---|
y |
top of the rectangle. |
w |
width of the rectangle. |
h |
height of the rectangle. |
Discussion
Clip the rectangle.
Declared In
IRenderEngine.h
– clearClipRect
required method
Clear clip rect
- (void)clearClipRect
Discussion
Clear clip rect
Declared In
IRenderEngine.h
– setFill:
required method
Set fill color.
- (void)setFill:(UIColor *)color
Parameters
color |
the specified color. |
---|
Discussion
Set fill color.
Declared In
IRenderEngine.h
– getFill
required method
Get fill color.
- (UIColor *)getFill
Return Value
the fill color.
Discussion
Get fill color.
Declared In
IRenderEngine.h
– setStroke:
required method
Set stroke color.
- (void)setStroke:(UIColor *)color
Parameters
color |
the specified color. |
---|
Discussion
Set stroke color.
Declared In
IRenderEngine.h
– setStrokeThickness:
required method
Set stroke thickness.
- (void)setStrokeThickness:(double)thickness
Parameters
thickness |
the specified thickness. |
---|
Discussion
Set stroke thickness.
Declared In
IRenderEngine.h
– setTextFill:
required method
Set text fill color.
- (void)setTextFill:(UIColor *)color
Parameters
color |
the specified color. |
---|
Discussion
Set text fill color.
Declared In
IRenderEngine.h
– setFont:
required method
Set font.
- (void)setFont:(UIFont *)font
Parameters
font |
the specified font. |
---|
Discussion
Set font.
Declared In
IRenderEngine.h
– setOpacity:
required method
Set opacity.
- (void)setOpacity:(double)opacity
Parameters
opacity |
the specified opacity. |
---|
Discussion
Set opacity.
Declared In
IRenderEngine.h
– setBorderDashes:
required method
Set border dashes.
- (void)setBorderDashes:(NSArray *)dashes
Parameters
dashes |
the specified dashes. |
---|
Discussion
Set border dashes.
Declared In
IRenderEngine.h
– setSelectedDashes:
required method
Set selected dashes.
- (void)setSelectedDashes:(NSArray *)dashes
Parameters
dashes |
the specified dashes. |
---|
Discussion
Set selected dashes.
Declared In
IRenderEngine.h
– setScale:scaley:
required method
Set scale.
- (void)setScale:(float)scalex scaley:(float)scaley
Parameters
scalex |
scale x. |
---|---|
scaley |
scale y. |
Discussion
Set scale.
Declared In
IRenderEngine.h
– setPan:y:
required method
Set pan.
- (void)setPan:(float)panX y:(float)panY
Parameters
panX |
pan x. |
---|---|
panY |
pan y. |
Discussion
Set pan.
Declared In
IRenderEngine.h
– drawEllipse:cy:rx:ry:
required method
Draw a ellipse.
- (void)drawEllipse:(double)cx cy:(double)cy rx:(double)rx ry:(double)ry
Parameters
cx |
the left of the rectangle restraints the ellipse. |
---|---|
cy |
the top of the rectangle restraints the ellipse. |
rx |
the width of the rectangle restraints the ellipse. |
ry |
the height of the rectangle restraints the ellipse. |
Discussion
Draw a ellipse.
Declared In
IRenderEngine.h
– drawRect:y:w:h:isSelected:
required method
Draw a rectangle.
- (void)drawRect:(double)x y:(double)y w:(double)w h:(double)h isSelected:(BOOL)selected
Parameters
x |
the left of the rectangle. |
---|---|
y |
the right of the rectangle. |
w |
the width of the rectangle. |
h |
the height of the rectangle. |
selected |
whether is selected. |
Discussion
Draw a rectangle.
Declared In
IRenderEngine.h
– drawRect:y:w:h:
required method
Draw a rectangle.
- (void)drawRect:(double)x y:(double)y w:(double)w h:(double)h
Parameters
x |
the left of the rectangle. |
---|---|
y |
the right of the rectangle. |
w |
the width of the rectangle. |
h |
the height of the rectangle. |
Discussion
Draw a rectangle.
Declared In
IRenderEngine.h
– drawLine:y1:x2:y2:
required method
Draw a line.
- (void)drawLine:(double)x1 y1:(double)y1 x2:(double)x2 y2:(double)y2
Parameters
x1 |
the x value of the start point of the line. |
---|---|
y1 |
the y value of the start point of the line. |
x2 |
the x value of the end point of the line. |
y2 |
the y value of the end point of the line. |
Discussion
Draw a line.
Declared In
IRenderEngine.h
– drawLines:ys:
required method
Draw lines.
- (void)drawLines:(NSArray *)xs ys:(NSArray *)ys
Parameters
xs |
the x values of the points. |
---|---|
ys |
the y values of the points. |
Discussion
Draw lines.
Declared In
IRenderEngine.h
– drawSplines:ys:isRotated:
required method
Draw splines.
- (void)drawSplines:(NSArray *)xs ys:(NSArray *)ys isRotated:(BOOL)isRotated
Parameters
xs |
the x values of the points. |
---|---|
ys |
the y values of the points. |
isRotated |
whether the chart is rotated. |
Discussion
Draw splines.
Declared In
IRenderEngine.h
– drawSplineAreas:ys:stacked:isRotated:
required method
Draw areas generates by splines.
- (void)drawSplineAreas:(NSArray *)xs ys:(NSArray *)ys stacked:(BOOL)stacked isRotated:(BOOL)isRotated
Parameters
xs |
the x values of the points. |
---|---|
ys |
the y values of the points. |
stacked |
whether is stacked. |
isRotated |
whether the chart is rotated. |
Discussion
Draw areas generates by splines.
Declared In
IRenderEngine.h
– drawPolygon:ys:
required method
Draw polygon.
- (void)drawPolygon:(NSArray *)xs ys:(NSArray *)ys
Parameters
xs |
the x values of the points. |
---|---|
ys |
the y values of the points. |
Discussion
Draw polygon.
Declared In
IRenderEngine.h
– drawPolygonWithMode:mode:
required method
Draw polygon with mode.
- (void)drawPolygonWithMode:(NSArray *)points mode:(CGPathDrawingMode)mode
Parameters
points |
the array of XuniPoint. |
---|---|
mode |
the CGPathDrawingMode. |
Discussion
Draw polygon with mode.
Declared In
IRenderEngine.h
– drawRadialGauge:y:startX:startY:radiusOut:radiusIn:startAngle:endAngle:
required method
Draw radial gauge.
- (void)drawRadialGauge:(double)x y:(double)y startX:(double)startX startY:(double)startY radiusOut:(double)radiusOut radiusIn:(double)radiusIn startAngle:(double)startAngle endAngle:(double)endAngle
Parameters
x |
|
---|---|
y |
|
startX |
x value of start point. |
startY |
y value of start point. |
radiusOut |
the external radius. |
radiusIn |
the inner radius. |
startAngle |
the start angle. |
endAngle |
the end angle. |
Discussion
Draw radial gauge.
Declared In
IRenderEngine.h
– drawPieSegment:cy:radius:startAngle:sweepAngle:selected:
required method
Draw the segments of pie.
- (CGMutablePathRef)drawPieSegment:(double)cx cy:(double)cy radius:(double)radius startAngle:(double)startAngle sweepAngle:(double)sweepAngle selected:(BOOL)selected
Parameters
cx |
the x value of the center point of the circle. |
---|---|
cy |
the y value of the center point of the circle. |
radius |
the radius of the circle. |
startAngle |
the start angle. |
sweepAngle |
the sweep angle. |
selected |
whether is selected. |
Return Value
return a path of the pie segment.
Discussion
Draw the segments of pie.
Declared In
IRenderEngine.h
– drawDonutSegment:cy:radius:innerRadius:startAngle:sweepAngle:selected:
required method
Draw the donut of pie.
- (CGMutablePathRef)drawDonutSegment:(double)cx cy:(double)cy radius:(double)radius innerRadius:(double)innerRadius startAngle:(double)startAngle sweepAngle:(double)sweepAngle selected:(BOOL)selected
Parameters
cx |
the x value of the center point of the circle. |
---|---|
cy |
the y value of the center point of the circle. |
radius |
the radius of the circle. |
innerRadius |
the inner radius of the circle. |
startAngle |
the start angle. |
sweepAngle |
the sweep angle. |
selected |
whether is selected. |
Return Value
a path of the pie donut.
Discussion
Draw the donut of pie.
Declared In
IRenderEngine.h
– drawString:pt:
required method
Draw string.
- (void)drawString:(NSString *)s pt:(XuniPoint *)pt
Parameters
s |
the specified string. |
---|---|
pt |
the specified point at which to draw the string. |
Discussion
Draw string.
Declared In
IRenderEngine.h
– drawStringInRect:rect:
required method
Draw string in rectangle.
- (void)drawStringInRect:(NSString *)s rect:(CGRect)rect
Parameters
s |
the specified string. |
---|---|
rect |
the specified rectangle which to draw the string in. |
Discussion
Draw string in rectangle.
Declared In
IRenderEngine.h
– drawStringRotated:pt:center:angle:
required method
Draw rotated string.
- (void)drawStringRotated:(NSString *)label pt:(XuniPoint *)pt center:(XuniPoint *)center angle:(double)angle
Parameters
label |
the string. |
---|---|
pt |
the specified point at which to draw the string. |
center |
the specified point at which the string is turned around. |
angle |
the angle. |
Discussion
Draw rotated string.
Declared In
IRenderEngine.h
– drawImage:rect:
required method
Draw image.
- (void)drawImage:(CGImageRef)image rect:(CGRect)rect
Parameters
image |
the image. |
---|---|
rect |
the specified rectangle at which to draw the image. |
Discussion
Draw image.
Declared In
IRenderEngine.h
– measureString:
required method
Measure the size of the string.
- (XuniSize *)measureString:(NSString *)s
Parameters
s |
the specified string. |
---|
Return Value
return the size of the string.
Discussion
Measure the size of the string.
Declared In
IRenderEngine.h
– measureString:rotated:
required method
Measure the size of the rotated string.
- (XuniSize *)measureString:(NSString *)s rotated:(double)angle
Parameters
s |
the specified string. |
---|---|
angle |
the rotated angle of the string. |
Return Value
return the size of the rotated string.
Discussion
Measure the size of the rotated string.
Declared In
IRenderEngine.h
– startGroup:
required method
Start group
- (void)startGroup:(NSString *)groupName
Parameters
groupName |
the group name. |
---|
Discussion
Start group
Declared In
IRenderEngine.h
– endGroup
required method
End group.
- (void)endGroup
Discussion
End group.
Declared In
IRenderEngine.h
– saveState
required method
Save the state for render.
- (XuniRenderState *)saveState
Return Value
return the render state.
Discussion
Save the state for render.
Declared In
IRenderEngine.h
– restoreState:
required method
Restore the render state.
- (void)restoreState:(XuniRenderState *)state
Parameters
state |
the render state. |
---|
Discussion
Restore the render state.
Declared In
IRenderEngine.h
– getStroke
required method
Get stroke color.
- (UIColor *)getStroke
Return Value
stroke color.
Discussion
Get stroke color.
Declared In
IRenderEngine.h
– getStrokeThickness
required method
Get stroke thickness.
- (double)getStrokeThickness
Return Value
stroke thickness.
Discussion
Get stroke thickness.
Declared In
IRenderEngine.h