Color[] selectedTabFillColors;
int[] selectedTabFillPercents;
- /// Tizen
+ /* Tizen */
boolean selectedTabUnderline = true;
+ boolean unselectedTabSeparator = false;
+ /* ===== */
Color[] unselectedTabsColors;
int[] unselectedTabsPercents;
}
/* Tizen */
// gc.drawPolyline(tmpPoints);
- gc.drawLine(tmpPoints[0], tmpPoints[1], tmpPoints[tmpPoints.length - 2], tmpPoints[1]);
+ if (selectedTabUnderline) {
+ gc.drawLine(tmpPoints[0], tmpPoints[1], tmpPoints[tmpPoints.length - 2], tmpPoints[1]);
+ } else {
+ gc.drawPolyline(tmpPoints);
+ }
/* ===== */
Rectangle rect = null;
/* Tizen */
if (selectedTabUnderline) {
+ // draw a underline
Color prevColor = gc.getForeground();
int prevLineWidth = gc.getLineWidth();
gc.setForeground(tempBorder);
tempBorder.dispose();
if (active) {
- /// Tizen
+ /* Tizen */
+ // no need to draw hot tab outlines
// gc.drawPolyline(tmpPoints);
+ /* ===== */
} else {
gc.drawLine(inactive[0], inactive[1], inactive[2], inactive[3]);
gc.drawLine(inactive[4], inactive[5], inactive[6], inactive[7]);
// gc.setForeground(outerKeyline);
// gc.drawPolyline(shape);
}
+
+ /* Tizen */
+ if (unselectedTabSeparator) {
+ // draw a tab separator
+ if (itemIndex != parent.getSelectionIndex() - 1) {
+ Color prevColor = gc.getForeground();
+ gc.setForeground(new Color(gc.getDevice(), new RGB(170, 170, 170)));
+
+ Rectangle itemBounds = parent.getItem(itemIndex).getBounds();
+ gc.drawLine(itemBounds.x + itemBounds.width - 1, itemBounds.y + 5, itemBounds.x + itemBounds.width - 1,
+ itemBounds.height - 5);
+
+ gc.setForeground(prevColor);
+ }
+ }
+ /* ===== */
}
static int[] drawCircle(int xC, int yC, int r, int circlePart) {
parent.redraw();
}
+ /* Tizen */
+ public void setSelectedTabUnderline(boolean on) {
+ selectedTabUnderline = on;
+ parent.redraw();
+ }
+
+ public void setUnselectedTabSeparator(boolean on) {
+ unselectedTabSeparator = on;
+ parent.redraw();
+ }
+ /* ===== */
+
@Override
public void setUnselectedTabsColor(Color color) {
setUnselectedTabsColor(new Color[] { color }, new int[] { 100 });