// This sample demonstrates how to create simple diagram elements
  // and how to adjust their appearance properties

  // Create a new node
  ShapeNode box = diagram.getFactory().createShapeNode(20204020);

  // Set the node's shape
  box.setShape(Shape.fromId("Ellipse"));

  // Modify the text displayed within the node and
  // the font used to render the text.
  box.setText("START");
  box.setFont(new Font("Arial", Font.BOLD, 4));

  // Modify the brush used to paint the node's interior
  // and the pen used to draw its outline
  box.setBrush(new GradientBrush(
    new Color(0xff0xff0xc00xff),
    new Color(0xbf0xbf0x900xff)90));
  box.setPen(new Pen(0.5f, box.getPen().getColor()));