String barPosition = tabSet.getTabBarPosition();
// cut bar area
if (barPosition.equalsIgnoreCase("TOP")) {
bounds.moveY(barThickness);
} else if (barPosition.equalsIgnoreCase("LEFT")) {
bounds.moveX(barThickness);
} else if (barPosition.equalsIgnoreCase("BOTTOM")) {
bounds.resize(0, -barThickness);
} else if (barPosition.equalsIgnoreCase("RIGHT")) {
bounds.resize(-barThickness, 0);
}