public void installAttributes(CellView view) {
		super.installAttributes(view);
		Map map = view.getAllAttributes();
		shape = CellConstants.getVertexShape(view.getAllAttributes());
		stretchImage = CellConstants.isStretchImage(map);

		// Adds the inset as an empty border to the existing border.
		int i = GraphConstants.getInset(map);
		Border insetBorder = (i > 0) ? BorderFactory.createEmptyBorder(i, i, i,
				i) : null;
		if (insetBorder != null) {
			if (getBorder() == null)
				setBorder(insetBorder);
			else
				setBorder(BorderFactory.createCompoundBorder(getBorder(),
						insetBorder));
		}

		// Configures the rich text or component value
		userObject = graph.getModel().getValue(view.getCell());
		if (userObject instanceof RichTextBusinessObject) {
			RichTextBusinessObject obj = (RichTextBusinessObject) userObject;
			isRichText = obj.isRichText();
			valueComponent = (obj.isComponent()) ? (Component) obj.getValue()
					: null;
		} else {
			isRichText = false;
			valueComponent = null;
		}

		// Configures the rich text box for rendering the rich text
		if (isRichText) {
			StyledDocument document = (StyledDocument) textPane.getDocument();
			((RichTextValue) ((RichTextBusinessObject) userObject)
					.getValue()).insertInto(document);

			// Applies the inset to the rich text renderer
			if (insetBorder != null)
				textPane.setBorder(insetBorder);
			else
				textPane.setBorder(BorderFactory.createEmptyBorder(INSET,
						INSET, INSET, INSET));

			// Uses the label's alignment and sets it on the text pane to work
			// around the problem of the text pane alignments not being stored.
			// Note: As a consequence a text pane can only have one alignment
			// for all text it contains. It is not possible to align the
			// paragraphs individually.
			int align = getHorizontalAlignment();
			SimpleAttributeSet sas = new SimpleAttributeSet();
			align = (align == JLabel.CENTER) ? StyleConstants.ALIGN_CENTER
					: (align == JLabel.RIGHT) ? StyleConstants.ALIGN_RIGHT
							: StyleConstants.ALIGN_LEFT;
			StyleConstants.setAlignment(sas, align);
			document.setParagraphAttributes(0, document.getLength(), sas, true);
		}
	}