Ejemplo n.º 1
0
 private void paintArrow(Component c, Graphics g, int x, int y) {
   if (!m_partArrow.isVisible()) {
     return;
   }
   int arrowHeight = 3;
   int maxArrowWidth = 5;
   int startAtX = x + getIconWidth() - maxArrowWidth;
   int startAtY = y + 2;
   g.setColor(ARROW_COLOR_MAP.get(m_partArrow.getIconState()));
   for (int j = 0; j < arrowHeight; j++) {
     int arrowWidth = calcArrowWidth(j);
     int ax = startAtX + j;
     int ay = startAtY + j;
     g.drawLine(ax, ay, ax + arrowWidth - 1, ay);
   }
 }