public void drawRect(short colix, int x, int y, int z, int zSlab, int rWidth, int rHeight) {
		// labels (and rubberband, not implemented)
		if (isClippedZ(zSlab))
			return;
		int w = rWidth - 1;
		int h = rHeight - 1;
		int xRight = x + w;
		int yBottom = y + h;
		setColix(colix);
		if (y >= 0 && y < height)
			line3d.drawHLine(argbCurrent, isTranslucent, x, y, z, w);
		if (yBottom >= 0 && yBottom < height)
			line3d.drawHLine(argbCurrent, isTranslucent, x, yBottom, z, w);
		if (x >= 0 && x < width)
			line3d.drawVLine(argbCurrent, isTranslucent, x, y, z, h);
		if (xRight >= 0 && xRight < width)
			line3d.drawVLine(argbCurrent, isTranslucent, xRight, y, z, h);
	}