com.sun.hotspot.igv.filter.FilterChain Java Examples
The following examples show how to use
com.sun.hotspot.igv.filter.FilterChain.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FilterNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private FilterNode(Filter filter, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); content.add(filter); content.add(filter.getEditor()); this.filter = filter; filter.getChangedEvent().addListener(new ChangedListener<Filter>() { public void changed(Filter source) { update(); } }); update(); Lookup.Template<FilterChain> tpl = new Lookup.Template<FilterChain>(FilterChain.class); result = Utilities.actionsGlobalContext().lookup(tpl); result.addLookupListener(this); FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); }
Example #2
Source File: FilterNode.java From hottub with GNU General Public License v2.0 | 6 votes |
private FilterNode(Filter filter, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); content.add(filter); content.add(filter.getEditor()); this.filter = filter; filter.getChangedEvent().addListener(new ChangedListener<Filter>() { public void changed(Filter source) { update(); } }); update(); Lookup.Template<FilterChain> tpl = new Lookup.Template<FilterChain>(FilterChain.class); result = Utilities.actionsGlobalContext().lookup(tpl); result.addLookupListener(this); FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); }
Example #3
Source File: DiagramViewModel.java From hottub with GNU General Public License v2.0 | 6 votes |
public DiagramViewModel(Group g, FilterChain filterChain, FilterChain sequenceFilterChain) { super(calculateStringList(g)); this.showNodeHull = true; this.showBlocks = true; this.group = g; assert filterChain != null; this.filterChain = filterChain; assert sequenceFilterChain != null; this.sequenceFilterChain = sequenceFilterChain; hiddenNodes = new HashSet<Integer>(); onScreenNodes = new HashSet<Integer>(); selectedNodes = new HashSet<Integer>(); super.getChangedEvent().addListener(this); diagramChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewPropertiesChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent.addListener(groupChangedListener); groupChangedEvent.fire(); filterChain.getChangedEvent().addListener(filterChainChangedListener); sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); }
Example #4
Source File: DiagramViewModel.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public DiagramViewModel(Group g, FilterChain filterChain, FilterChain sequenceFilterChain) { super(calculateStringList(g)); this.showNodeHull = true; this.showBlocks = true; this.group = g; assert filterChain != null; this.filterChain = filterChain; assert sequenceFilterChain != null; this.sequenceFilterChain = sequenceFilterChain; hiddenNodes = new HashSet<Integer>(); onScreenNodes = new HashSet<Integer>(); selectedNodes = new HashSet<Integer>(); super.getChangedEvent().addListener(this); diagramChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewPropertiesChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent.addListener(groupChangedListener); groupChangedEvent.fire(); filterChain.getChangedEvent().addListener(filterChainChangedListener); sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); }
Example #5
Source File: FilterTopComponent.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public void changed(CheckNode source) { FilterNode node = (FilterNode) source; Filter f = node.getFilter(); FilterChain chain = getFilterChain(); if (node.isSelected()) { if (!chain.containsFilter(f)) { chain.addFilter(f); } } else { if (chain.containsFilter(f)) { chain.removeFilter(f); } } view.revalidate(); view.repaint(); updateComboBoxSelection(); }
Example #6
Source File: FilterNode.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private FilterNode(Filter filter, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); content.add(filter); content.add(filter.getEditor()); this.filter = filter; filter.getChangedEvent().addListener(new ChangedListener<Filter>() { public void changed(Filter source) { update(); } }); update(); Lookup.Template<FilterChain> tpl = new Lookup.Template<FilterChain>(FilterChain.class); result = Utilities.actionsGlobalContext().lookup(tpl); result.addLookupListener(this); FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); }
Example #7
Source File: FilterNode.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private FilterNode(Filter filter, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); content.add(filter); content.add(filter.getEditor()); this.filter = filter; filter.getChangedEvent().addListener(new ChangedListener<Filter>() { public void changed(Filter source) { update(); } }); update(); Lookup.Template<FilterChain> tpl = new Lookup.Template<FilterChain>(FilterChain.class); result = Utilities.actionsGlobalContext().lookup(tpl); result.addLookupListener(this); FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); }
Example #8
Source File: DiagramViewModel.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public DiagramViewModel(Group g, FilterChain filterChain, FilterChain sequenceFilterChain) { super(calculateStringList(g)); this.showNodeHull = true; this.showBlocks = true; this.group = g; assert filterChain != null; this.filterChain = filterChain; assert sequenceFilterChain != null; this.sequenceFilterChain = sequenceFilterChain; hiddenNodes = new HashSet<Integer>(); onScreenNodes = new HashSet<Integer>(); selectedNodes = new HashSet<Integer>(); super.getChangedEvent().addListener(this); diagramChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewPropertiesChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent.addListener(groupChangedListener); groupChangedEvent.fire(); filterChain.getChangedEvent().addListener(filterChainChangedListener); sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); }
Example #9
Source File: FilterNode.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private FilterNode(Filter filter, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); content.add(filter); content.add(filter.getEditor()); this.filter = filter; filter.getChangedEvent().addListener(new ChangedListener<Filter>() { public void changed(Filter source) { update(); } }); update(); Lookup.Template<FilterChain> tpl = new Lookup.Template<FilterChain>(FilterChain.class); result = Utilities.actionsGlobalContext().lookup(tpl); result.addLookupListener(this); FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); }
Example #10
Source File: FilterTopComponent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void changed(CheckNode source) { FilterNode node = (FilterNode) source; Filter f = node.getFilter(); FilterChain chain = getFilterChain(); if (node.isSelected()) { if (!chain.containsFilter(f)) { chain.addFilter(f); } } else { if (chain.containsFilter(f)) { chain.removeFilter(f); } } view.revalidate(); view.repaint(); updateComboBoxSelection(); }
Example #11
Source File: FilterTopComponent.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void changed(CheckNode source) { FilterNode node = (FilterNode) source; Filter f = node.getFilter(); FilterChain chain = getFilterChain(); if (node.isSelected()) { if (!chain.containsFilter(f)) { chain.addFilter(f); } } else { if (chain.containsFilter(f)) { chain.removeFilter(f); } } view.revalidate(); view.repaint(); updateComboBoxSelection(); }
Example #12
Source File: FilterNode.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private FilterNode(Filter filter, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); content.add(filter); content.add(filter.getEditor()); this.filter = filter; filter.getChangedEvent().addListener(new ChangedListener<Filter>() { public void changed(Filter source) { update(); } }); update(); Lookup.Template<FilterChain> tpl = new Lookup.Template<FilterChain>(FilterChain.class); result = Utilities.actionsGlobalContext().lookup(tpl); result.addLookupListener(this); FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); }
Example #13
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void changed(CheckNode source) { FilterNode node = (FilterNode) source; Filter f = node.getFilter(); FilterChain chain = getFilterChain(); if (node.isSelected()) { if (!chain.containsFilter(f)) { chain.addFilter(f); } } else { if (chain.containsFilter(f)) { chain.removeFilter(f); } } view.revalidate(); view.repaint(); updateComboBoxSelection(); }
Example #14
Source File: FilterTopComponent.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void changed(CheckNode source) { FilterNode node = (FilterNode) source; Filter f = node.getFilter(); FilterChain chain = getFilterChain(); if (node.isSelected()) { if (!chain.containsFilter(f)) { chain.addFilter(f); } } else { if (chain.containsFilter(f)) { chain.removeFilter(f); } } view.revalidate(); view.repaint(); updateComboBoxSelection(); }
Example #15
Source File: DiagramViewModel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public DiagramViewModel(Group g, FilterChain filterChain, FilterChain sequenceFilterChain) { super(calculateStringList(g)); this.showNodeHull = true; this.showBlocks = true; this.group = g; assert filterChain != null; this.filterChain = filterChain; assert sequenceFilterChain != null; this.sequenceFilterChain = sequenceFilterChain; hiddenNodes = new HashSet<Integer>(); onScreenNodes = new HashSet<Integer>(); selectedNodes = new HashSet<Integer>(); super.getChangedEvent().addListener(this); diagramChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewChangedEvent = new ChangedEvent<DiagramViewModel>(this); viewPropertiesChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent = new ChangedEvent<DiagramViewModel>(this); groupChangedEvent.addListener(groupChangedListener); groupChangedEvent.fire(); filterChain.getChangedEvent().addListener(filterChainChangedListener); sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); }
Example #16
Source File: DiagramViewModel.java From hottub with GNU General Public License v2.0 | 5 votes |
public void setFilterChain(FilterChain chain) { assert chain != null : "filterChain must never be null"; filterChain.getChangedEvent().removeListener(filterChainChangedListener); filterChain = chain; filterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #17
Source File: DiagramViewModel.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void setFilterChain(FilterChain chain) { assert chain != null : "filterChain must never be null"; filterChain.getChangedEvent().removeListener(filterChainChangedListener); filterChain = chain; filterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #18
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public FilterChain getFilterChain() { return filterChain;/* EditorTopComponent tc = EditorTopComponent.getActive(); if (tc == null) { return filterChain; } return tc.getFilterChain();*/ }
Example #19
Source File: DiagramViewModel.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void setSequenceFilterChain(FilterChain chain) { assert chain != null : "sequenceFilterChain must never be null"; sequenceFilterChain.getChangedEvent().removeListener(filterChainChangedListener); sequenceFilterChain = chain; sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #20
Source File: DiagramViewModel.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void setFilterChain(FilterChain chain) { assert chain != null : "filterChain must never be null"; filterChain.getChangedEvent().removeListener(filterChainChangedListener); filterChain = chain; filterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #21
Source File: DiagramViewModel.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public DiagramViewModel(Group g, FilterChain filterChain, FilterChain sequenceFilterChain) { super(Arrays.asList("default")); this.showBlocks = false; this.showNodeHull = true; this.group = g; filterGraphs(); assert filterChain != null; this.filterChain = filterChain; assert sequenceFilterChain != null; this.sequenceFilterChain = sequenceFilterChain; hiddenNodes = new HashSet<>(); onScreenNodes = new HashSet<>(); selectedNodes = new HashSet<>(); super.getChangedEvent().addListener(this); diagramChangedEvent = new ChangedEvent<>(this); viewChangedEvent = new ChangedEvent<>(this); hiddenNodesChangedEvent = new ChangedEvent<>(this); viewPropertiesChangedEvent = new ChangedEvent<>(this); groupChangedEvent = new ChangedEvent<>(this); groupChangedEvent.addListener(groupChangedListener); groupChangedEvent.fire(); filterChain.getChangedEvent().addListener(filterChainChangedListener); sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); }
Example #22
Source File: FilterTopComponent.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public FilterChildren() { sequence.getChangedEvent().addListener(new ChangedListener<FilterChain>() { public void changed(FilterChain source) { addNotify(); } }); setBefore(false); }
Example #23
Source File: DiagramViewModel.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void setSequenceFilterChain(FilterChain chain) { assert chain != null : "sequenceFilterChain must never be null"; sequenceFilterChain.getChangedEvent().removeListener(filterChainChangedListener); sequenceFilterChain = chain; sequenceFilterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #24
Source File: DiagramViewModel.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void setFilterChain(FilterChain chain) { assert chain != null : "filterChain must never be null"; filterChain.getChangedEvent().removeListener(filterChainChangedListener); filterChain = chain; filterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #25
Source File: FilterTopComponent.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private FilterSetting createFilterSetting(String name) { FilterSetting s = new FilterSetting(name); FilterChain chain = this.getFilterChain(); for (Filter f : chain.getFilters()) { s.addFilter(f); } return s; }
Example #26
Source File: DiagramViewModel.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void setFilterChain(FilterChain chain) { assert chain != null : "filterChain must never be null"; filterChain.getChangedEvent().removeListener(filterChainChangedListener); filterChain = chain; filterChain.getChangedEvent().addListener(filterChainChangedListener); diagramChanged(); }
Example #27
Source File: FilterTopComponent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private FilterSetting createFilterSetting(String name) { FilterSetting s = new FilterSetting(name); FilterChain chain = this.getFilterChain(); for (Filter f : chain.getFilters()) { s.addFilter(f); } return s; }
Example #28
Source File: FilterTopComponent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public FilterChildren() { sequence.getChangedEvent().addListener(new ChangedListener<FilterChain>() { public void changed(FilterChain source) { addNotify(); } }); setBefore(false); }
Example #29
Source File: FilterTopComponent.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private FilterTopComponent() { filterSettingsChangedEvent = new ChangedEvent<FilterTopComponent>(this); initComponents(); setName(NbBundle.getMessage(FilterTopComponent.class, "CTL_FilterTopComponent")); setToolTipText(NbBundle.getMessage(FilterTopComponent.class, "HINT_FilterTopComponent")); // setIcon(Utilities.loadImage(ICON_PATH, true)); sequence = new FilterChain(); filterChain = new FilterChain(); initFilters(); manager = new ExplorerManager(); manager.setRootContext(new AbstractNode(new FilterChildren())); associateLookup(ExplorerUtils.createLookup(manager, getActionMap())); view = new CheckListView(); ToolbarPool.getDefault().setPreferredIconSize(16); Toolbar toolBar = new Toolbar(); Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N toolBar.setBorder(b); comboBox = new JComboBox(); toolBar.add(comboBox); this.add(toolBar, BorderLayout.NORTH); toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class)); toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class)); toolBar.addSeparator(); toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup())); toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup())); toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup())); toolBar.add(NewFilterAction.get(NewFilterAction.class)); this.add(view, BorderLayout.CENTER); filterSettings = new ArrayList<FilterSetting>(); updateComboBox(); comboBox.addActionListener(comboBoxActionListener); setChain(filterChain); }
Example #30
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public FilterChain getFilterChain() { return filterChain;/* EditorTopComponent tc = EditorTopComponent.getActive(); if (tc == null) { return filterChain; } return tc.getFilterChain();*/ }