private void drawLine(Graphics g, int x, int y, int xMax, int xLen, FontMetrics fm, int alignment) {
			if (y > getHeight() - 3)
				return;
			StringBuffer s = new StringBuffer();
			String str1;
			int xx = x;
			while (true) {
				int m = random.nextInt(10) + 1;
				str1 = dummy.substring(0, m) + " ";
				int len = fm.stringWidth(str1);
				if (xx + len >= xLen)
					break;
				xx += len;
				s.append(str1);
			}
			String str = s.toString();

			switch (alignment) {
			case StyleConstants.ALIGN_LEFT:
				g.drawString(str, x, y);
				break;
			case StyleConstants.ALIGN_CENTER:
				xx = (xMax + x - fm.stringWidth(str)) / 2;
				g.drawString(str, xx, y);
				break;
			case StyleConstants.ALIGN_RIGHT:
				xx = xMax - fm.stringWidth(str);
				g.drawString(str, xx, y);
				break;
			case StyleConstants.ALIGN_JUSTIFIED:
				while (x + fm.stringWidth(str) < xMax)
					str += "a";
				g.drawString(str, x, y);
				break;
			}
		}