Révision 649
| tmp/org.txm.chartsengine.jfreechart.core/src/org/txm/chartsengine/jfreechart/core/themes/highcharts/defaulttheme/HighchartsDefaultTheme.java (revision 649) | ||
|---|---|---|
| 207 | 207 |
// this.applySeriesStrokes(result); |
| 208 | 208 |
// } |
| 209 | 209 |
// else {
|
| 210 |
for(int i = 0; i < plot.getSeriesCount(); i++) {
|
|
| 211 |
renderer.setSeriesStroke(i, new BasicStroke(seriesLineWidth)); |
|
| 212 |
} |
|
| 210 |
// for(int i = 0; i < plot.getSeriesCount(); i++) {
|
|
| 211 |
// renderer.setSeriesStroke(i, new BasicStroke(seriesLineWidth));
|
|
| 212 |
// }
|
|
| 213 | 213 |
// } |
| 214 | 214 |
|
| 215 | 215 |
|
| ... | ... | |
| 225 | 225 |
renderer.setBaseOutlinePaint(Color.WHITE); |
| 226 | 226 |
|
| 227 | 227 |
// Grid |
| 228 |
plot.setRangeGridlineStroke(new BasicStroke()); |
|
| 229 |
plot.setDomainGridlinesVisible(false); |
|
| 228 |
//plot.setRangeGridlineStroke(new BasicStroke());
|
|
| 229 |
//plot.setDomainGridlinesVisible(false);
|
|
| 230 | 230 |
|
| 231 |
// Axis |
|
| 232 |
plot.getRangeAxis().setAxisLineVisible(false); |
|
| 233 |
plot.getRangeAxis().setTickMarksVisible(false); |
|
| 234 |
|
|
| 235 | 231 |
// Legends |
| 236 | 232 |
if(legendTitle != null) {
|
| 237 | 233 |
legendTitle.setFrame(BlockBorder.NONE); |
| ... | ... | |
| 251 | 247 |
|
| 252 | 248 |
// Do not trace the grid bands for symbol axes |
| 253 | 249 |
if(plot.getDomainAxis() instanceof SymbolAxis) {
|
| 254 |
((SymbolAxis)plot.getDomainAxis()).setGridBandsVisible(false); |
|
| 250 |
//((SymbolAxis)plot.getDomainAxis()).setGridBandsVisible(false);
|
|
| 255 | 251 |
} |
| 256 | 252 |
|
| 257 | 253 |
((ItemSelectionXYBarRenderer)renderer).setBaseOutlinePaint(Color.RED); |
| ... | ... | |
| 274 | 270 |
// Series shapes |
| 275 | 271 |
this.applySeriesShapes(plot); |
| 276 | 272 |
|
| 277 |
// Axis |
|
| 273 |
|
|
| 274 |
// Axis |
|
| 275 |
plot.getRangeAxis().setAxisLineVisible(false); |
|
| 276 |
plot.getRangeAxis().setTickMarksVisible(false); |
|
| 277 |
|
|
| 278 | 278 |
plot.getRangeAxis().setAxisLinePaint(Color.decode("#C0D0E0"));
|
| 279 | 279 |
plot.getRangeAxis().setTickMarkPaint(Color.decode("#C0D0E0"));
|
| 280 | 280 |
plot.getRangeAxis().setTickMarkOutsideLength(5); |
| ... | ... | |
| 285 | 285 |
plot.getDomainAxis().setTickMarkOutsideLength(5); |
| 286 | 286 |
plot.getDomainAxis().setTickLabelFont(regularFont.deriveFont(Font.BOLD)); |
| 287 | 287 |
|
| 288 |
plot.setRangeZeroBaselineVisible(true); |
|
| 289 |
|
|
| 288 | 290 |
// Zero base lines colors |
| 289 | 291 |
plot.setDomainZeroBaselinePaint(Color.decode("#C0D0E0").darker());
|
| 290 | 292 |
plot.setRangeZeroBaselinePaint(Color.decode("#C0D0E0").darker());
|
| ... | ... | |
| 420 | 422 |
// this.applySeriesStrokes(result); |
| 421 | 423 |
// } |
| 422 | 424 |
// else {
|
| 423 |
for(int i = 0; i < ((CategoryPlot)plot).getDataset().getRowCount(); i++) {
|
|
| 424 |
renderer.setSeriesStroke(i, new BasicStroke(seriesLineWidth)); |
|
| 425 |
} |
|
| 425 |
// for(int i = 0; i < ((CategoryPlot)plot).getDataset().getRowCount(); i++) {
|
|
| 426 |
// renderer.setSeriesStroke(i, new BasicStroke(seriesLineWidth));
|
|
| 427 |
// }
|
|
| 426 | 428 |
// } |
| 427 | 429 |
|
| 428 | 430 |
|
| ... | ... | |
| 503 | 505 |
|
| 504 | 506 |
|
| 505 | 507 |
// Series lines width and style |
| 506 |
if(result.isMultipleLineStrokes()) {
|
|
| 507 |
this.applySeriesStrokes(result); |
|
| 508 |
} |
|
| 508 |
// if(result.isMultipleLineStrokes()) {
|
|
| 509 |
// this.applySeriesStrokes(result);
|
|
| 510 |
// }
|
|
| 509 | 511 |
|
| 510 | 512 |
this.applySeriesShapes(plot); |
| 511 | 513 |
|
Formats disponibles : Unified diff