// 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(20, 20, 40, 20);

  // 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(0xff, 0xff, 0xc0, 0xff),
    new Color(0xbf, 0xbf, 0x90, 0xff), 90));
  box.setPen(new Pen(0.5f, box.getPen().getColor()));