Ejemplo n.º 1
0
 private AbstractLeftColumn getTextColumnByX(int x) {
   for (AbstractLeftColumn column : myLeftColumns) {
     int columnX = column.getX();
     if (columnX <= x && columnX + column.getWidth() > x) {
       return column;
     }
   }
   return null;
 }
Ejemplo n.º 2
0
 private void paintTextColumns(Graphics g, Rectangle clipBounds) {
   if (!hasIntersection(getTextColumnOffset(), myTextColumnWidth, clipBounds)) {
     return;
   }
   for (AbstractLeftColumn column : myLeftColumns) {
     if (clipBounds.x > column.getX() + column.getWidth()) {
       continue;
     }
     column.paint(g);
     //  COLORS: find out where it is and remove hardcoded color
     UIUtil.drawVDottedLine(
         (Graphics2D) g,
         myRightToLeft ? column.getX() : column.getX() + column.getWidth() - 1,
         (int) clipBounds.getMinY(),
         (int) clipBounds.getMaxY(),
         getBackground(),
         Color.GRAY);
   }
 }