if (gridLines == null || gridLines.size() <= 0)
return;
ChartGridLines viewBaseGrid = view.getBaseGrid();
if (viewBaseGrid != null) {
StyleObjectModel cssStyle = viewBaseGrid.getStyleObjectModel();
if (cssStyle != null &&
cssStyle.getBorder() != null &&
cssStyle.getBorder().getColor() != null &&
!cssStyle.getBorder().getStyle().equalsIgnoreCase("none")) {
setDomainGridlinesVisible(plot, true);
setDomainGridlineStrokeAndPaint(plot, PropertiesConverter.toStroke(cssStyle.getBorder()), cssStyle.getBorder().getColor());
setRangeGridlinesVisible(plot, true);
setRangeGridlineStrokeAndPaint(plot, PropertiesConverter.toStroke(cssStyle.getBorder()), cssStyle.getBorder().getColor());
}
} else {
setDomainGridlinesVisible(plot, false);
setRangeGridlinesVisible(plot, false);
}
for (ChartGridLines lines : gridLines) {
StyleObjectModel cssStyle = lines.getStyleObjectModel();
if (lines.getDomain().equals(ChartDomain.KEY)) {
if (cssStyle != null &&
cssStyle.getBorder() != null &&
cssStyle.getBorder().getColor() != null &&
!cssStyle.getBorder().getStyle().equalsIgnoreCase("none")) {
setDomainGridlinesVisible(plot, true);
setDomainGridlineStrokeAndPaint(plot, PropertiesConverter.toStroke(cssStyle.getBorder()), cssStyle.getBorder().getColor());
}
} else if (lines.getDomain().equals(ChartDomain.VALUE)) {
if (cssStyle != null &&
cssStyle.getBorder() != null &&
cssStyle.getBorder().getColor() != null &&
!cssStyle.getBorder().getStyle().equalsIgnoreCase("none")) {
setRangeGridlinesVisible(plot, true);
setRangeGridlineStrokeAndPaint(plot, PropertiesConverter.toStroke(cssStyle.getBorder()), cssStyle.getBorder().getColor());
}
}
}
}