JSPolygonStyle
API for creating and modifying polygon style objects.
Create a API with Module.JSPolygonStyle.
JSPolygonStyle allows for the bulk specification of styles for multiple polygon objects.
var objectStyle = new Module.JSPolygonStyle();Getter / Setter
getFill(), setFill(fill) → boolean
Sets whether the object's fill color is applied.
If not set, it is applied (true).
fill
boolean
Whether to apply the object's fill color. true to apply color. false to not apply.
- Return - true: Fill color applied. 
- false: Fill color not applied. 
 
var bOutlineUsed = polygon.getStyle().getFill();
// ... or ...
var figure = new Module.JSFigure();
// ...
var polyStyle = figure.getStyle();
polyStyle.setFill(true);getFillColor(), setFillColor(color) → JSColor
Sets the fill color of the object's style.
var figure = new Module.JSFigure();
//...
var polyStyle = figure.getStyle();
var fillColor = polyStyle.getFillColor();
// ... or ...
var polyStyle = figure.getStyle();
var fillColor = new Module.JSColor(255, 255, 100, 0);
polyStyle.setFillColor(fillColor);getOutLine(), setOutLine(set) → boolean
Sets whether the object's outline color is applied.
If not set, it is applied (true).
set
boolean
Whether to apply the outline color. true to apply color. false to not apply.
- Return - true: Outline color applied. 
- false: Outline color not applied. 
 
var bOutlineUsed = polygon.getStyle().getOutLine();
// ... or ...
var figure = new Module.JSFigure();
//...
var polyStyle = figure.getStyle();
polyStyle.setOutLine(false);getOutLineColor(), setOutLineColor(color) → JSColor
Sets the outline color of the object's style.
var figure = new Module.JSFigure();
//...
var polyStyle = figure.getStyle();
var outlineColor = polyStyle.getOutLineColor();
// ... or ...
var figure = new Module.JSFigure();
//...
var polyStyle = figure.getStyle();
var outlineColor = new Module.JSColor(255, 255, 0, 0);
polyStyle.setOutLineColor(outlineColor);Last updated
