(boolean selected)
| 478 | } |
| 479 | |
| 480 | @Override |
| 481 | public void setSelected(boolean selected) { |
| 482 | this.isSelected = selected; |
| 483 | Color colorToApply = colorToApply(selected); |
| 484 | applyColor(this.line, colorToApply); |
| 485 | this.arrowStart.setColor(colorToApply); |
| 486 | this.arrowEnd.setColor(colorToApply); |
| 487 | this.labelStartRight.setColor(Util.darker(colorToApply, 0.3)); |
| 488 | this.labelStartLeft.setColor(Util.darker(colorToApply, 0.3)); |
| 489 | this.labelEndRight.setColor(Util.darker(colorToApply, 0.3)); |
| 490 | this.labelEndLeft.setColor(Util.darker(colorToApply, 0.3)); |
| 491 | this.selection.setVisible(selected); |
| 492 | if (!selected) { |
| 493 | setAllLabelSelected(false); |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | @Override |
| 498 | public boolean isSelected() { |
nothing calls this directly
no test coverage detected