Skip to content

Commit

Permalink
chore: Hide minimap by default in butterfly view
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Apr 12, 2023
1 parent 08266e3 commit fc5dea6
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ public class ButterflyView<T> extends JPanel {

public ButterflyView() {
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
add((predecessorView = new FlamegraphView<T>()).component, BorderLayout.NORTH);
add((successorsView = new FlamegraphView<T>()).component, BorderLayout.SOUTH);
add((predecessorView = getFlamegraphView()).component, BorderLayout.NORTH);
add((successorsView = getFlamegraphView()).component, BorderLayout.SOUTH);
}

private static <T> FlamegraphView<T> getFlamegraphView() {
FlamegraphView<T> fgv = new FlamegraphView<>();
fgv.setShowMinimap(false);
return fgv;
}

/**
Expand Down

0 comments on commit fc5dea6

Please sign in to comment.