Very tricky :-) If you take a 10/90 relation, it almost looks like the native node:
shape main
{
layouttype= "border";
addsubshape ("top", "N");
addsubshape ("side", "E");
addsubshape ("front", "CENTER");
shape top
{
preferredheight=10;
startpath();
moveto(0,100);
setfixedregion(0,0,10,0);
lineto(10,0);
lineto(100,0);
setfixedregion(90,0,100,0);
lineto(90,100);
lineto(0,100);
endpath();
fillandstrokepath();
}
shape side
{
preferredwidth=10;
startpath();
moveto(0,100);
lineto(0,0);
setfixedregion(0,-10,0,0);
lineto(100,-10);
setfixedregion(0,90,0,100);
lineto(100,90);
lineto(0,100);
endpath();
fillandstrokepath();
}
shape front
{
h_align= "center";
rectangle (0, 0, 100, 100);
printwrapped ("#qualifiedname#");
}
}
q.