Exemple #1
0
  @Override
  protected void paint(Graphics graphics, IFigure fig, Insets insets, Color[] tl, Color[] br) {
    graphics.setLineStyle(Graphics.LINE_SOLID);
    graphics.setXORMode(false);

    Rectangle rect = getPaintRectangle(fig, insets);

    int top = rect.y;
    int left = rect.x;
    int bottom = rect.bottom() - 1;
    int right = rect.right() - 1;
    drawDarkerSide(graphics, br, top, left, bottom, right);
    drawLighterSide(graphics, tl, top, left, bottom, right);
  }