@@ -78,7 +78,7 @@ public void drop(DropTargetDropEvent e) {
78
78
Transferable tr = e .getTransferable ();
79
79
if (e .isDataFlavorSupported (DataFlavor .javaFileListFlavor )) {
80
80
e .acceptDrop (DnDConstants .ACTION_COPY );
81
- java . util . List list = (java . util . List )tr .getTransferData (DataFlavor .javaFileListFlavor );
81
+ List < Object > list = (List < Object > )tr .getTransferData (DataFlavor .javaFileListFlavor );
82
82
File [] files = (File [])list .toArray (new File [list .size ()]);
83
83
gcViewer .add (files );
84
84
GCDocument .this .getContentPane ().invalidate ();
@@ -358,144 +358,195 @@ private double getMaxMaxPause() {
358
358
359
359
private class MultiModelChartFacade implements ModelChart {
360
360
361
+ @ Override
361
362
public boolean isAntiAlias () {
362
363
if (chartPanelViews .isEmpty ()) return false ;
363
364
return chartPanelViews .get (0 ).getModelChart ().isAntiAlias ();
364
365
}
365
366
367
+ @ Override
366
368
public void setAntiAlias (boolean antiAlias ) {
367
369
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
368
370
chartPanelViews .get (i ).getModelChart ().setAntiAlias (antiAlias );
369
371
}
370
372
}
371
373
374
+ @ Override
372
375
public long getFootprint () {
373
376
if (chartPanelViews .isEmpty ()) return 0 ;
374
377
return chartPanelViews .get (0 ).getModelChart ().getFootprint ();
375
378
}
376
379
380
+ @ Override
377
381
public double getMaxPause () {
378
382
if (chartPanelViews .isEmpty ()) return 0 ;
379
383
return chartPanelViews .get (0 ).getModelChart ().getMaxPause ();
380
384
}
381
385
386
+ @ Override
382
387
public void setRunningTime (double runningTime ) {
383
388
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
384
389
chartPanelViews .get (i ).getModelChart ().setRunningTime (runningTime );
385
390
}
386
391
}
387
392
393
+ @ Override
388
394
public void setFootprint (long footPrint ) {
389
395
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
390
396
chartPanelViews .get (i ).getModelChart ().setFootprint (footPrint );
391
397
}
392
398
}
393
399
400
+ @ Override
394
401
public void setMaxPause (double maxPause ) {
395
402
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
396
403
chartPanelViews .get (i ).getModelChart ().setMaxPause (maxPause );
397
404
}
398
405
}
399
406
407
+ @ Override
400
408
public void setScaleFactor (double scaleFactor ) {
401
409
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
402
410
chartPanelViews .get (i ).getModelChart ().setScaleFactor (scaleFactor );
403
411
}
404
412
}
405
413
414
+ @ Override
406
415
public double getScaleFactor () {
407
416
if (chartPanelViews .isEmpty ()) return 1 ;
408
417
return chartPanelViews .get (0 ).getModelChart ().getScaleFactor ();
409
418
}
410
419
420
+ @ Override
411
421
public boolean isShowGCTimesLine () {
412
422
if (chartPanelViews .isEmpty ()) return false ;
413
423
return chartPanelViews .get (0 ).getModelChart ().isShowGCTimesLine ();
414
424
}
415
425
426
+ @ Override
416
427
public void setShowGCTimesLine (boolean showGCTimesLine ) {
417
428
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
418
429
chartPanelViews .get (i ).getModelChart ().setShowGCTimesLine (showGCTimesLine );
419
430
}
420
431
}
421
432
433
+ @ Override
422
434
public boolean isShowGCTimesRectangles () {
423
435
if (chartPanelViews .isEmpty ()) return false ;
424
436
return chartPanelViews .get (0 ).getModelChart ().isShowGCTimesRectangles ();
425
437
}
426
438
439
+ @ Override
427
440
public void setShowGCTimesRectangles (boolean showGCTimesRectangles ) {
428
441
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
429
442
chartPanelViews .get (i ).getModelChart ().setShowGCTimesRectangles (showGCTimesRectangles );
430
443
}
431
444
}
432
445
446
+ @ Override
433
447
public boolean isShowFullGCLines () {
434
448
if (chartPanelViews .isEmpty ()) return false ;
435
449
return chartPanelViews .get (0 ).getModelChart ().isShowFullGCLines ();
436
450
}
437
451
452
+ @ Override
438
453
public void setShowFullGCLines (boolean showFullGCLines ) {
439
454
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
440
455
chartPanelViews .get (i ).getModelChart ().setShowFullGCLines (showFullGCLines );
441
456
}
442
457
}
443
458
459
+ @ Override
444
460
public boolean isShowIncGCLines () {
445
461
if (chartPanelViews .isEmpty ()) return false ;
446
462
return chartPanelViews .get (0 ).getModelChart ().isShowIncGCLines ();
447
463
}
448
464
465
+ @ Override
449
466
public void setShowIncGCLines (boolean showIncGCLines ) {
450
467
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
451
468
chartPanelViews .get (i ).getModelChart ().setShowIncGCLines (showIncGCLines );
452
469
}
453
470
}
454
471
472
+ @ Override
455
473
public boolean isShowTotalMemoryLine () {
456
474
if (chartPanelViews .isEmpty ()) return false ;
457
475
return chartPanelViews .get (0 ).getModelChart ().isShowTotalMemoryLine ();
458
476
}
459
477
478
+ @ Override
460
479
public void setShowTotalMemoryLine (boolean showTotalMemoryLine ) {
461
480
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
462
481
chartPanelViews .get (i ).getModelChart ().setShowTotalMemoryLine (showTotalMemoryLine );
463
482
}
464
483
}
465
484
485
+ @ Override
466
486
public boolean isShowUsedMemoryLine () {
467
487
if (chartPanelViews .isEmpty ()) return false ;
468
488
return chartPanelViews .get (0 ).getModelChart ().isShowUsedMemoryLine ();
469
489
}
470
490
491
+ @ Override
471
492
public void setShowUsedMemoryLine (boolean showUsedMemoryLine ) {
472
493
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
473
494
chartPanelViews .get (i ).getModelChart ().setShowUsedMemoryLine (showUsedMemoryLine );
474
495
}
475
496
}
476
497
498
+ @ Override
477
499
public void setShowTenured (boolean showTenured ) {
478
500
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
479
501
chartPanelViews .get (i ).getModelChart ().setShowTenured (showTenured );
480
502
}
481
503
}
482
504
505
+ @ Override
483
506
public boolean isShowTenured () {
484
507
if (chartPanelViews .isEmpty ()) return false ;
485
508
return chartPanelViews .get (0 ).getModelChart ().isShowTenured ();
486
509
}
487
510
511
+ @ Override
488
512
public void setShowYoung (boolean showYoung ) {
489
513
for (int i = 0 ; i < chartPanelViews .size (); i ++) {
490
514
chartPanelViews .get (i ).getModelChart ().setShowYoung (showYoung );
491
515
}
492
516
}
493
517
518
+ @ Override
494
519
public boolean isShowYoung () {
495
520
if (chartPanelViews .isEmpty ()) return false ;
496
521
return chartPanelViews .get (0 ).getModelChart ().isShowYoung ();
497
522
}
498
523
524
+ @ Override
525
+ public void setShowInitialMarkLevel (boolean showInitialMarkLevel ) {
526
+ for (int i = 0 ; i < chartPanelViews .size (); i ++) {
527
+ chartPanelViews .get (i ).getModelChart ().setShowInitialMarkLevel (showInitialMarkLevel );
528
+ }
529
+ }
530
+
531
+ @ Override
532
+ public boolean isShowInitialMarkLevel () {
533
+ if (chartPanelViews .isEmpty ()) return false ;
534
+ return chartPanelViews .get (0 ).getModelChart ().isShowInitialMarkLevel ();
535
+ }
536
+
537
+ @ Override
538
+ public void setShowConcurrentCollectionBeginEnd (boolean showConcurrentCollectionBeginEnd ) {
539
+ for (int i = 0 ; i < chartPanelViews .size (); i ++) {
540
+ chartPanelViews .get (i ).getModelChart ().setShowConcurrentCollectionBeginEnd (showConcurrentCollectionBeginEnd );
541
+ }
542
+ }
543
+
544
+ @ Override
545
+ public boolean isShowConcurrentCollectionBeginEnd () {
546
+ if (chartPanelViews .isEmpty ()) return false ;
547
+ return chartPanelViews .get (0 ).getModelChart ().isShowConcurrentCollectionBeginEnd ();
548
+ }
549
+
499
550
}
500
551
501
552
private class ScrollBarMaximumChangeListener implements ChangeListener {
0 commit comments