GhostGlassPane.java

1
package com.jsql.view.swing.tab.dnd;
2
3
import javax.swing.*;
4
import java.awt.*;
5
6
public class GhostGlassPane extends JComponent {
7
    
8
    private DnDTabbedPane tabbedPane;
9
    
10
    protected GhostGlassPane(DnDTabbedPane tabbedPane) {
11
        
12
        super();
13
        this.tabbedPane = tabbedPane;
14 1 1. <init> : removed call to com/jsql/view/swing/tab/dnd/GhostGlassPane::setOpaque → NO_COVERAGE
        this.setOpaque(false);
15
    }
16
    
17
    @Override
18
    protected void paintComponent(Graphics g) {
19
        
20 1 1. paintComponent : removed call to java/util/Optional::ifPresent → NO_COVERAGE
        this.tabbedPane.getDropLineRect().ifPresent(rect -> {
21
            
22
            Graphics2D g2 = (Graphics2D) g.create();
23
            var r = SwingUtilities.convertRectangle(this.tabbedPane, rect, this);
24 1 1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::setComposite → NO_COVERAGE
            g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f));
25 1 1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::setPaint → NO_COVERAGE
            g2.setPaint(Color.RED);
26 1 1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::fill → NO_COVERAGE
            g2.fill(r);
27 1 1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::dispose → NO_COVERAGE
            g2.dispose();
28
        });
29
    }
30
    
31
    public void setTargetTabbedPane(DnDTabbedPane tab) {
32
        this.tabbedPane = tab;
33
    }
34
}

Mutations

14

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/dnd/GhostGlassPane::setOpaque → NO_COVERAGE

20

1.1
Location : paintComponent
Killed by : none
removed call to java/util/Optional::ifPresent → NO_COVERAGE

24

1.1
Location : lambda$paintComponent$0
Killed by : none
removed call to java/awt/Graphics2D::setComposite → NO_COVERAGE

25

1.1
Location : lambda$paintComponent$0
Killed by : none
removed call to java/awt/Graphics2D::setPaint → NO_COVERAGE

26

1.1
Location : lambda$paintComponent$0
Killed by : none
removed call to java/awt/Graphics2D::fill → NO_COVERAGE

27

1.1
Location : lambda$paintComponent$0
Killed by : none
removed call to java/awt/Graphics2D::dispose → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1