예제 #1
0
 @Override
 public void setBackground(Color color) {
   super.setBackground(color);
   for (Component c : this.getComponents()) {
     if (c instanceof DataPanel) {
       c.setBackground(color);
     }
   }
 }
예제 #2
0
  @Override
  protected void paintChildren(Graphics g) {

    autoscale();

    super.paintChildren(g);
    if (IGV.getInstance().isRulerEnabled()) {
      int start = MouseInfo.getPointerInfo().getLocation().x - getLocationOnScreen().x;
      g.setColor(Color.BLACK);
      g.drawLine(start, 0, start, getHeight());
    }
  }