// Use default skin
skin = SkinMgr.getInstance().getDefaultSkin();
}
// Get the node descriptor for this type of item node
SymbolDescriptor desc = getSymbolDescriptorForModelObject(skin, item);
// Adjust default width and height
int width = desc.getSizeX();
int height = desc.getSizeY();
if (additionalSockets > 0)
{
factor += additionalSockets / 2;
}
width = (int) (width * factor);