public void setUp() throws Exception {
envelope = new Envelope();
EnvelopeNode[] nodes =
{
new EnvelopeNode(new EnvelopeXParam(0, 100, "Param1X",
false), new EnvelopeYParam(0, 0, "Param1Y", 0)),
new EnvelopeNode(new EnvelopeXParam(0, 100, "Param2X",
true), new EnvelopeYParam(0, 0, "Param2Y", 10)) };
model = new DefaultEnvelopeModel(nodes);
envelope.setModel(model);
envelopeCanvas = envelope.getEnvelopeCanvas();
envelopeCanvas.setSize(100, 100);
Thread.sleep(100);