// Add in the triangle piece for the balloon.
if (vpos == VPOS_BELOW) {
if (hpos == HPOS_LEFT) {
int[] xPts = {16, 16, 32};
int[] yPts = {-1, 16, 16};
area.add(new Area(new Polygon(xPts, yPts, 3)));
}
else {
int[] xPts = {width - 15, width - 15, width - 32};
int[] yPts = {-1, 16, 16};
area.add(new Area(new Polygon(xPts, yPts, 3)));
}
}
else {
if (hpos == HPOS_LEFT) {
int[] xPts = {16, 16, 31};
int[] yPts = {height, height + 16, height};
area.add(new Area(new Polygon(xPts, yPts, 3)));
}
else {
int[] xPts = {width - 15, width - 15, width - 32};
int[] yPts = {height, height + 16, height};
area.add(new Area(new Polygon(xPts, yPts, 3)));
}
}
return area;
}