Révision 1691
tmp/org.txm.chartsengine.jfreechart.rcp/src/org/txm/chartsengine/jfreechart/rcp/themes/base/swing/ItemSelectionJFCChartPanel.java (revision 1691) | ||
---|---|---|
174 | 174 |
if(this.getChart() != null) { |
175 | 175 |
Plot plot = this.getChart().getPlot(); |
176 | 176 |
// XY plots |
177 |
if(plot instanceof XYPlot) { |
|
178 |
|
|
179 |
// FIXME: this code must be moved to the CA plugin |
|
180 |
// FCA |
|
181 |
// if(((XYPlot)plot).getRenderer() instanceof CAItemSelectionRenderer) { |
|
182 |
// |
|
183 |
// // Axis unit square ratio constraint |
|
184 |
// this.squareOffGraph(); |
|
185 |
// |
|
186 |
// // Axis unit square ratio constraint on resize |
|
187 |
// this.addComponentListener(new ComponentListener() { |
|
188 |
// |
|
189 |
// @Override |
|
190 |
// public void componentShown(ComponentEvent arg0) { |
|
191 |
// // TODO Auto-generated method stub |
|
192 |
// } |
|
193 |
// |
|
194 |
// @Override |
|
195 |
// public void componentResized(ComponentEvent e) { |
|
196 |
// swtChartsComponentProvider.getChartsEngine().squareOffGraph(getChart(), ((Component) e.getSource()).getWidth(), ((Component) e.getSource()).getHeight()); |
|
197 |
// } |
|
198 |
// |
|
199 |
// @Override |
|
200 |
// public void componentMoved(ComponentEvent arg0) { |
|
201 |
// // TODO Auto-generated method stub |
|
202 |
// } |
|
203 |
// |
|
204 |
// @Override |
|
205 |
// public void componentHidden(ComponentEvent arg0) { |
|
206 |
// // TODO Auto-generated method stub |
|
207 |
// } |
|
208 |
// }); |
|
209 |
// |
|
210 |
// } |
|
211 |
// Others XY plots |
|
212 |
//else |
|
213 |
if(((XYPlot)plot).getRenderer() instanceof IRendererWithItemSelection) { |
|
214 |
this.addChartMouseListener(new DefaultChartMouseListener(this.swtChartsComponentProvider, this)); |
|
215 |
} |
|
177 |
if(plot instanceof XYPlot && ((XYPlot)plot).getRenderer() instanceof IRendererWithItemSelection) { |
|
178 |
this.addChartMouseListener(new DefaultChartMouseListener(this.swtChartsComponentProvider, this)); |
|
216 | 179 |
} |
217 | 180 |
// Category plot |
218 | 181 |
else if (plot instanceof CategoryPlot && ((CategoryPlot)plot).getRenderer() instanceof IRendererWithItemSelection) { |
Formats disponibles : Unified diff