private void set2(Delegate d) {
		setVisible(d.visible);
		setDraggable(d.draggable);
		setRx(d.getX());
		setRy(d.getY());
		setAngle(d.getAngle());
		setFont(d.getFont());
		setFillMode(d.getFillMode());
		setBorderType((byte) d.getBorderType());
		setShadowType((byte) d.getShadowType());
		setForegroundColor(d.getForegroundColor());
		setLayer(d.getLayer());
		setCallOut(d.isCallOut());
		if (isCallOut())
			getCallOutPoint().setLocation(d.getCallOutPoint());
		setAttachmentPosition(d.getAttachmentPosition());
		String s = d.getHostType();
		if (s != null) {
			int index = d.getHostIndex();
			if (s.endsWith("Atom")) {
				if (model instanceof MolecularModel) {
					setHost(((MolecularModel) model).getAtom(index));
				}
			}
			else if (s.endsWith("GayBerneParticle")) {
				if (model instanceof MesoModel) {
					setHost(((MesoModel) model).getParticle(index));
				}
			}
			else if (s.endsWith("Obstacle")) {
				setHost(model.getObstacles().get(index));
			}
		}
	}