本文整理汇总了Java中com.sun.hotspot.igv.filter.CustomFilter类的典型用法代码示例。如果您正苦于以下问题:Java CustomFilter类的具体用法?Java CustomFilter怎么用?Java CustomFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomFilter类属于com.sun.hotspot.igv.filter包,在下文中一共展示了CustomFilter类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getDiagramToView
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
public Diagram getDiagramToView() {
if (diagram == null) {
diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
getFilterChain().apply(diagram, getSequenceFilterChain());
if (getFirstPosition() != getSecondPosition()) {
CustomFilter f = new CustomFilter(
"difference", "colorize('state', 'same', white);"
+ "colorize('state', 'changed', orange);"
+ "colorize('state', 'new', green);"
+ "colorize('state', 'deleted', red);");
f.apply(diagram);
}
}
return diagram;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:18,代码来源:DiagramViewModel.java
示例2: readExternal
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
super.readExternal(in);
int filterSettingsCount = in.readInt();
for (int i = 0; i < filterSettingsCount; i++) {
String name = in.readUTF();
FilterSetting s = new FilterSetting(name);
int filterCount = in.readInt();
for (int j = 0; j < filterCount; j++) {
String filterName = in.readUTF();
CustomFilter filter = findFilter(filterName);
if (filter != null) {
s.addFilter(filter);
}
}
filterSettings.add(s);
}
updateComboBox();
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:22,代码来源:FilterTopComponent.java
示例3: getDiagramToView
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
public Diagram getDiagramToView() {
if (diagram == null) {
diagram = Diagram.createDiagram(getGraphToView(), Settings.get().get(Settings.NODE_TEXT, Settings.NODE_TEXT_DEFAULT));
getFilterChain().apply(diagram, getSequenceFilterChain());
if (getFirstGraph() != getSecondGraph()) {
CustomFilter f = new CustomFilter(
"difference", "colorize('state', 'same', white);"
+ "colorize('state', 'changed', orange);"
+ "colorize('state', 'new', green);"
+ "colorize('state', 'deleted', red);");
f.apply(diagram);
}
}
return diagram;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:18,代码来源:DiagramViewModel.java
示例4: newFilter
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
public void newFilter() {
CustomFilter cf = new CustomFilter("My custom filter", "");
if (cf.openInEditor()) {
sequence.addFilter(cf);
FileObject fo = getFileObject(cf);
FilterChangedListener listener = new FilterChangedListener(fo, cf);
listener.changed(cf);
cf.getChangedEvent().addListener(listener);
}
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:11,代码来源:FilterTopComponent.java
示例5: removeFilter
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
public void removeFilter(Filter f) {
com.sun.hotspot.igv.filter.CustomFilter cf = (com.sun.hotspot.igv.filter.CustomFilter) f;
sequence.removeFilter(cf);
try {
getFileObject(cf).delete();
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:12,代码来源:FilterTopComponent.java
示例6: getFileObject
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
private FileObject getFileObject(CustomFilter cf) {
FileObject fo = FileUtil.getConfigRoot().getFileObject(FOLDER_ID + "/" + cf.getName());
if (fo == null) {
try {
fo = FileUtil.getConfigRoot().getFileObject(FOLDER_ID).createData(cf.getName());
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
}
return fo;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:12,代码来源:FilterTopComponent.java
示例7: findFilter
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
public CustomFilter findFilter(String name) {
for (Filter f : sequence.getFilters()) {
CustomFilter cf = (CustomFilter) f;
if (cf.getName().equals(name)) {
return cf;
}
}
return null;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:12,代码来源:FilterTopComponent.java
示例8: getFileObject
import com.sun.hotspot.igv.filter.CustomFilter; //导入依赖的package包/类
private FileObject getFileObject(CustomFilter cf) {
FileObject fo = Repository.getDefault().getDefaultFileSystem().getRoot().getFileObject(FOLDER_ID + "/" + cf.getName());
if (fo == null) {
try {
fo = org.openide.filesystems.Repository.getDefault().getDefaultFileSystem().getRoot().getFileObject(FOLDER_ID).createData(cf.getName());
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
}
return fo;
}
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:12,代码来源:FilterTopComponent.java
注:本文中的com.sun.hotspot.igv.filter.CustomFilter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论