1 /* 2 * ObjectLab, http://www.objectlab.co.uk/open is supporting JTreeMap. 3 * 4 * Based in London, we are world leaders in the design and development 5 * of bespoke applications for the securities financing markets. 6 * 7 * <a href="http://www.objectlab.co.uk/open">Click here to learn more</a> 8 * ___ _ _ _ _ _ 9 * / _ \| |__ (_) ___ ___| |_| | __ _| |__ 10 * | | | | '_ \| |/ _ \/ __| __| | / _` | '_ \ 11 * | |_| | |_) | | __/ (__| |_| |__| (_| | |_) | 12 * \___/|_.__// |\___|\___|\__|_____\__,_|_.__/ 13 * |__/ 14 * 15 * www.ObjectLab.co.uk 16 * 17 * $Id: XMLBean.java 75 2006-10-24 23:00:51Z benoitx $ 18 * 19 * Copyright 2006 the original author or authors. 20 * 21 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 22 * use this file except in compliance with the License. You may obtain a copy of 23 * the License at 24 * 25 * http://www.apache.org/licenses/LICENSE-2.0 26 * 27 * Unless required by applicable law or agreed to in writing, software 28 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 29 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 30 * License for the specific language governing permissions and limitations under 31 * the License. 32 */ 33 package net.sf.jtreemap.ktreemap.example; 34 35 /** 36 * Bean that contains values of an element of a XML file 37 */ 38 public class XMLBean { 39 private String label; 40 private double value; 41 private double weight; 42 /** 43 * @return the label 44 */ 45 public String getLabel() { 46 return label; 47 } 48 /** 49 * @param label the label to set 50 */ 51 public void setLabel(String label) { 52 this.label = label; 53 } 54 /** 55 * @return the value 56 */ 57 public double getValue() { 58 return value; 59 } 60 /** 61 * @param value the value to set 62 */ 63 public void setValue(double value) { 64 this.value = value; 65 } 66 /** 67 * @return the weight 68 */ 69 public double getWeight() { 70 return weight; 71 } 72 /** 73 * @param weight the weight to set 74 */ 75 public void setWeight(double weight) { 76 this.weight = weight; 77 } 78 } 79 /* 80 * ObjectLab is supporing JTreeMap 81 * 82 * Based in London, we are world leaders in the design and development 83 * of bespoke applications for the securities financing markets. 84 * 85 * <a href="http://www.objectlab.co.uk/open">Click here to learn more about us</a> 86 * ___ _ _ _ _ _ 87 * / _ \| |__ (_) ___ ___| |_| | __ _| |__ 88 * | | | | '_ \| |/ _ \/ __| __| | / _` | '_ \ 89 * | |_| | |_) | | __/ (__| |_| |__| (_| | |_) | 90 * \___/|_.__// |\___|\___|\__|_____\__,_|_.__/ 91 * |__/ 92 * 93 * www.ObjectLab.co.uk 94 */