public Magnet(String var_name, String var_type, String var_measure,
			String var_description, int index) {
		super();
		this.var_idx = index;
		this.var_type = var_type;
		this.var_measure = var_measure;
		this.var_name = var_name;
		this.var_description = var_description;

		if (var_type.equals("I")) {
			this.repelThreshold = ((Integer) valuesMinList.get(index))
					.doubleValue();
		} else if (var_type.equals("D")) {
			this.repelThreshold = ((Double) valuesMinList.get(index))
					.doubleValue();
		} else if (var_type.equals("S") && var_measure.equals("O")) {
			this.repelThreshold = ((Integer) valuesMinList.get(index))
					.doubleValue();
		} else {
			assert (false);
		}

		shape = RECTANGLE;

		setMagnitude(10);

		/**
		 * Child node - Magnet name
		 */

		pMagnetName = new PText(this.var_name);
		Font font = new Font("Arial", Font.BOLD, 11);
		pMagnetName.setTextPaint(Color.black);
		pMagnetName.setFont(font);
		pMagnetName.setOffset((this.getWidth() - pMagnetName.getWidth()) / 2,
				(this.getHeight() - pMagnetName.getHeight()) / 2);

		this.addChild(pMagnetName);

		/**
		 * Child node - Magnet description
		 */

		pMagnetDescription = new PText(this.var_description);
		Font font2 = new Font("Arial", Font.PLAIN, 11);
		pMagnetDescription.setTextPaint(Color.black);
		pMagnetDescription.setFont(font2);
		pMagnetDescription.setOffset(pMagnetName.getX(), pMagnetName.getY()
				+ pMagnetName.getHeight() + pMagnetDescription.getHeight());
		bShowTooltip = false;

		this.setChildrenPickable(false);
	}