MCPcopy Create free account
hub / github.com/Nurtak/ObjectGraphVisualization / setSelected

Method setSelected

src/ch/hsr/ogv/view/Arrow.java:480–495  ·  view source on GitHub ↗
(boolean selected)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

colorToApplyMethod · 0.95
applyColorMethod · 0.95
setAllLabelSelectedMethod · 0.95
setVisibleMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected