109 |
109 |
* */
|
110 |
110 |
public ScatterPlotDiagram getChart(){
|
111 |
111 |
if(jPanelChart == null){
|
112 |
|
jPanelChart = new ScatterPlotDiagram(chart);
|
|
112 |
jPanelChart = new ScatterPlotDiagram(chart,getGrid());
|
113 |
113 |
chart=null;
|
114 |
114 |
jPanelChart.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));
|
115 |
115 |
}
|
... | ... | |
133 |
133 |
// Se cargan los datos antes de construir el grafico
|
134 |
134 |
setDataChart(fLayer);
|
135 |
135 |
plot = new ScatterPlotChart(this.data, domainAxis, rangeAxis);
|
|
136 |
|
|
137 |
|
136 |
138 |
chart = new JFreeChart(PluginServices.getText(this,"diagrama_dispersion"), plot);
|
137 |
139 |
data= null;
|
138 |
140 |
chart.getRenderingHints().clear();
|
... | ... | |
144 |
146 |
chart.setBackgroundPaint(Color.white);
|
145 |
147 |
|
146 |
148 |
plot.setBackgroundPaint(new Color(245, 245, 245));
|
147 |
|
|
|
149 |
plot=null;
|
148 |
150 |
}
|
149 |
151 |
|
150 |
152 |
|
... | ... | |
252 |
254 |
|
253 |
255 |
for(int i=0; i<width;i++){
|
254 |
256 |
for(int j=0; j<height; j++){
|
255 |
|
data[0][indice]= grid.getRasterBuf().getElemInt(j,i,bandaX);
|
256 |
|
data[1][indice]= grid.getRasterBuf().getElemInt(j,i,bandaY);
|
|
257 |
data[0][indice]= grid.getRasterBuf().getElemInt(j,i,0);
|
|
258 |
data[1][indice]= grid.getRasterBuf().getElemInt(j,i,1);
|
257 |
259 |
indice++;
|
258 |
260 |
}
|
259 |
261 |
}
|
... | ... | |
262 |
264 |
if (grid.getDataType()== IBuffer.TYPE_FLOAT){
|
263 |
265 |
for(int i=0; i<width;i++){
|
264 |
266 |
for(int j=0; j<height; j++){
|
265 |
|
data[0][indice]= grid.getRasterBuf().getElemFloat(j,i,bandaX);
|
266 |
|
data[1][indice]= grid.getRasterBuf().getElemFloat(j,i,bandaY);
|
|
267 |
data[0][indice]= grid.getRasterBuf().getElemFloat(j,i,0);
|
|
268 |
data[1][indice]= grid.getRasterBuf().getElemFloat(j,i,1);
|
267 |
269 |
indice++;
|
268 |
270 |
}
|
269 |
271 |
}
|