本文整理汇总了Java中edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer类的典型用法代码示例。如果您正苦于以下问题:Java EdgeLabelRenderer类的具体用法?Java EdgeLabelRenderer怎么用?Java EdgeLabelRenderer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EdgeLabelRenderer类属于edu.uci.ics.jung.visualization.renderers包,在下文中一共展示了EdgeLabelRenderer类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: prepareRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
public Component prepareRenderer(RenderContext<V, E> rc, EdgeLabelRenderer graphLabelRenderer, Object value,
boolean isSelected, E edge) {
return rc.getEdgeLabelRenderer().<E> getEdgeLabelRendererComponent(rc.getScreenDevice(), value,
rc.getEdgeFontTransformer().transform(edge), isSelected, edge);
}
开发者ID:transwarpio,项目名称:rapidminer,代码行数:6,代码来源:TreeModelEdgeLabelRenderer.java
示例2: prepareRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
@Override
public Component prepareRenderer(RenderContext<V, E> rc, EdgeLabelRenderer graphLabelRenderer, Object value, boolean isSelected, E edge) {
Component component = super.prepareRenderer(rc, graphLabelRenderer, value, isSelected, edge);
component.setForeground(transformer.transform(edge));
return component;
}
开发者ID:tomaszi1,项目名称:petri-nets-simulator,代码行数:7,代码来源:ReachGraphEdgeLabelRenderer.java
示例3: getEdgeLabelRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
public final EdgeLabelRenderer getEdgeLabelRenderer() {
return new EdgeLabelRenderer() {
@Override
public boolean isRotateEdgeLabels() {
return true;
}
@Override
public void setRotateEdgeLabels(final boolean state) {
}
@Override
public <T> Component getEdgeLabelRendererComponent(final JComponent vv, final Object value, final Font font,
final boolean isSelected, final T edge) {
final String labelText;
final String iconPath;
if (edge instanceof JobGraphLink) {
final JobGraphLink link = (JobGraphLink) edge;
if (link.getOutputDataStream() != null) {
labelText = link.getLinkLabel();
iconPath = IconUtils.OUTPUT_DATA_STREAM_PATH;
} else if (isCompoundRequirementLink(link)) {
final HasFilterOutcomes from = (HasFilterOutcomes) link.getFrom();
final CompoundComponentRequirement req = (CompoundComponentRequirement) link.getRequirement();
final Set<FilterOutcome> outcomesFrom = req.getOutcomesFrom(from);
labelText = new CompoundComponentRequirement(outcomesFrom).getSimpleName();
iconPath = IconUtils.FILTER_OUTCOME_PATH;
} else {
labelText = link.getLinkLabel();
iconPath = IconUtils.FILTER_OUTCOME_PATH;
}
} else {
labelText = value + "";
iconPath = IconUtils.FILTER_OUTCOME_PATH;
}
final Icon icon = imageManager.getImageIcon(iconPath, IconUtils.ICON_SIZE_SMALL);
final JLabel label = new JLabel(labelText, icon, JLabel.LEFT);
label.setFont(_normalFont);
return label;
}
};
}
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:45,代码来源:JobGraphTransformers.java
示例4: getEdgeLabelRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
/**
* @see edu.uci.ics.jung.visualization.RenderContext#getEdgeLabelRenderer()
*/
public EdgeLabelRenderer getEdgeLabelRenderer() {
return edgeLabelRenderer;
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:7,代码来源:PluggableRenderContext.java
示例5: setEdgeLabelRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
/**
* @see edu.uci.ics.jung.visualization.RenderContext#setEdgeLabelRenderer(edu.uci.ics.jung.visualization.EdgeLabelRenderer)
*/
public void setEdgeLabelRenderer(EdgeLabelRenderer edgeLabelRenderer) {
this.edgeLabelRenderer = edgeLabelRenderer;
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:7,代码来源:PluggableRenderContext.java
示例6: prepareRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
public Component prepareRenderer(RenderContext<V, E> rc, EdgeLabelRenderer graphLabelRenderer, Object value, boolean isSelected, E edge) {
return rc.getEdgeLabelRenderer().<E> getEdgeLabelRendererComponent(rc.getScreenDevice(), value, rc.getEdgeFontTransformer().transform(edge), isSelected, edge);
}
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:4,代码来源:TreeModelEdgeLabelRenderer.java
示例7: getEdgeLabelRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
EdgeLabelRenderer getEdgeLabelRenderer();
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:2,代码来源:RenderContext.java
示例8: setEdgeLabelRenderer
import edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer; //导入依赖的package包/类
void setEdgeLabelRenderer(EdgeLabelRenderer edgeLabelRenderer);
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:2,代码来源:RenderContext.java
注:本文中的edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论