| 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 | this.tabbedPane = tabbedPane; | |
| 12 |
1
1. <init> : removed call to com/jsql/view/swing/tab/dnd/GhostGlassPane::setOpaque → NO_COVERAGE |
this.setOpaque(false); |
| 13 | } | |
| 14 | | |
| 15 | @Override | |
| 16 | protected void paintComponent(Graphics g) { | |
| 17 |
1
1. paintComponent : removed call to java/util/Optional::ifPresent → NO_COVERAGE |
this.tabbedPane.getDropLineRect().ifPresent(rect -> { |
| 18 | Graphics2D g2 = (Graphics2D) g.create(); | |
| 19 | var r = SwingUtilities.convertRectangle(this.tabbedPane, rect, this); | |
| 20 |
1
1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::setComposite → NO_COVERAGE |
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f)); |
| 21 |
1
1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::setPaint → NO_COVERAGE |
g2.setPaint(Color.RED); |
| 22 |
1
1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::fill → NO_COVERAGE |
g2.fill(r); |
| 23 |
1
1. lambda$paintComponent$0 : removed call to java/awt/Graphics2D::dispose → NO_COVERAGE |
g2.dispose(); |
| 24 | }); | |
| 25 | } | |
| 26 | | |
| 27 | public void setTargetTabbedPane(DnDTabbedPane tab) { | |
| 28 | this.tabbedPane = tab; | |
| 29 | } | |
| 30 | } | |
Mutations | ||
| 12 |
1.1 |
|
| 17 |
1.1 |
|
| 20 |
1.1 |
|
| 21 |
1.1 |
|
| 22 |
1.1 |
|
| 23 |
1.1 |