protected IFigure header;
public SubgraphFigure(IFigure header, IFigure footer, int direction) {
this.direction = direction;
contents = new Figure();
contents.setLayoutManager(new DummyLayout());
add(this.header = header);
add(contents);
add(this.footer = footer);
}