<< Click to Display Table of Contents >>
new sg.renderers.ClassBreaksRenderer(defaultSymbol, attributeField)
Description
Create a ClassBreaksRenderer object.
Position
Randerer.js
Parameters
Parameter |
Type |
Description |
defaultSymbol |
sg.symbols.Symbol |
Default symbol. |
attributeField |
String | function |
An attribute field renderer which matches certain values. |
Properties
Properties |
Type |
Description |
|||||||||||||||
attributeField |
String |
Attribute field renderer uses to match values. |
|||||||||||||||
colorInfo |
Object |
An info object that defines the color.
|
|||||||||||||||
defaultSymbol |
sg.symbols.Symbol |
Default symbol used when a value or break cannot be matched. |
|||||||||||||||
infos |
Array.<Object> |
Each element in the array is an object that provides information about the class breaks associated with the renderer. |
|||||||||||||||
OpacityInfo |
Object |
An info object that defines the opacity.
|
|||||||||||||||
rotationInfo |
Object |
An info object that defines the rotation.
|
|||||||||||||||
sizeInfo |
Object |
An info object that defines the size.
|
Methods
Method |
Type |
Description |
||||||||||||
addBreak(brk) |
None |
Add a class break.
|
||||||||||||
removeBreak(brk) |
None |
Remove a class break.
|
||||||||||||
getColor(graphic) |
graphic:sg.Graphic Returns:Number |
Return graphic color.
Returns:
|
||||||||||||
getRotationAngle(graphic) |
graphic:sg.Graphic Returns:Number |
Return graphic rotation angle in degrees.
Returns:
|
||||||||||||
getSize(graphic) |
graphic:sg.Graphic Returns:Number |
Return graphic symbol size in pixels.
Returns:
|
||||||||||||
setColorInfo(info) |
graphic:sg.Graphic Returns:sg.symbols.Symbol |
Define the colorInfo.
|
||||||||||||
setRotationInfo(info) |
Object |
Define rotation angle for the renderer.
|
||||||||||||
getOpacity(graphic) |
graphic:sg.Graphic Returns:Number |
return symbol transparency
Returns:
|
||||||||||||
setOpacityInfo(info) |
Object |
Define symbol transparency
|
||||||||||||
setSizeInfo(info) |
Object |
Define symbol size
|
||||||||||||
toXml() |
Returns: String |
convert to XML string Returns:
|
Example
|
©2015 Supergeo Technologies Inc.