Revision 13978

View differences:

trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/GraphicContainer.java
45 45
	private GraphicChartPanel pGraphic         = null;
46 46
	private JPanel            panelSlider      = null;
47 47
	private BoxesPanel        pBoxes           = null;
48
	private DoubleSlider      multiSlider      = null;
48
	private DoubleSlider      doubleSlider     = null;
49 49

  
50 50
	private boolean           bDoCallListeners = true;
51 51
	static private int        eventId          = Integer.MIN_VALUE;
......
102 102
	private JComponent getPDoubleSlider() {
103 103
		if (panelSlider == null) {
104 104
			panelSlider = new JPanel();
105
			multiSlider = new DoubleSlider();
106
			multiSlider.addValueChangedListener(this);
107 105
			panelSlider.setLayout(new BorderLayout());
108
			panelSlider.add(multiSlider, BorderLayout.CENTER);
106
			panelSlider.add(getDoubleSlider(), BorderLayout.CENTER);
109 107
		}
110 108
		return panelSlider;
111 109
	}
110
	
111
	/**
112
	 * Devuelve el componente DoubleSlider
113
	 * @return
114
	 */
115
	private DoubleSlider getDoubleSlider() {
116
		if (doubleSlider == null) {
117
			doubleSlider = new DoubleSlider();
118
			doubleSlider.addValueChangedListener(this);
119
		}
120
		return doubleSlider;
121
	}
112 122

  
113 123
	/**
114 124
	 * This method initializes jPanel1	
......
144 154
			if (getPBoxes().getControlRight().getValue() < getPBoxes().getControlLeft().getValue())
145 155
				getPBoxes().getControlLeft().setValue(getPBoxes().getControlRight().getValue());
146 156
		}
147
		multiSlider.setX1((int) getPBoxes().getControlLeft().getValue());
148
		multiSlider.setX2((int) getPBoxes().getControlRight().getValue());
157
		getDoubleSlider().setX1((int) getPBoxes().getControlLeft().getValue());
158
		getDoubleSlider().setX2((int) getPBoxes().getControlRight().getValue());
149 159
		callValueChangedListeners();
150 160
	}
151 161

  
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/textincreaser/TextIncreaserContainer.java
70 70
		this.minValue = minValue;
71 71
		this.maxValue = maxValue;
72 72
		this.isRight = right;
73
		this.value = init;
73
		setValue(init);
74 74
		initialize();
75 75
	}
76 76

  
......
85 85
		flowLayout5.setHgap(0);
86 86
		flowLayout5.setVgap(0);
87 87
		this.setLayout(flowLayout5);
88
		// this.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));
89
//		this.setSize(new java.awt.Dimension(width, width));
90
//		this.setPreferredSize(new java.awt.Dimension(width, width));
91 88
		this.add(getPGeneral(), null);
92 89
	}
93 90

  

Also available in: Unified diff