Node supports the background color, gradient, border, and font color and the like style properties. It may be set via Node#setStyle().

For more information, please refer to style list 

 Example

Set the color and gap of node border 

var style = graph.createNode("Style Node", 100, 0);
style.setStyle(Q.Styles.BORDER, 1);
style.setStyle(Q.Styles.BORDER_COLOR, '#AABBEE');
style.setStyle(Q.Styles.PADDING, 5);

Operation effect: