mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GP-514_vertex_include_satellite_view--SQUASHED' into patch
This commit is contained in:
@@ -618,6 +618,9 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
|||||||
satellite.getRenderContext().setVertexFillPaintFunction(Colors::getColor);
|
satellite.getRenderContext().setVertexFillPaintFunction(Colors::getColor);
|
||||||
satellite.scaleToLayout();
|
satellite.scaleToLayout();
|
||||||
satellite.getRenderContext().setVertexLabelFunction(n -> null);
|
satellite.getRenderContext().setVertexLabelFunction(n -> null);
|
||||||
|
// always get the current predicate from the main view and test with it,
|
||||||
|
satellite.getRenderContext()
|
||||||
|
.setVertexIncludePredicate(v -> viewer.getRenderContext().getVertexIncludePredicate().test(v));
|
||||||
satellite.getComponent().setBorder(BorderFactory.createEtchedBorder());
|
satellite.getComponent().setBorder(BorderFactory.createEtchedBorder());
|
||||||
parentViewer.getComponent().addComponentListener(new ComponentAdapter() {
|
parentViewer.getComponent().addComponentListener(new ComponentAdapter() {
|
||||||
@Override
|
@Override
|
||||||
@@ -820,7 +823,7 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
|||||||
viewer.getRenderContext()
|
viewer.getRenderContext()
|
||||||
.setVertexIncludePredicate(
|
.setVertexIncludePredicate(
|
||||||
v -> v.getAttributeMap().values().stream().noneMatch(selected::contains));
|
v -> v.getAttributeMap().values().stream().noneMatch(selected::contains));
|
||||||
viewer.repaint();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
edgeFilters = AttributeFilters.builder()
|
edgeFilters = AttributeFilters.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user